@semi-kit/config 1.2.15 → 1.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,23 +1,23 @@
1
- # tsdown-starter
2
-
3
- A starter for creating a TypeScript package.
4
-
5
- ## Development
6
-
7
- - Install dependencies:
8
-
9
- ```bash
10
- npm install
11
- ```
12
-
13
- - Run the unit tests:
14
-
15
- ```bash
16
- npm run test
17
- ```
18
-
19
- - Build the library:
20
-
21
- ```bash
22
- npm run build
23
- ```
1
+ # tsdown-starter
2
+
3
+ A starter for creating a TypeScript package.
4
+
5
+ ## Development
6
+
7
+ - Install dependencies:
8
+
9
+ ```bash
10
+ npm install
11
+ ```
12
+
13
+ - Run the unit tests:
14
+
15
+ ```bash
16
+ npm run test
17
+ ```
18
+
19
+ - Build the library:
20
+
21
+ ```bash
22
+ npm run build
23
+ ```
package/lib/package.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{exit,log}from"./_utils/index.mjs";import{readFileSync}from"fs";function readPackageFile(){try{log(`inspect-package`);let e=readFileSync(`package.json`),a=JSON.parse(e);checkDependencies(a),checkDevDependencies(a),checkUnnecessaryDencies(a)}catch{exit(`read package.json file error`)}}function checkDependencies(r){let i=[`@intlify/unplugin-vue-i18n`,`@semi-kit/hooks`,`@semi-kit/utils`,`@semi-kit/vars`,`@vueuse/core`,`@vueuse/integrations`,`es-toolkit`,`pinia`,`pinia-plugin-persistedstate`,`vue`,`vue-i18n`,`vue-router`],a=r.dependencies;a||exit(`package.json 文件中缺少 dependencies 字段`);for(let r=0;r<i.length;r++){let o=i[r];a[o]||exit(`dependencies 中缺少 ${o} , 运行 "npm i ${o}" 或 "pnpm i ${o}" 安装`)}}function checkDevDependencies(r){let i=[`@antfu/eslint-config`,`@commitlint/cli`,`@iconify-json/carbon`,`@types/node`,`@vitejs/plugin-vue`,`@vitejs/plugin-vue-jsx`,`@vue/tsconfig`,`commitizen`,`cz-git`,`eslint`,`eslint-plugin-standard-semi`,`simple-git-hooks`,`less`,`lint-staged`,`@semi-kit/config`,`unocss`,`typescript`,`unplugin-auto-import`,`unplugin-vue-components`,`vite`,`vue-tsc`],a=r.devDependencies;a||exit(`package.json 文件中缺少 devDependencies 字段`);for(let r=0;r<i.length;r++){let o=i[r];a[o]||exit(`devDependencies 中缺少 ${o} , 运行 "npm i ${o}" 或 "pnpm i -D ${o}" 安装它`)}}function checkUnnecessaryDencies(r){let i={fetch:`axios`,superagent:`axios`,"vue-cropper":`cropperjs`,"vue-cropperjs":`cropperjs`,"vue-advanced-cropper":`cropperjs`,"vue-image-crop-upload":`cropperjs`,highcharts:`echarts`,"chart.js":`echarts`,d3:`echarts`,"lodash-es":`es-toolkit`,underscore:`es-toolkit`,lodash:`es-toolkit`,nprogress:`Naive UI Progress Component`,"pace-js":`Naive UI Progress Component`,vuex:`pinia`,"pinia-plugin-persist":`pinia-plugin-persistedstate`,"pinia-plugin-persistedstate-2":`pinia-plugin-persistedstate`,"pinia-persists":`pinia-plugin-persistedstate`,qrcodejs:`Naive UI QRcode Conponent`,"vue-qrcode-reader":`Naive UI QRcode Conponent`,"vue-qrcode-component":`Naive UI QRcode Conponent`,"@chenfengyuan/vue-qrcode":`Naive UI QRcode Conponent`,"tinymce-vue":`wangEditor or tinymce`,"@tiptap/pm":`wangEditor or tinymce`,"@tiptap/vue-3":`wangEditor or tinymce`,"@tiptap/core":`wangEditor or tinymce`,"@toast-ui/vue-editor":`wangEditor or tinymce`,quill:`wangEditor or tinymce`,"editor.js":`wangEditor or tinymce`,"mavon-editor":`vditor`,bytemd:`vditor`,"@bytemd/vue":`vditor`,"md-editor-v3":`vditor`,"@kangc/v-md-editor@next":`vditor`,i18next:`vue-i18n`,"@icon-park/vue-next":`@unocss/preset-icons & @iconify-json/carbon`,"iconify-icon":`@unocss/preset-icons & @iconify-json/carbon`,"@iconify/vue":`@unocss/preset-icons & @iconify-json/carbon`,"unplugin-icons":`@unocss/preset-icons & @iconify-json/carbon`,"vue-material-design-icons":`@unocss/preset-icons & @iconify-json/carbon`,"@fortawesome/fontawesome-svg-core":`@unocss/preset-icons & @iconify-json/carbon`,"@fortawesome/vue-fontawesome":`@unocss/preset-icons & @iconify-json/carbon`,"@mdi/js":`@unocss/preset-icons & @iconify-json/carbon`,"@mdi/svg":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/fluent":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/ionicons4":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/ionicons5":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/antd":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/material":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/fa":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/tabler":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/carbon":`@unocss/preset-icons & @iconify-json/carbon`,"element-plus":`Naive UI`,"ant-design-vue":`Naive UI`,"@arco-design/web-vue":`Naive UI`,"balm-ui":`Naive UI`,quasar:`Naive UI`,primevue:`Naive UI`,"tdesign-vue-next":`Naive UI`,"@idux/components":`Naive UI`,"vue-devui":`Naive UI`,"vuestic-ui":`Naive UI`,"view-ui-plus":`Naive UI`,"@headlessui/vue":`Naive UI`,sass:`less`,stylus:`less`,tinykeys:`Vue Use`,pdfkit:`jspdf`,"pdf-lib":`jspdf`,pdfvuer:`pdf.js or html2pdf.js`,"vue-pdf-embed":`pdf.js or html2pdf.js`,babylonjs:`three`,"two.js":`fabric`,paper:`fabric`,p5:`fabric`,vuedraggable:`sortablejs`,"vue-drag-resize":`sortablejs`,"vue3-draggable-resizable":`sortablejs`,"@braks/revue-draggable":`sortablejs`,"vue-print-nb":`print-js`,"@soerenmartius/vue3-clipboard":`clipboard.js`},a={...r.dependencies,...r.devDependencies};for(let r=0;r<Object.keys(i).length;r++){let o=Object.keys(i)[r];a[o]&&exit(`不建议使用 ${o}, 使用 ${i[o]} 替代`)}}readPackageFile();export{};
2
+ import{exit,log}from"./_utils/index.mjs";import{readFileSync}from"fs";function readPackageFile(){try{log(`inspect-package`);let e=readFileSync(`package.json`),a=JSON.parse(e);checkDependencies(a),checkDevDependencies(a),checkUnnecessaryDencies(a)}catch{exit(`read package.json file error`)}}function checkDependencies(r){let i=[`@intlify/unplugin-vue-i18n`,`@semi-kit/hooks`,`@semi-kit/utils`,`@semi-kit/theme`,`@vueuse/core`,`@vueuse/integrations`,`es-toolkit`,`pinia`,`pinia-plugin-persistedstate`,`vue`,`vue-i18n`,`vue-router`],a=r.dependencies;a||exit(`package.json 文件中缺少 dependencies 字段`);for(let r=0;r<i.length;r++){let o=i[r];a[o]||exit(`dependencies 中缺少 ${o} , 运行 "npm i ${o}" 或 "pnpm i ${o}" 安装`)}}function checkDevDependencies(r){let i=[`@antfu/eslint-config`,`@commitlint/cli`,`@iconify-json/carbon`,`@types/node`,`@vitejs/plugin-vue`,`@vitejs/plugin-vue-jsx`,`@vue/tsconfig`,`commitizen`,`cz-git`,`eslint`,`eslint-plugin-standard-semi`,`simple-git-hooks`,`less`,`lint-staged`,`@semi-kit/config`,`unocss`,`typescript`,`unplugin-auto-import`,`unplugin-vue-components`,`vite`,`vue-tsc`],a=r.devDependencies;a||exit(`package.json 文件中缺少 devDependencies 字段`);for(let r=0;r<i.length;r++){let o=i[r];a[o]||exit(`devDependencies 中缺少 ${o} , 运行 "npm i ${o}" 或 "pnpm i -D ${o}" 安装它`)}}function checkUnnecessaryDencies(r){let i={fetch:`axios`,superagent:`axios`,"vue-cropper":`cropperjs`,"vue-cropperjs":`cropperjs`,"vue-advanced-cropper":`cropperjs`,"vue-image-crop-upload":`cropperjs`,highcharts:`echarts`,"chart.js":`echarts`,d3:`echarts`,"lodash-es":`es-toolkit`,underscore:`es-toolkit`,lodash:`es-toolkit`,nprogress:`Naive UI Progress Component`,"pace-js":`Naive UI Progress Component`,vuex:`pinia`,"pinia-plugin-persist":`pinia-plugin-persistedstate`,"pinia-plugin-persistedstate-2":`pinia-plugin-persistedstate`,"pinia-persists":`pinia-plugin-persistedstate`,qrcodejs:`Naive UI QRcode Conponent`,"vue-qrcode-reader":`Naive UI QRcode Conponent`,"vue-qrcode-component":`Naive UI QRcode Conponent`,"@chenfengyuan/vue-qrcode":`Naive UI QRcode Conponent`,"tinymce-vue":`wangEditor or tinymce`,"@tiptap/pm":`wangEditor or tinymce`,"@tiptap/vue-3":`wangEditor or tinymce`,"@tiptap/core":`wangEditor or tinymce`,"@toast-ui/vue-editor":`wangEditor or tinymce`,quill:`wangEditor or tinymce`,"editor.js":`wangEditor or tinymce`,"mavon-editor":`vditor`,bytemd:`vditor`,"@bytemd/vue":`vditor`,"md-editor-v3":`vditor`,"@kangc/v-md-editor@next":`vditor`,i18next:`vue-i18n`,"@icon-park/vue-next":`@unocss/preset-icons & @iconify-json/carbon`,"iconify-icon":`@unocss/preset-icons & @iconify-json/carbon`,"@iconify/vue":`@unocss/preset-icons & @iconify-json/carbon`,"unplugin-icons":`@unocss/preset-icons & @iconify-json/carbon`,"vue-material-design-icons":`@unocss/preset-icons & @iconify-json/carbon`,"@fortawesome/fontawesome-svg-core":`@unocss/preset-icons & @iconify-json/carbon`,"@fortawesome/vue-fontawesome":`@unocss/preset-icons & @iconify-json/carbon`,"@mdi/js":`@unocss/preset-icons & @iconify-json/carbon`,"@mdi/svg":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/fluent":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/ionicons4":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/ionicons5":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/antd":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/material":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/fa":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/tabler":`@unocss/preset-icons & @iconify-json/carbon`,"@vicons/carbon":`@unocss/preset-icons & @iconify-json/carbon`,"element-plus":`Naive UI`,"ant-design-vue":`Naive UI`,"@arco-design/web-vue":`Naive UI`,"balm-ui":`Naive UI`,quasar:`Naive UI`,primevue:`Naive UI`,"tdesign-vue-next":`Naive UI`,"@idux/components":`Naive UI`,"vue-devui":`Naive UI`,"vuestic-ui":`Naive UI`,"view-ui-plus":`Naive UI`,"@headlessui/vue":`Naive UI`,sass:`less`,stylus:`less`,tinykeys:`Vue Use`,pdfkit:`jspdf`,"pdf-lib":`jspdf`,pdfvuer:`pdf.js or html2pdf.js`,"vue-pdf-embed":`pdf.js or html2pdf.js`,babylonjs:`three`,"two.js":`fabric`,paper:`fabric`,p5:`fabric`,vuedraggable:`sortablejs`,"vue-drag-resize":`sortablejs`,"vue3-draggable-resizable":`sortablejs`,"@braks/revue-draggable":`sortablejs`,"vue-print-nb":`print-js`,"@soerenmartius/vue3-clipboard":`clipboard.js`},a={...r.dependencies,...r.devDependencies};for(let r=0;r<Object.keys(i).length;r++){let o=Object.keys(i)[r];a[o]&&exit(`不建议使用 ${o}, 使用 ${i[o]} 替代`)}}readPackageFile();export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semi-kit/config",
3
- "version": "1.2.15",
3
+ "version": "1.2.17",
4
4
  "description": "Shared development configuration toolkit",
5
5
  "license": "MIT",
6
6
  "author": "lijiaheng <jahnli@163.com>",