瀏覽代碼

build: Add standard-version plugin

陈凯龙 3 年之前
父節點
當前提交
110ce25784
共有 3 個文件被更改,包括 299 次插入30 次删除
  1. 2 1
      .prettierignore
  2. 16 0
      .versionrc
  3. 281 29
      pnpm-lock.yaml

+ 2 - 1
.prettierignore

@@ -5,4 +5,5 @@
 /docs/*
 /vite.config.ts
 /src/types/env.d.ts
-/docs/**/*
+/docs/**/*
+.versionrc

+ 16 - 0
.versionrc

@@ -0,0 +1,16 @@
+{
+  "types": [
+    {"type": "chore", "section":"Others", "hidden": false},
+    {"type": "revert", "section":"Reverts", "hidden": false},
+    {"type": "feat", "section": "Features", "hidden": false},
+    {"type": "fix", "section": "Bug Fixes", "hidden": false},
+    {"type": "improvement", "section": "Feature Improvements", "hidden": false},
+    {"type": "docs", "section":"Docs", "hidden": false},
+    {"type": "style", "section":"Styling", "hidden": false},
+    {"type": "refactor", "section":"Code Refactoring", "hidden": false},
+    {"type": "perf", "section":"Performance Improvements", "hidden": false},
+    {"type": "test", "section":"Tests", "hidden": false},
+    {"type": "build", "section":"Build System", "hidden": false},
+    {"type": "ci", "section":"CI", "hidden":false}
+  ]
+}

+ 281 - 29
pnpm-lock.yaml

@@ -52,6 +52,7 @@ specifiers:
   qrcode: ^1.5.0
   qs: ^6.10.3
   rimraf: ^3.0.2
+  standard-version: ^9.3.2
   stylelint: ^14.5.1
   stylelint-config-html: ^1.0.0
   stylelint-config-prettier: ^9.0.3
@@ -135,6 +136,7 @@ devDependencies:
   prettier: registry.npmmirror.com/prettier/2.5.1
   pretty-quick: registry.npmmirror.com/pretty-quick/3.1.3_prettier@2.5.1
   rimraf: registry.npmmirror.com/rimraf/3.0.2
+  standard-version: registry.npmmirror.com/standard-version/9.3.2
   stylelint: registry.npmmirror.com/stylelint/14.5.1
   stylelint-config-html: registry.npmmirror.com/stylelint-config-html/1.0.0_0c9d5bee66cd9feb916562513487bd4e
   stylelint-config-prettier: registry.npmmirror.com/stylelint-config-prettier/9.0.3_stylelint@14.5.1
@@ -728,20 +730,6 @@ packages:
       micromatch: registry.npmmirror.com/micromatch/4.0.4
     dev: true
 
-  registry.nlark.com/figures/2.0.0:
-    resolution:
-      {
-        integrity: sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=,
-        registry: https://registry.npm.taobao.org/,
-        tarball: https://registry.nlark.com/figures/download/figures-2.0.0.tgz
-      }
-    name: figures
-    version: 2.0.0
-    engines: { node: '>=4' }
-    dependencies:
-      escape-string-regexp: registry.npmmirror.com/escape-string-regexp/1.0.5
-    dev: true
-
   registry.nlark.com/finalhandler/1.1.2:
     resolution:
       {
@@ -997,19 +985,6 @@ packages:
     version: 2.1.1
     dev: true
 
-  registry.nlark.com/minimatch/3.0.4:
-    resolution:
-      {
-        integrity: sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=,
-        registry: https://registry.npm.taobao.org/,
-        tarball: https://registry.nlark.com/minimatch/download/minimatch-3.0.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fminimatch%2Fdownload%2Fminimatch-3.0.4.tgz
-      }
-    name: minimatch
-    version: 3.0.4
-    dependencies:
-      brace-expansion: registry.npmmirror.com/brace-expansion/1.1.11
-    dev: true
-
   registry.nlark.com/minimist-options/4.1.0:
     resolution:
       {
@@ -5633,6 +5608,23 @@ packages:
     version: 1.0.17
     dev: false
 
+  registry.npmmirror.com/concat-stream/2.0.0:
+    resolution:
+      {
+        integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/concat-stream/-/concat-stream-2.0.0.tgz
+      }
+    name: concat-stream
+    version: 2.0.0
+    engines: { '0': node >= 6.0 }
+    dependencies:
+      buffer-from: registry.npmmirror.com/buffer-from/1.1.2
+      inherits: registry.npmmirror.com/inherits/2.0.4
+      readable-stream: registry.npmmirror.com/readable-stream/3.6.0
+      typedarray: registry.npmmirror.com/typedarray/0.0.6
+    dev: true
+
   registry.npmmirror.com/connect-history-api-fallback/1.6.0:
     resolution:
       {
@@ -5747,6 +5739,33 @@ packages:
       q: registry.npmmirror.com/q/1.5.1
     dev: true
 
+  registry.npmmirror.com/conventional-changelog-config-spec/2.1.0:
+    resolution:
+      {
+        integrity: sha512-IpVePh16EbbB02V+UA+HQnnPIohgXvJRxHcS5+Uwk4AT5LjzCZJm5sp/yqs5C6KZJ1jMsV4paEV13BN1pvDuxQ==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.1.0.tgz
+      }
+    name: conventional-changelog-config-spec
+    version: 2.1.0
+    dev: true
+
+  registry.npmmirror.com/conventional-changelog-conventionalcommits/4.6.1:
+    resolution:
+      {
+        integrity: sha512-lzWJpPZhbM1R0PIzkwzGBCnAkH5RKJzJfFQZcl/D+2lsJxAwGnDKBqn/F4C1RD31GJNn8NuKWQzAZDAVXPp2Mw==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.1.tgz
+      }
+    name: conventional-changelog-conventionalcommits
+    version: 4.6.1
+    engines: { node: '>=10' }
+    dependencies:
+      compare-func: registry.npmmirror.com/compare-func/2.0.0
+      lodash: registry.npmmirror.com/lodash/4.17.21
+      q: registry.npmmirror.com/q/1.5.1
+    dev: true
+
   registry.npmmirror.com/conventional-changelog-conventionalcommits/4.6.3:
     resolution:
       {
@@ -5896,6 +5915,30 @@ packages:
       through2: registry.npmmirror.com/through2/4.0.2
     dev: true
 
+  registry.npmmirror.com/conventional-changelog/3.1.24:
+    resolution:
+      {
+        integrity: sha512-ed6k8PO00UVvhExYohroVPXcOJ/K1N0/drJHx/faTH37OIZthlecuLIRX/T6uOp682CAoVoFpu+sSEaeuH6Asg==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/conventional-changelog/-/conventional-changelog-3.1.24.tgz
+      }
+    name: conventional-changelog
+    version: 3.1.24
+    engines: { node: '>=10' }
+    dependencies:
+      conventional-changelog-angular: registry.npmmirror.com/conventional-changelog-angular/5.0.13
+      conventional-changelog-atom: registry.npmmirror.com/conventional-changelog-atom/2.0.8
+      conventional-changelog-codemirror: registry.npmmirror.com/conventional-changelog-codemirror/2.0.8
+      conventional-changelog-conventionalcommits: registry.npmmirror.com/conventional-changelog-conventionalcommits/4.6.3
+      conventional-changelog-core: registry.npmmirror.com/conventional-changelog-core/4.2.4
+      conventional-changelog-ember: registry.npmmirror.com/conventional-changelog-ember/2.0.9
+      conventional-changelog-eslint: registry.npmmirror.com/conventional-changelog-eslint/3.0.9
+      conventional-changelog-express: registry.npmmirror.com/conventional-changelog-express/2.0.6
+      conventional-changelog-jquery: registry.npmmirror.com/conventional-changelog-jquery/3.0.11
+      conventional-changelog-jshint: registry.npmmirror.com/conventional-changelog-jshint/2.0.9
+      conventional-changelog-preset-loader: registry.npmmirror.com/conventional-changelog-preset-loader/2.3.4
+    dev: true
+
   registry.npmmirror.com/conventional-changelog/3.1.25:
     resolution:
       {
@@ -5955,6 +5998,28 @@ packages:
       through2: registry.npmmirror.com/through2/4.0.2
     dev: true
 
+  registry.npmmirror.com/conventional-recommended-bump/6.1.0:
+    resolution:
+      {
+        integrity: sha512-uiApbSiNGM/kkdL9GTOLAqC4hbptObFo4wW2QRyHsKciGAfQuLU1ShZ1BIVI/+K2BE/W1AWYQMCXAsv4dyKPaw==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/conventional-recommended-bump/-/conventional-recommended-bump-6.1.0.tgz
+      }
+    name: conventional-recommended-bump
+    version: 6.1.0
+    engines: { node: '>=10' }
+    hasBin: true
+    dependencies:
+      concat-stream: registry.npmmirror.com/concat-stream/2.0.0
+      conventional-changelog-preset-loader: registry.npmmirror.com/conventional-changelog-preset-loader/2.3.4
+      conventional-commits-filter: registry.npmmirror.com/conventional-commits-filter/2.0.7
+      conventional-commits-parser: registry.npmmirror.com/conventional-commits-parser/3.2.4
+      git-raw-commits: registry.npmmirror.com/git-raw-commits/2.0.11
+      git-semver-tags: registry.npmmirror.com/git-semver-tags/4.1.1
+      meow: registry.npmmirror.com/meow/8.1.2
+      q: registry.npmmirror.com/q/1.5.1
+    dev: true
+
   registry.npmmirror.com/convert-source-map/1.8.0:
     resolution:
       {
@@ -6403,6 +6468,30 @@ packages:
       isobject: registry.npmmirror.com/isobject/3.0.1
     dev: true
 
+  registry.npmmirror.com/detect-indent/6.0.0:
+    resolution:
+      {
+        integrity: sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/detect-indent/-/detect-indent-6.0.0.tgz
+      }
+    name: detect-indent
+    version: 6.0.0
+    engines: { node: '>=8' }
+    dev: true
+
+  registry.npmmirror.com/detect-newline/3.1.0:
+    resolution:
+      {
+        integrity: sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/detect-newline/-/detect-newline-3.1.0.tgz
+      }
+    name: detect-newline
+    version: 3.1.0
+    engines: { node: '>=8' }
+    dev: true
+
   registry.npmmirror.com/diff/4.0.2:
     resolution:
       {
@@ -6626,6 +6715,21 @@ packages:
     engines: { node: '>=12' }
     dev: true
 
+  registry.npmmirror.com/dotgitignore/2.1.0:
+    resolution:
+      {
+        integrity: sha512-sCm11ak2oY6DglEPpCB8TixLjWAxd3kJTs6UIcSasNYxXdFPV+YKlye92c8H4kKFqV5qYMIh7d+cYecEg0dIkA==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/dotgitignore/-/dotgitignore-2.1.0.tgz
+      }
+    name: dotgitignore
+    version: 2.1.0
+    engines: { node: '>=6' }
+    dependencies:
+      find-up: registry.npmmirror.com/find-up/3.0.0
+      minimatch: registry.npmmirror.com/minimatch/3.0.4
+    dev: true
+
   registry.npmmirror.com/echarts-wordcloud/2.0.0_echarts@5.3.0:
     resolution:
       {
@@ -7928,6 +8032,34 @@ packages:
       reusify: registry.npmmirror.com/reusify/1.0.4
     dev: true
 
+  registry.npmmirror.com/figures/2.0.0:
+    resolution:
+      {
+        integrity: sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/figures/-/figures-2.0.0.tgz
+      }
+    name: figures
+    version: 2.0.0
+    engines: { node: '>=4' }
+    dependencies:
+      escape-string-regexp: registry.npmmirror.com/escape-string-regexp/1.0.5
+    dev: true
+
+  registry.npmmirror.com/figures/3.2.0:
+    resolution:
+      {
+        integrity: sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/figures/-/figures-3.2.0.tgz
+      }
+    name: figures
+    version: 3.2.0
+    engines: { node: '>=8' }
+    dependencies:
+      escape-string-regexp: registry.npmmirror.com/escape-string-regexp/1.0.5
+    dev: true
+
   registry.npmmirror.com/file-entry-cache/6.0.1:
     resolution:
       {
@@ -8000,6 +8132,20 @@ packages:
       locate-path: registry.npmmirror.com/locate-path/2.0.0
     dev: true
 
+  registry.npmmirror.com/find-up/3.0.0:
+    resolution:
+      {
+        integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/find-up/-/find-up-3.0.0.tgz
+      }
+    name: find-up
+    version: 3.0.0
+    engines: { node: '>=6' }
+    dependencies:
+      locate-path: registry.npmmirror.com/locate-path/3.0.0
+    dev: true
+
   registry.npmmirror.com/find-up/4.1.0:
     resolution:
       {
@@ -8125,6 +8271,20 @@ packages:
       map-cache: registry.npmmirror.com/map-cache/0.2.2
     dev: true
 
+  registry.npmmirror.com/fs-access/1.0.1:
+    resolution:
+      {
+        integrity: sha512-05cXDIwNbFaoFWaz5gNHlUTbH5whiss/hr/ibzPd4MH3cR4w0ZKeIPiVdbyJurg3O5r/Bjpvn9KOb1/rPMf3nA==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/fs-access/-/fs-access-1.0.1.tgz
+      }
+    name: fs-access
+    version: 1.0.1
+    engines: { node: '>=0.10.0' }
+    dependencies:
+      null-check: registry.npmmirror.com/null-check/1.0.0
+    dev: true
+
   registry.npmmirror.com/fs-extra/10.0.0:
     resolution:
       {
@@ -8403,7 +8563,7 @@ packages:
       fs.realpath: registry.nlark.com/fs.realpath/1.0.0
       inflight: registry.nlark.com/inflight/1.0.6
       inherits: registry.npmmirror.com/inherits/2.0.4
-      minimatch: registry.nlark.com/minimatch/3.0.4
+      minimatch: registry.npmmirror.com/minimatch/3.0.4
       once: registry.nlark.com/once/1.4.0
       path-is-absolute: registry.nlark.com/path-is-absolute/1.0.1
     dev: true
@@ -9096,7 +9256,7 @@ packages:
       cli-cursor: registry.nlark.com/cli-cursor/2.1.0
       cli-width: registry.nlark.com/cli-width/2.2.1
       external-editor: registry.nlark.com/external-editor/3.1.0
-      figures: registry.nlark.com/figures/2.0.0
+      figures: registry.npmmirror.com/figures/2.0.0
       lodash: registry.npmmirror.com/lodash/4.17.21
       mute-stream: registry.nlark.com/mute-stream/0.0.7
       run-async: registry.nlark.com/run-async/2.4.1
@@ -10103,6 +10263,21 @@ packages:
       path-exists: registry.npmmirror.com/path-exists/3.0.0
     dev: true
 
+  registry.npmmirror.com/locate-path/3.0.0:
+    resolution:
+      {
+        integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/locate-path/-/locate-path-3.0.0.tgz
+      }
+    name: locate-path
+    version: 3.0.0
+    engines: { node: '>=6' }
+    dependencies:
+      p-locate: registry.npmmirror.com/p-locate/3.0.0
+      path-exists: registry.npmmirror.com/path-exists/3.0.0
+    dev: true
+
   registry.npmmirror.com/locate-path/5.0.0:
     resolution:
       {
@@ -11027,6 +11202,18 @@ packages:
       boolbase: registry.npmmirror.com/boolbase/1.0.0
     dev: true
 
+  registry.npmmirror.com/null-check/1.0.0:
+    resolution:
+      {
+        integrity: sha512-j8ZNHg19TyIQOWCGeeQJBuu6xZYIEurf8M1Qsfd8mFrGEfIZytbw18YjKWg+LcO25NowXGZXZpKAx+Ui3TFfDw==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/null-check/-/null-check-1.0.0.tgz
+      }
+    name: null-check
+    version: 1.0.0
+    engines: { node: '>=0.10.0' }
+    dev: true
+
   registry.npmmirror.com/object-assign/4.1.1:
     resolution:
       {
@@ -11195,6 +11382,20 @@ packages:
       p-limit: registry.npmmirror.com/p-limit/1.3.0
     dev: true
 
+  registry.npmmirror.com/p-locate/3.0.0:
+    resolution:
+      {
+        integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/p-locate/-/p-locate-3.0.0.tgz
+      }
+    name: p-locate
+    version: 3.0.0
+    engines: { node: '>=6' }
+    dependencies:
+      p-limit: registry.npmmirror.com/p-limit/2.3.0
+    dev: true
+
   registry.npmmirror.com/p-locate/4.1.0:
     resolution:
       {
@@ -13189,6 +13390,35 @@ packages:
     version: 0.1.8
     dev: true
 
+  registry.npmmirror.com/standard-version/9.3.2:
+    resolution:
+      {
+        integrity: sha512-u1rfKP4o4ew7Yjbfycv80aNMN2feTiqseAhUhrrx2XtdQGmu7gucpziXe68Z4YfHVqlxVEzo4aUA0Iu3VQOTgQ==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/standard-version/-/standard-version-9.3.2.tgz
+      }
+    name: standard-version
+    version: 9.3.2
+    engines: { node: '>=10' }
+    hasBin: true
+    dependencies:
+      chalk: registry.npmmirror.com/chalk/2.4.2
+      conventional-changelog: registry.npmmirror.com/conventional-changelog/3.1.24
+      conventional-changelog-config-spec: registry.npmmirror.com/conventional-changelog-config-spec/2.1.0
+      conventional-changelog-conventionalcommits: registry.npmmirror.com/conventional-changelog-conventionalcommits/4.6.1
+      conventional-recommended-bump: registry.npmmirror.com/conventional-recommended-bump/6.1.0
+      detect-indent: registry.npmmirror.com/detect-indent/6.0.0
+      detect-newline: registry.npmmirror.com/detect-newline/3.1.0
+      dotgitignore: registry.npmmirror.com/dotgitignore/2.1.0
+      figures: registry.npmmirror.com/figures/3.2.0
+      find-up: registry.npmmirror.com/find-up/5.0.0
+      fs-access: registry.npmmirror.com/fs-access/1.0.1
+      git-semver-tags: registry.npmmirror.com/git-semver-tags/4.1.1
+      semver: registry.npmmirror.com/semver/7.3.5
+      stringify-package: registry.npmmirror.com/stringify-package/1.0.1
+      yargs: registry.npmmirror.com/yargs/16.2.0
+    dev: true
+
   registry.npmmirror.com/static-extend/0.1.2:
     resolution:
       {
@@ -13300,6 +13530,17 @@ packages:
       safe-buffer: registry.npmmirror.com/safe-buffer/5.2.1
     dev: true
 
+  registry.npmmirror.com/stringify-package/1.0.1:
+    resolution:
+      {
+        integrity: sha512-sa4DUQsYciMP1xhKWGuFM04fB0LG/9DlluZoSVywUMRNvzid6XucHK0/90xGxRoHrAaROrcHK1aPKaijCtSrhg==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/stringify-package/-/stringify-package-1.0.1.tgz
+      }
+    name: stringify-package
+    version: 1.0.1
+    dev: true
+
   registry.npmmirror.com/strip-ansi/3.0.1:
     resolution:
       {
@@ -14129,6 +14370,17 @@ packages:
     version: 2.6.0
     dev: false
 
+  registry.npmmirror.com/typedarray/0.0.6:
+    resolution:
+      {
+        integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==,
+        registry: https://registry.npm.taobao.org/,
+        tarball: https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz
+      }
+    name: typedarray
+    version: 0.0.6
+    dev: true
+
   registry.npmmirror.com/typescript/4.5.5:
     resolution:
       {