@oinone/cli 7.2.5 → 7.2.7
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 +100 -71
- package/README_zh-CN.md +100 -71
- package/bin/cli.js +48 -473
- package/bin/commands/cache.js +70 -0
- package/bin/commands/create/enterprise.js +81 -0
- package/bin/commands/create/index.js +128 -0
- package/bin/commands/create/project.js +81 -0
- package/bin/commands/create/prompts.js +126 -0
- package/bin/commands/create/static-resources.js +159 -0
- package/bin/commands/create/template.js +38 -0
- package/bin/commands/create/update-check.js +44 -0
- package/bin/commands/create/version-source.js +32 -0
- package/bin/commands/create.js +1 -0
- package/bin/commands/doctor.js +51 -0
- package/bin/config.js +54 -0
- package/bin/i18n.js +51 -125
- package/bin/locales/en-US.json +81 -0
- package/bin/locales/zh-CN.json +81 -0
- package/bin/utils/oinone-version.js +60 -0
- package/package.json +2 -2
- package/template-6.4.0/packages/ss-boot/public/favicon.ico +0 -0
- package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/src/main.ts +1 -2
- package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/vue.config.js +1 -1
- package/{template-7.2.0-community → template-7.2.0}/npmrc +2 -0
- package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/package.json +3 -2
- package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/rollup.config.js +2 -0
- package/template-7.2.0/packages/ss-boot/public/favicon.ico +0 -0
- package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/src/main.ts +1 -2
- package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/vue.config.js +1 -1
- package/{template-7.2.0-enterprise → template-7.2.0}/packages/ss-oinone/package.json +3 -2
- package/{template-7.2.0-enterprise → template-7.2.0}/packages/ss-oinone/rollup.config.js +2 -0
- package/{template-7.2.0-community → template-7.2.0}/packages/ss-project/package.json +3 -2
- package/{template-7.2.0-enterprise → template-7.2.0}/packages/ss-project/rollup.config.js +2 -0
- package/template-6.4.0-community/packages/ss-boot/public/favicon.ico +0 -0
- package/template-6.4.0-enterprise/.eslintignore +0 -5
- package/template-6.4.0-enterprise/.eslintrc.json +0 -72
- package/template-6.4.0-enterprise/_package.json +0 -47
- package/template-6.4.0-enterprise/npmrc +0 -3
- package/template-6.4.0-enterprise/packages/ss-admin-widget/package.json +0 -25
- package/template-6.4.0-enterprise/packages/ss-admin-widget/rollup.config.js +0 -73
- package/template-6.4.0-enterprise/packages/ss-admin-widget/tsconfig.json +0 -45
- package/template-6.4.0-enterprise/packages/ss-boot/package.json +0 -66
- package/template-6.4.0-enterprise/packages/ss-boot/public/favicon.ico +0 -0
- package/template-6.4.0-enterprise/packages/ss-boot/src/main.ts +0 -69
- package/template-6.4.0-enterprise/packages/ss-boot/tsconfig.json +0 -44
- package/template-6.4.0-enterprise/packages/ss-boot/vue.config.js +0 -84
- package/template-6.4.0-enterprise/packages/ss-oinone/package.json +0 -29
- package/template-6.4.0-enterprise/packages/ss-oinone/rollup.config.js +0 -82
- package/template-6.4.0-enterprise/packages/ss-oinone/tsconfig.json +0 -42
- package/template-6.4.0-enterprise/packages/ss-project/package.json +0 -30
- package/template-6.4.0-enterprise/packages/ss-project/rollup.config.js +0 -83
- package/template-6.4.0-enterprise/packages/ss-project/tsconfig.json +0 -42
- package/template-6.4.0-enterprise/scripts/build/postbuild.js +0 -42
- package/template-6.4.0-enterprise/scripts/build/prebuild-only.js +0 -48
- package/template-7.2.0-community/.prettierrc.json +0 -8
- package/template-7.2.0-community/README.md +0 -59
- package/template-7.2.0-community/gitignore +0 -58
- package/template-7.2.0-community/lerna.json +0 -12
- package/template-7.2.0-community/packages/ss-admin-widget/index.ts +0 -1
- package/template-7.2.0-community/packages/ss-admin-widget/scripts/postpublish.js +0 -13
- package/template-7.2.0-community/packages/ss-admin-widget/scripts/prepublish-only.js +0 -24
- package/template-7.2.0-community/packages/ss-admin-widget/src/index.ts +0 -1
- package/template-7.2.0-community/packages/ss-admin-widget/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-community/packages/ss-admin-widget/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-community/packages/ss-boot/.env +0 -1
- package/template-7.2.0-community/packages/ss-boot/.env.example +0 -6
- package/template-7.2.0-community/packages/ss-boot/public/favicon.ico +0 -0
- package/template-7.2.0-community/packages/ss-boot/public/index.html +0 -83
- package/template-7.2.0-community/packages/ss-boot/public/manifest.js +0 -5
- package/template-7.2.0-community/packages/ss-boot/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-community/packages/ss-boot/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-community/packages/ss-oinone/index.ts +0 -1
- package/template-7.2.0-community/packages/ss-oinone/package.json +0 -30
- package/template-7.2.0-community/packages/ss-oinone/rollup.config.js +0 -14
- package/template-7.2.0-community/packages/ss-oinone/scripts/postpublish.js +0 -13
- package/template-7.2.0-community/packages/ss-oinone/scripts/prepublish-only.js +0 -24
- package/template-7.2.0-community/packages/ss-oinone/src/index.ts +0 -1
- package/template-7.2.0-community/packages/ss-oinone/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-community/packages/ss-oinone/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-community/packages/ss-project/index.ts +0 -1
- package/template-7.2.0-community/packages/ss-project/rollup.config.js +0 -14
- package/template-7.2.0-community/packages/ss-project/scripts/postpublish.js +0 -13
- package/template-7.2.0-community/packages/ss-project/scripts/prepublish-only.js +0 -24
- package/template-7.2.0-community/packages/ss-project/src/index.ts +0 -1
- package/template-7.2.0-community/packages/ss-project/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-community/packages/ss-project/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-community/pnpm-workspace.yaml +0 -3
- package/template-7.2.0-community/scripts/build/inset-tsconfig.js +0 -68
- package/template-7.2.0-community/scripts/build/package-name.js +0 -25
- package/template-7.2.0-community/scripts/clean.mjs +0 -22
- package/template-7.2.0-enterprise/.prettierrc.json +0 -8
- package/template-7.2.0-enterprise/README.md +0 -59
- package/template-7.2.0-enterprise/_package.json +0 -57
- package/template-7.2.0-enterprise/eslint.config.ts +0 -23
- package/template-7.2.0-enterprise/gitignore +0 -58
- package/template-7.2.0-enterprise/lerna.json +0 -12
- package/template-7.2.0-enterprise/npmrc +0 -3
- package/template-7.2.0-enterprise/packages/ss-admin-widget/index.ts +0 -1
- package/template-7.2.0-enterprise/packages/ss-admin-widget/package.json +0 -27
- package/template-7.2.0-enterprise/packages/ss-admin-widget/rollup.config.js +0 -14
- package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/postpublish.js +0 -13
- package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/prepublish-only.js +0 -24
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/index.ts +0 -1
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-enterprise/packages/ss-admin-widget/tsconfig.json +0 -14
- package/template-7.2.0-enterprise/packages/ss-boot/.env +0 -1
- package/template-7.2.0-enterprise/packages/ss-boot/.env.example +0 -6
- package/template-7.2.0-enterprise/packages/ss-boot/package.json +0 -64
- package/template-7.2.0-enterprise/packages/ss-boot/public/favicon.ico +0 -0
- package/template-7.2.0-enterprise/packages/ss-boot/public/index.html +0 -83
- package/template-7.2.0-enterprise/packages/ss-boot/public/manifest.js +0 -5
- package/template-7.2.0-enterprise/packages/ss-boot/src/main.ts +0 -66
- package/template-7.2.0-enterprise/packages/ss-boot/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-enterprise/packages/ss-boot/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-enterprise/packages/ss-boot/tsconfig.json +0 -27
- package/template-7.2.0-enterprise/packages/ss-boot/vue.config.js +0 -87
- package/template-7.2.0-enterprise/packages/ss-oinone/index.ts +0 -1
- package/template-7.2.0-enterprise/packages/ss-oinone/scripts/postpublish.js +0 -13
- package/template-7.2.0-enterprise/packages/ss-oinone/scripts/prepublish-only.js +0 -24
- package/template-7.2.0-enterprise/packages/ss-oinone/src/index.ts +0 -1
- package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-enterprise/packages/ss-oinone/tsconfig.json +0 -14
- package/template-7.2.0-enterprise/packages/ss-project/index.ts +0 -1
- package/template-7.2.0-enterprise/packages/ss-project/package.json +0 -30
- package/template-7.2.0-enterprise/packages/ss-project/scripts/postpublish.js +0 -13
- package/template-7.2.0-enterprise/packages/ss-project/scripts/prepublish-only.js +0 -24
- package/template-7.2.0-enterprise/packages/ss-project/src/index.ts +0 -1
- package/template-7.2.0-enterprise/packages/ss-project/src/shim-translate.d.ts +0 -10
- package/template-7.2.0-enterprise/packages/ss-project/src/shim-vue.d.ts +0 -6
- package/template-7.2.0-enterprise/packages/ss-project/tsconfig.json +0 -14
- package/template-7.2.0-enterprise/pnpm-workspace.yaml +0 -3
- package/template-7.2.0-enterprise/scripts/build/inset-tsconfig.js +0 -68
- package/template-7.2.0-enterprise/scripts/build/package-name.js +0 -25
- package/template-7.2.0-enterprise/scripts/clean.mjs +0 -22
- /package/{template-6.4.0-community → template-6.4.0}/.eslintignore +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/.eslintrc.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/.prettierrc.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/README.md +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/_package.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/gitignore +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/lerna.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/npmrc +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/index.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/package.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/rollup.config.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/scripts/postpublish.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/scripts/prepublish-only.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/src/index.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/src/shim-vue.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/tsconfig.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/.env +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/.env.example +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/package.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/public/index.html +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/public/manifest.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/src/shim-vue.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/tsconfig.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/index.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/package.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/rollup.config.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/scripts/postpublish.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/scripts/prepublish-only.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/src/index.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/src/shim-vue.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/tsconfig.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/index.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/package.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/rollup.config.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/scripts/postpublish.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/scripts/prepublish-only.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/src/index.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/src/shim-vue.d.ts +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/tsconfig.json +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/pnpm-workspace.yaml +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/scripts/build/inset-tsconfig.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/scripts/build/package-name.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/scripts/build/postbuild.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/scripts/build/prebuild-only.js +0 -0
- /package/{template-6.4.0-community → template-6.4.0}/scripts/clean.mjs +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/.prettierrc.json +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/README.md +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/_package.json +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/eslint.config.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/gitignore +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/lerna.json +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/index.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/scripts/postpublish.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/scripts/prepublish-only.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/src/index.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/src/shim-vue.d.ts +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/tsconfig.json +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/.env +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/.env.example +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/package.json +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/public/index.html +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/public/manifest.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-boot/src/shim-vue.d.ts +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-boot/tsconfig.json +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/index.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/scripts/postpublish.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/scripts/prepublish-only.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/src/index.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-oinone/src/shim-vue.d.ts +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-oinone/tsconfig.json +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/index.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/scripts/postpublish.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/scripts/prepublish-only.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/src/index.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/src/shim-translate.d.ts +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-project/src/shim-vue.d.ts +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-project/tsconfig.json +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/pnpm-workspace.yaml +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/scripts/build/inset-tsconfig.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/scripts/build/package-name.js +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/scripts/clean.mjs +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ss/project",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "index.ts",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
8
|
"prebuild": "rimraf dist",
|
|
8
9
|
"build": "rollup -c && npm run build-css",
|
|
9
|
-
"build-css": "[ -f './dist/
|
|
10
|
+
"build-css": "[ -f './dist/ss-project.scss' ] && sass ./dist/ss-project.scss ./dist/ss-project.css || exit 0",
|
|
10
11
|
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
-
"build-css-win": "IF EXIST ./dist/
|
|
12
|
+
"build-css-win": "IF EXIST ./dist/ss-project.scss (sass ./dist/ss-project.scss ./dist/ss-project.css) ELSE (exit 0)",
|
|
12
13
|
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
14
|
"postpublish": "node ./scripts/postpublish.js"
|
|
14
15
|
},
|
|
File without changes
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"env": {
|
|
4
|
-
"node": true
|
|
5
|
-
},
|
|
6
|
-
"parser": "vue-eslint-parser",
|
|
7
|
-
"parserOptions": {
|
|
8
|
-
"parser": "@typescript-eslint/parser",
|
|
9
|
-
"ecmaVersion": 2020,
|
|
10
|
-
"sourceType": "module",
|
|
11
|
-
"project": [
|
|
12
|
-
"./tsconfig.eslint.json"
|
|
13
|
-
],
|
|
14
|
-
"extraFileExtensions": [
|
|
15
|
-
".vue",
|
|
16
|
-
".widget"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"extends": [
|
|
20
|
-
"airbnb-typescript/base",
|
|
21
|
-
"plugin:@typescript-eslint/recommended",
|
|
22
|
-
"plugin:vue/vue3-essential",
|
|
23
|
-
"@vue/typescript",
|
|
24
|
-
"prettier/@typescript-eslint",
|
|
25
|
-
"plugin:prettier/recommended",
|
|
26
|
-
"prettier/vue"
|
|
27
|
-
],
|
|
28
|
-
"rules": {
|
|
29
|
-
"import/extensions": "off",
|
|
30
|
-
"import/prefer-default-export": "off",
|
|
31
|
-
"import/no-extraneous-dependencies": "off",
|
|
32
|
-
"no-underscore-dangle": "off",
|
|
33
|
-
"no-param-reassign": "off",
|
|
34
|
-
"class-methods-use-this": "off",
|
|
35
|
-
"no-restricted-syntax": "off",
|
|
36
|
-
"consistent-return": "off",
|
|
37
|
-
"max-classes-per-file": "off",
|
|
38
|
-
"no-plusplus": "off",
|
|
39
|
-
"curly": [
|
|
40
|
-
"error",
|
|
41
|
-
"all"
|
|
42
|
-
],
|
|
43
|
-
"default-case": "off",
|
|
44
|
-
"no-continue": "off",
|
|
45
|
-
"no-prototype-builtins": "off",
|
|
46
|
-
"no-return-assign": "off",
|
|
47
|
-
"no-restricted-globals": "off",
|
|
48
|
-
"guard-for-in": "off",
|
|
49
|
-
"no-useless-escape": "off",
|
|
50
|
-
"no-bitwise": "off",
|
|
51
|
-
"prefer-destructuring": "warn",
|
|
52
|
-
"no-extra-boolean-cast": "off",
|
|
53
|
-
"no-console": "off",
|
|
54
|
-
"vue/no-dupe-keys": "off",
|
|
55
|
-
"vue/no-v-for-template-key-on-child": "off",
|
|
56
|
-
"@typescript-eslint/no-empty-function": "off",
|
|
57
|
-
"@typescript-eslint/naming-convention": "off",
|
|
58
|
-
"@typescript-eslint/no-non-null-assertion": "off",
|
|
59
|
-
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
60
|
-
"@typescript-eslint/no-use-before-define": "off",
|
|
61
|
-
"@typescript-eslint/ban-types": "off",
|
|
62
|
-
"@typescript-eslint/no-unused-expressions": "off",
|
|
63
|
-
"@typescript-eslint/explicit-member-accessibility": "off"
|
|
64
|
-
},
|
|
65
|
-
"settings": {
|
|
66
|
-
"import/resolver": {
|
|
67
|
-
"typescript": {
|
|
68
|
-
"project": "packages/*/tsconfig.json"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ss-front-modules",
|
|
3
|
-
"version": "0.0.0",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "pnpm lerna exec --scope ss-boot -- npm run dev",
|
|
7
|
-
"clean": "pnpm lerna run clean --parallel && rimraf package-lock.json pnpm-lock.yaml node_modules",
|
|
8
|
-
"clean:win": "node ./scripts/clean.mjs",
|
|
9
|
-
"build": "pnpm lerna run build --parallel",
|
|
10
|
-
"build-win": "pnpm lerna run build-win --parallel",
|
|
11
|
-
"publish": "pnpm lerna publish --no-git-tag-version --no-push --exact -y"
|
|
12
|
-
},
|
|
13
|
-
"devDependencies": {
|
|
14
|
-
"@commitlint/cli": "9.1.2",
|
|
15
|
-
"@commitlint/config-conventional": "9.1.2",
|
|
16
|
-
"@rollup/plugin-json": "4.1.0",
|
|
17
|
-
"@rollup/plugin-node-resolve": "11.2.1",
|
|
18
|
-
"@rollup/plugin-replace": "2.4.2",
|
|
19
|
-
"@typescript-eslint/parser": "5.5.0",
|
|
20
|
-
"glob": "^11.0.0",
|
|
21
|
-
"husky": "4.2.5",
|
|
22
|
-
"jest": "26.4.2",
|
|
23
|
-
"lerna": "^8.1.3",
|
|
24
|
-
"lint-staged": "10.4.2",
|
|
25
|
-
"patch-package": "6.2.2",
|
|
26
|
-
"postcss": "8.4.5",
|
|
27
|
-
"postcss-import": "14.0.2",
|
|
28
|
-
"prettier": "2.5.0",
|
|
29
|
-
"rimraf": "6.0.1",
|
|
30
|
-
"rollup": "2.63.0",
|
|
31
|
-
"rollup-plugin-commonjs": "10.1.0",
|
|
32
|
-
"rollup-plugin-postcss": "4.0.2",
|
|
33
|
-
"rollup-plugin-scss": "4.0.0",
|
|
34
|
-
"rollup-plugin-sourcemaps": "0.6.3",
|
|
35
|
-
"rollup-plugin-terser": "7.0.2",
|
|
36
|
-
"rollup-plugin-typescript2": "0.29.0",
|
|
37
|
-
"rollup-plugin-visualizer": "^5.5.4",
|
|
38
|
-
"rollup-plugin-vue": "6.0.0",
|
|
39
|
-
"sass": "1.44.0",
|
|
40
|
-
"sass-loader": "10.1.1",
|
|
41
|
-
"ts-jest": "26.3.0",
|
|
42
|
-
"tslib": "2.3.1",
|
|
43
|
-
"typedoc": "0.20.37",
|
|
44
|
-
"typescript": "4.5.2",
|
|
45
|
-
"vue": "3.2.40"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ss/admin-widget",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"main": "index.ts",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
|
-
"prebuild": "rimraf dist",
|
|
8
|
-
"build": "rollup -c && npm run build-css",
|
|
9
|
-
"build-css": "[ -f './dist/kunlun-module-demo.scss' ] && sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css || exit 0",
|
|
10
|
-
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
-
"build-css-win": "IF EXIST ./dist/kunlun-module-demo.scss (sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css) ELSE (exit 0)",
|
|
12
|
-
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
|
-
"postpublish": "node ./scripts/postpublish.js"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@element-plus/icons-vue": "2.0.9",
|
|
17
|
-
"@oinone/kunlun-dependencies": "~6.4.0",
|
|
18
|
-
"@oinone/kunlun-vue-ui-antd": "~6.4.0",
|
|
19
|
-
"@oinone/kunlun-vue-ui-el": "~6.4.0",
|
|
20
|
-
"@types/lodash-es": "4.17.6",
|
|
21
|
-
"ant-design-vue": "3.2.14",
|
|
22
|
-
"element-plus": "2.2.17",
|
|
23
|
-
"vue": "3.2.40"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import json from '@rollup/plugin-json';
|
|
2
|
-
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
3
|
-
import replace from '@rollup/plugin-replace';
|
|
4
|
-
import commonjs from 'rollup-plugin-commonjs';
|
|
5
|
-
import scss from 'rollup-plugin-scss';
|
|
6
|
-
import typescript from 'rollup-plugin-typescript2';
|
|
7
|
-
import vue from 'rollup-plugin-vue';
|
|
8
|
-
|
|
9
|
-
const libraryName = 'ss-admin-widget';
|
|
10
|
-
|
|
11
|
-
const external = [
|
|
12
|
-
'vue',
|
|
13
|
-
'lodash-es',
|
|
14
|
-
'ant-design-vue',
|
|
15
|
-
'@element-plus/icons-vue',
|
|
16
|
-
'element-plus',
|
|
17
|
-
'@oinone/kunlun-dependencies',
|
|
18
|
-
'@oinone/kunlun-data-designer-core',
|
|
19
|
-
'@oinone/kunlun-vue-ui-antd',
|
|
20
|
-
'@oinone/kunlun-vue-ui-el'
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
const tsconfigOverride = {
|
|
24
|
-
compilerOptions: {
|
|
25
|
-
outDir: 'dist',
|
|
26
|
-
declaration: true,
|
|
27
|
-
declarationDir: 'dist/types'
|
|
28
|
-
},
|
|
29
|
-
include: ['index.ts', 'src/**/*.ts'],
|
|
30
|
-
exclude: ['tests/**/*.ts', 'tests/**/*.tsx']
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const plugins = [
|
|
34
|
-
replace({
|
|
35
|
-
'process.env.NODE_ENV': JSON.stringify('development'),
|
|
36
|
-
preventAssignment: true
|
|
37
|
-
}),
|
|
38
|
-
nodeResolve(),
|
|
39
|
-
|
|
40
|
-
typescript({ useTsconfigDeclarationDir: true, tsconfigOverride }),
|
|
41
|
-
|
|
42
|
-
vue(),
|
|
43
|
-
|
|
44
|
-
scss({
|
|
45
|
-
fileName: `${libraryName}.scss`,
|
|
46
|
-
output: `dist/${libraryName}.scss`,
|
|
47
|
-
sourceMap: false,
|
|
48
|
-
outputStyle: 'compressed'
|
|
49
|
-
}),
|
|
50
|
-
|
|
51
|
-
json(),
|
|
52
|
-
commonjs()
|
|
53
|
-
];
|
|
54
|
-
|
|
55
|
-
export default {
|
|
56
|
-
input: `index.ts`,
|
|
57
|
-
output: [
|
|
58
|
-
{
|
|
59
|
-
file: `dist/${libraryName}.esm.js`,
|
|
60
|
-
format: 'esm',
|
|
61
|
-
sourcemap: false
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
onwarn(warning) {
|
|
65
|
-
if (warning.code === 'THIS_IS_UNDEFINED' || /Circular/.test(warning.message)) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
console.error(warning.message);
|
|
70
|
-
},
|
|
71
|
-
external,
|
|
72
|
-
plugins
|
|
73
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"strict": true,
|
|
4
|
-
"target": "ES6",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"jsx": "preserve",
|
|
7
|
-
"importHelpers": true,
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"experimentalDecorators": true,
|
|
14
|
-
"sourceMap": true,
|
|
15
|
-
"checkJs": false,
|
|
16
|
-
"noImplicitAny": false,
|
|
17
|
-
"baseUrl": ".",
|
|
18
|
-
"types": [
|
|
19
|
-
"webpack-env"
|
|
20
|
-
],
|
|
21
|
-
"paths": {
|
|
22
|
-
"@/*": [
|
|
23
|
-
"src/*"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"lib": [
|
|
27
|
-
"ES2018",
|
|
28
|
-
"esnext",
|
|
29
|
-
"dom",
|
|
30
|
-
"dom.iterable",
|
|
31
|
-
"scripthost"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"include": [
|
|
35
|
-
"src/**/*.ts",
|
|
36
|
-
"src/**/*.tsx",
|
|
37
|
-
"src/**/*.vue",
|
|
38
|
-
"tests/**/*.ts",
|
|
39
|
-
"tests/**/*.tsx"
|
|
40
|
-
],
|
|
41
|
-
"exclude": [
|
|
42
|
-
"node_modules",
|
|
43
|
-
"dist"
|
|
44
|
-
]
|
|
45
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ss-boot",
|
|
3
|
-
"version": "0.0.1",
|
|
4
|
-
"private": true,
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "vue-cli-service serve",
|
|
7
|
-
"build": "node --max_old_space_size=4096 ./node_modules/@vue/cli-service/bin/vue-cli-service.js build",
|
|
8
|
-
"clean": "rimraf dist package-lock.json node_modules"
|
|
9
|
-
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"@ckeditor/ckeditor5-build-classic": "27.0.0",
|
|
12
|
-
"@element-plus/icons-vue": "2.0.9",
|
|
13
|
-
"@oinone/kunlun-dependencies": "~6.4.0",
|
|
14
|
-
"@oinone/kunlun-vue-admin-base": "~6.4.0",
|
|
15
|
-
"@oinone/kunlun-vue-admin-layout": "~6.4.0",
|
|
16
|
-
"@oinone/kunlun-vue-ui-antd": "~6.4.0",
|
|
17
|
-
"@oinone/kunlun-vue-ui-el": "~6.4.0",
|
|
18
|
-
"@oinone/kunlun-mobile-dependencies": "~6.4.0",
|
|
19
|
-
"@oinone/kunlun-vue-ui-mobile-vant": "~6.4.0",
|
|
20
|
-
"@oinone/kunlun-designer-common": "~6.4.0",
|
|
21
|
-
"@oinone/kunlun-designer-common-ee": "~6.4.0",
|
|
22
|
-
"@oinone/kunlun-ui-designer-dependencies": "~6.4.0",
|
|
23
|
-
"@oinone/kunlun-print-designer-dependencies": "~6.4.0",
|
|
24
|
-
"@oinone/kunlun-workflow-designer": "~6.4.0",
|
|
25
|
-
"@oinone/kunlun-workflow": "~6.4.0",
|
|
26
|
-
"@oinone/kunlun-model-designer": "~6.4.0",
|
|
27
|
-
"@oinone/kunlun-eip-dependencies": "~6.4.0",
|
|
28
|
-
"@oinone/kunlun-ai-dependencies": "~6.4.0",
|
|
29
|
-
"@oinone/kunlun-data-designer": "~6.4.0",
|
|
30
|
-
"@oinone/kunlun-data-designer-core": "~6.4.0",
|
|
31
|
-
"@oinone/kunlun-data-designer-open-pc": "~6.4.0",
|
|
32
|
-
"@oinone/kunlun-microflow-designer": "~6.4.0",
|
|
33
|
-
"@ss/admin-widget": "workspace:*",
|
|
34
|
-
"@ss/oinone": "workspace:*",
|
|
35
|
-
"@ss/project": "workspace:*",
|
|
36
|
-
"vant": "3.6.0",
|
|
37
|
-
"ant-design-vue": "3.2.14",
|
|
38
|
-
"element-plus": "2.2.17",
|
|
39
|
-
"fast-xml-parser": "3.21.1",
|
|
40
|
-
"graphql": "15.8.0",
|
|
41
|
-
"graphql-tag": "2.12.6",
|
|
42
|
-
"lodash-es": "4.17.21",
|
|
43
|
-
"moment": "2.29.3",
|
|
44
|
-
"reflect-metadata": "0.1.13",
|
|
45
|
-
"vue": "3.2.40",
|
|
46
|
-
"vue3-draggable-resizable": "1.6.1",
|
|
47
|
-
"vuedraggable": "4.1.0",
|
|
48
|
-
"@ant-design/icons-vue": "7.0.1",
|
|
49
|
-
"echarts": "6.0.0",
|
|
50
|
-
"@antv/data-set": "0.11.8",
|
|
51
|
-
"@antv/g2": "5.4.8"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
"@types/moment": "2.13.0",
|
|
55
|
-
"@vue/cli-plugin-typescript": "5.0.8",
|
|
56
|
-
"@vue/cli-service": "5.0.8",
|
|
57
|
-
"@vue/compiler-sfc": "3.2.40",
|
|
58
|
-
"cross-env": "7.0.3",
|
|
59
|
-
"dotenv-webpack": "1.7.0",
|
|
60
|
-
"sass": "1.44.0",
|
|
61
|
-
"sass-loader": "10.1.1",
|
|
62
|
-
"thread-loader": "^3.0.4",
|
|
63
|
-
"tslib": "2.3.1",
|
|
64
|
-
"typescript": "4.5.2"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
File without changes
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import 'ant-design-vue/dist/antd.min.css';
|
|
2
|
-
import 'element-plus/dist/index.css';
|
|
3
|
-
|
|
4
|
-
import '@oinone/kunlun-vue-ui-antd/dist/oinone-kunlun-vue-ui-antd.css';
|
|
5
|
-
import '@oinone/kunlun-vue-ui-el/dist/oinone-kunlun-vue-ui-el.css';
|
|
6
|
-
|
|
7
|
-
import '@oinone/kunlun-designer-common/dist/oinone-kunlun-designer-common.css';
|
|
8
|
-
import '@oinone/kunlun-model-designer/dist/oinone-kunlun-model-designer.css';
|
|
9
|
-
import '@oinone/kunlun-workflow-designer/dist/oinone-kunlun-workflow-designer.css';
|
|
10
|
-
import '@oinone/kunlun-workflow/dist/oinone-kunlun-workflow.css';
|
|
11
|
-
import '@oinone/kunlun-data-designer/dist/oinone-kunlun-data-designer.css';
|
|
12
|
-
import '@oinone/kunlun-microflow-designer/dist/oinone-kunlun-microflow-designer.css';
|
|
13
|
-
|
|
14
|
-
import '@oinone/kunlun-vue-ui-mobile-vant/dist/oinone-kunlun-vue-ui-mobile-vant.css';
|
|
15
|
-
import '@oinone/kunlun-vue-admin-base/dist/oinone-kunlun-vue-admin-base.css';
|
|
16
|
-
import '@oinone/kunlun-vue-admin-layout/dist/oinone-kunlun-vue-admin-layout.css';
|
|
17
|
-
|
|
18
|
-
import 'reflect-metadata';
|
|
19
|
-
import ElementPlus from 'element-plus';
|
|
20
|
-
import {App} from 'vue';
|
|
21
|
-
import {RuntimeContextManager, VueOioProvider} from '@oinone/kunlun-dependencies';
|
|
22
|
-
import 'vant/lib/index.css';
|
|
23
|
-
// 设计器
|
|
24
|
-
import '@oinone/kunlun-ui-designer-dependencies';
|
|
25
|
-
import '@oinone/kunlun-print-designer-dependencies';
|
|
26
|
-
import '@oinone/kunlun-workflow';
|
|
27
|
-
import '@oinone/kunlun-workflow-designer';
|
|
28
|
-
import '@oinone/kunlun-model-designer';
|
|
29
|
-
import '@oinone/kunlun-data-designer';
|
|
30
|
-
import '@oinone/kunlun-data-designer-open-pc';
|
|
31
|
-
import '@oinone/kunlun-eip-dependencies';
|
|
32
|
-
import '@oinone/kunlun-ai-dependencies';
|
|
33
|
-
import '@oinone/kunlun-microflow-designer';
|
|
34
|
-
import '@oinone/kunlun-designer-common-ee';
|
|
35
|
-
// 标准能力
|
|
36
|
-
import '@ss/oinone';
|
|
37
|
-
import '@ss/admin-widget';
|
|
38
|
-
// 个性化项目
|
|
39
|
-
import '@ss/project';
|
|
40
|
-
|
|
41
|
-
VueOioProvider(
|
|
42
|
-
{
|
|
43
|
-
browser: {
|
|
44
|
-
title: 'Oinone',
|
|
45
|
-
favicon: 'https://pamirs.oss-cn-hangzhou.aliyuncs.com/pamirs/image/default_favicon.ico'
|
|
46
|
-
},
|
|
47
|
-
dependencies: {
|
|
48
|
-
vue: import('vue'),
|
|
49
|
-
lodashEs: import('lodash-es'),
|
|
50
|
-
antDesignVue: import('ant-design-vue'),
|
|
51
|
-
antDesignIconsVue: import('@ant-design/icons-vue'),
|
|
52
|
-
elementPlusIconsVue: import('@element-plus/icons-vue'),
|
|
53
|
-
elementPlus: import('element-plus'),
|
|
54
|
-
kunlunDependencies: import('@oinone/kunlun-dependencies'),
|
|
55
|
-
kunlunVueUiAntd: import('@oinone/kunlun-vue-ui-antd'),
|
|
56
|
-
kunlunVueUiEl: import('@oinone/kunlun-vue-ui-el'),
|
|
57
|
-
kunlunDataDesignerCore: import('@oinone/kunlun-data-designer-core'),
|
|
58
|
-
antvDataSet: import('@antv/data-set'),
|
|
59
|
-
antvG2: import('@antv/g2'),
|
|
60
|
-
echarts: import('echarts')
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
[
|
|
64
|
-
() => {
|
|
65
|
-
const app = RuntimeContextManager.createOrReplace().frameworkInstance as App;
|
|
66
|
-
app.use(ElementPlus);
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
);
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"strict": true,
|
|
4
|
-
"target": "ES6",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"jsx": "preserve",
|
|
7
|
-
"importHelpers": true,
|
|
8
|
-
"moduleResolution": "node",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"experimentalDecorators": true,
|
|
14
|
-
"sourceMap": true,
|
|
15
|
-
"checkJs": false,
|
|
16
|
-
"noImplicitAny": false,
|
|
17
|
-
"baseUrl": ".",
|
|
18
|
-
"types": [
|
|
19
|
-
"webpack-env"
|
|
20
|
-
],
|
|
21
|
-
"paths": {
|
|
22
|
-
"@/*": [
|
|
23
|
-
"src/*"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"lib": [
|
|
27
|
-
"ES2018",
|
|
28
|
-
"esnext",
|
|
29
|
-
"dom",
|
|
30
|
-
"dom.iterable",
|
|
31
|
-
"scripthost"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
"include": [
|
|
35
|
-
"src/**/*.ts",
|
|
36
|
-
"src/**/*.tsx",
|
|
37
|
-
"src/**/*.vue"
|
|
38
|
-
],
|
|
39
|
-
"exclude": [
|
|
40
|
-
"node_modules",
|
|
41
|
-
"dist",
|
|
42
|
-
"!node_modules/@oinone/kunlun-shared/src" // 对此路径不排除(关键!)
|
|
43
|
-
]
|
|
44
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
const Dotenv = require('dotenv-webpack');
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
productionSourceMap: false,
|
|
5
|
-
publicPath: '/',
|
|
6
|
-
lintOnSave: false,
|
|
7
|
-
configureWebpack: {
|
|
8
|
-
resolve: {
|
|
9
|
-
fallback: {
|
|
10
|
-
crypto: false
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
plugins: [new Dotenv()]
|
|
14
|
-
},
|
|
15
|
-
chainWebpack: (config) => {
|
|
16
|
-
config.plugins.delete('fork-ts-checker');
|
|
17
|
-
config.cache({
|
|
18
|
-
type: 'filesystem' // 启用文件缓存
|
|
19
|
-
});
|
|
20
|
-
config.plugin('html').tap((args) => {
|
|
21
|
-
args[0].chunksSortMode = (a, b) => {
|
|
22
|
-
if (a.entry !== b.entry) {
|
|
23
|
-
// make sure entry is loaded last so user CSS can override
|
|
24
|
-
// vendor CSS
|
|
25
|
-
return b.entry ? -1 : 1;
|
|
26
|
-
} else {
|
|
27
|
-
return 0;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
return args;
|
|
31
|
-
});
|
|
32
|
-
config.optimization.splitChunks({
|
|
33
|
-
...config.optimization.get('splitChunks'),
|
|
34
|
-
cacheGroups: {
|
|
35
|
-
libs: {
|
|
36
|
-
name: 'chunk-a',
|
|
37
|
-
test: /[\\/]node_modules[\\/]/,
|
|
38
|
-
priority: 1,
|
|
39
|
-
chunks: 'initial',
|
|
40
|
-
maxSize: 6000000,
|
|
41
|
-
minSize: 3000000,
|
|
42
|
-
maxInitialRequests: 5
|
|
43
|
-
},
|
|
44
|
-
kunlun: {
|
|
45
|
-
name: 'chunk-b',
|
|
46
|
-
test: /[\\/]node_modules[\\/]@oinone[\\/]/,
|
|
47
|
-
priority: 2,
|
|
48
|
-
chunks: 'initial',
|
|
49
|
-
maxSize: 6000000,
|
|
50
|
-
minSize: 3000000,
|
|
51
|
-
maxInitialRequests: 5
|
|
52
|
-
},
|
|
53
|
-
common: {
|
|
54
|
-
name: 'chunk-c',
|
|
55
|
-
minChunks: 2,
|
|
56
|
-
priority: 3,
|
|
57
|
-
chunks: 'initial',
|
|
58
|
-
reuseExistingChunk: true
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
devServer: {
|
|
64
|
-
port: 8080,
|
|
65
|
-
// disableHostCheck: true,
|
|
66
|
-
// progress: false,
|
|
67
|
-
hot: true,
|
|
68
|
-
compress: true, // 启用 gzip 压缩
|
|
69
|
-
client: {
|
|
70
|
-
overlay: false,
|
|
71
|
-
progress: true
|
|
72
|
-
},
|
|
73
|
-
proxy: {
|
|
74
|
-
'/pamirs': {
|
|
75
|
-
// 支持跨域
|
|
76
|
-
changeOrigin: true,
|
|
77
|
-
// 请求后端地址
|
|
78
|
-
target: 'http://127.0.0.1:8091'
|
|
79
|
-
// Oinone 提供的演示环境地址
|
|
80
|
-
// target: 'https://demo.oinone.top'
|
|
81
|
-
},
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ss/oinone",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"main": "index.ts",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"clean": "rimraf dist package-lock.json node_modules",
|
|
7
|
-
"prebuild": "rimraf dist",
|
|
8
|
-
"build": "rollup -c && npm run build-css",
|
|
9
|
-
"build-css": "[ -f './dist/kunlun-module-demo.scss' ] && sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css || exit 0",
|
|
10
|
-
"build-win": "rollup -c && npm run build-css-win",
|
|
11
|
-
"build-css-win": "IF EXIST ./dist/kunlun-module-demo.scss (sass ./dist/kunlun-module-demo.scss ./dist/kunlun-module-demo.css) ELSE (exit 0)",
|
|
12
|
-
"prepublishOnly": "node ./scripts/prepublish-only.js",
|
|
13
|
-
"postpublish": "node ./scripts/postpublish.js"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"lucide": "1.7.0"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@ant-design/icons-vue": "7.0.1",
|
|
20
|
-
"@element-plus/icons-vue": "2.0.9",
|
|
21
|
-
"@oinone/kunlun-dependencies": "~6.4.0",
|
|
22
|
-
"@oinone/kunlun-vue-ui-antd": "~6.4.0",
|
|
23
|
-
"@oinone/kunlun-vue-ui-el": "~6.4.0",
|
|
24
|
-
"@types/lodash-es": "4.17.6",
|
|
25
|
-
"ant-design-vue": "3.2.14",
|
|
26
|
-
"element-plus": "2.2.17",
|
|
27
|
-
"vue": "3.2.40"
|
|
28
|
-
}
|
|
29
|
-
}
|