@oinone/cli 7.2.4 → 7.2.6
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 -472
- 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 +60 -0
- 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 +6 -3
- 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}/packages/ss-boot/vue.config.js +1 -1
- 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/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/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/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/package.json +0 -30
- package/template-7.2.0-enterprise/packages/ss-oinone/rollup.config.js +0 -14
- 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/rollup.config.js +0 -14
- 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/favicon.ico +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/main.ts +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-7.2.0-community → template-7.2.0}/npmrc +0 -0
- /package/{template-6.4.0-enterprise → template-7.2.0}/packages/ss-admin-widget/index.ts +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/package.json +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-admin-widget/rollup.config.js +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/favicon.ico +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-7.2.0-community → template-7.2.0}/packages/ss-boot/src/main.ts +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-7.2.0-community → template-7.2.0}/packages/ss-oinone/package.json +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-oinone/rollup.config.js +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-7.2.0-community → template-7.2.0}/packages/ss-project/package.json +0 -0
- /package/{template-7.2.0-community → template-7.2.0}/packages/ss-project/rollup.config.js +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,27 +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
|
-
"resolveJsonModule": true,
|
|
15
|
-
"sourceMap": true,
|
|
16
|
-
"checkJs": false,
|
|
17
|
-
"noImplicitAny": false,
|
|
18
|
-
"baseUrl": ".",
|
|
19
|
-
"types": ["webpack-env"],
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["src/*"]
|
|
22
|
-
},
|
|
23
|
-
"lib": ["ES2018", "esnext", "dom", "dom.iterable", "scripthost"]
|
|
24
|
-
},
|
|
25
|
-
"include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
|
|
26
|
-
"exclude": ["node_modules", "dist"]
|
|
27
|
-
}
|
|
@@ -1,87 +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
|
-
diagnostics_channel: false
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
plugins: [
|
|
15
|
-
new Dotenv(),
|
|
16
|
-
new (require('webpack').NormalModuleReplacementPlugin)(/^node:/, (resource) => {
|
|
17
|
-
resource.request = resource.request.replace(/^node:/, '');
|
|
18
|
-
})
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
chainWebpack: (config) => {
|
|
22
|
-
config.plugin('fork-ts-checker').tap((args) => {
|
|
23
|
-
args[0].typescript.memoryLimit = 8192;
|
|
24
|
-
return args;
|
|
25
|
-
});
|
|
26
|
-
config.plugin('html').tap((args) => {
|
|
27
|
-
args[0].chunksSortMode = (a, b) => {
|
|
28
|
-
if (a.entry !== b.entry) {
|
|
29
|
-
// make sure entry is loaded last so user CSS can override
|
|
30
|
-
// vendor CSS
|
|
31
|
-
return b.entry ? -1 : 1;
|
|
32
|
-
} else {
|
|
33
|
-
return 0;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
return args;
|
|
37
|
-
});
|
|
38
|
-
config.optimization.splitChunks({
|
|
39
|
-
...config.optimization.get('splitChunks'),
|
|
40
|
-
cacheGroups: {
|
|
41
|
-
libs: {
|
|
42
|
-
name: 'chunk-a',
|
|
43
|
-
test: /[\\/]node_modules[\\/]/,
|
|
44
|
-
priority: 1,
|
|
45
|
-
chunks: 'initial',
|
|
46
|
-
maxSize: 6000000,
|
|
47
|
-
minSize: 3000000,
|
|
48
|
-
maxInitialRequests: 5
|
|
49
|
-
},
|
|
50
|
-
kunlun: {
|
|
51
|
-
name: 'chunk-b',
|
|
52
|
-
test: /[\\/]node_modules[\\/]@oinone[\\/]/,
|
|
53
|
-
priority: 2,
|
|
54
|
-
chunks: 'initial',
|
|
55
|
-
maxSize: 6000000,
|
|
56
|
-
minSize: 3000000,
|
|
57
|
-
maxInitialRequests: 5
|
|
58
|
-
},
|
|
59
|
-
common: {
|
|
60
|
-
name: 'chunk-c',
|
|
61
|
-
minChunks: 2,
|
|
62
|
-
priority: 3,
|
|
63
|
-
chunks: 'initial',
|
|
64
|
-
reuseExistingChunk: true
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
devServer: {
|
|
70
|
-
port: 8080,
|
|
71
|
-
allowedHosts: 'all',
|
|
72
|
-
compress: false,
|
|
73
|
-
client: {
|
|
74
|
-
overlay: false
|
|
75
|
-
},
|
|
76
|
-
proxy: {
|
|
77
|
-
'/pamirs': {
|
|
78
|
-
// 支持跨域
|
|
79
|
-
changeOrigin: true,
|
|
80
|
-
// 请求后端地址
|
|
81
|
-
target: 'http://127.0.0.1:8091'
|
|
82
|
-
// Oinone 提供的演示环境地址
|
|
83
|
-
// target: 'https://demo.oinone.top'
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,30 +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-compile": "~7.2.0",
|
|
22
|
-
"@oinone/kunlun-dependencies": "~7.2.0",
|
|
23
|
-
"@oinone/kunlun-vue-ui-antd": "~7.2.0",
|
|
24
|
-
"@oinone/kunlun-vue-ui-el": "~7.2.0",
|
|
25
|
-
"@types/lodash-es": "4.17.6",
|
|
26
|
-
"ant-design-vue": "4.2.6",
|
|
27
|
-
"element-plus": "2.13.0",
|
|
28
|
-
"vue": "3.5.26"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import pkg from './package.json' with { type: 'json' };
|
|
2
|
-
import CompileConfigBuilder from '@oinone/kunlun-compile';
|
|
3
|
-
|
|
4
|
-
export default CompileConfigBuilder.config()
|
|
5
|
-
.setLibraryName('ss-oinone')
|
|
6
|
-
.externalPkg(pkg)
|
|
7
|
-
.singleModule()
|
|
8
|
-
.replace()
|
|
9
|
-
.nodeResolve()
|
|
10
|
-
.commonjs()
|
|
11
|
-
.typescript2()
|
|
12
|
-
.json()
|
|
13
|
-
.terser()
|
|
14
|
-
.build();
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable import/no-dynamic-require */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
-
const packageJSON = require(url);
|
|
7
|
-
|
|
8
|
-
packageJSON.main = 'index.ts';
|
|
9
|
-
delete packageJSON.module;
|
|
10
|
-
delete packageJSON.typings;
|
|
11
|
-
delete packageJSON.files;
|
|
12
|
-
|
|
13
|
-
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* eslint-disable import/no-dynamic-require */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
-
const packageJSON = require(url);
|
|
7
|
-
|
|
8
|
-
const libName = packageJSON.name.replace('@', '').replace('/', '-');
|
|
9
|
-
|
|
10
|
-
packageJSON.main = `dist/${libName}.esm.js`;
|
|
11
|
-
packageJSON.module = `dist/${libName}.esm.js`;
|
|
12
|
-
const typings = 'dist/types/index.d.ts';
|
|
13
|
-
packageJSON.typings = typings;
|
|
14
|
-
|
|
15
|
-
const typingsUrl = path.resolve(process.cwd(), typings);
|
|
16
|
-
const dir = fs.existsSync(typingsUrl);
|
|
17
|
-
|
|
18
|
-
if (!dir) {
|
|
19
|
-
packageJSON.typings = 'dist/index.d.ts';
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
packageJSON.files = ['dist'];
|
|
23
|
-
|
|
24
|
-
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ss/project",
|
|
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
|
-
"@element-plus/icons-vue": "2.0.9",
|
|
20
|
-
"@oinone/kunlun-compile": "~7.2.0",
|
|
21
|
-
"@oinone/kunlun-dependencies": "~7.2.0",
|
|
22
|
-
"@oinone/kunlun-vue-ui-antd": "~7.2.0",
|
|
23
|
-
"@oinone/kunlun-vue-ui-el": "~7.2.0",
|
|
24
|
-
"@ss/oinone": "workspace:*",
|
|
25
|
-
"@types/lodash-es": "4.17.6",
|
|
26
|
-
"ant-design-vue": "4.2.6",
|
|
27
|
-
"element-plus": "2.13.0",
|
|
28
|
-
"vue": "3.5.26"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import pkg from './package.json' with { type: 'json' };
|
|
2
|
-
import CompileConfigBuilder from '@oinone/kunlun-compile';
|
|
3
|
-
|
|
4
|
-
export default CompileConfigBuilder.config()
|
|
5
|
-
.setLibraryName('ss-project')
|
|
6
|
-
.externalPkg(pkg)
|
|
7
|
-
.singleModule()
|
|
8
|
-
.replace()
|
|
9
|
-
.nodeResolve()
|
|
10
|
-
.commonjs()
|
|
11
|
-
.typescript2()
|
|
12
|
-
.json()
|
|
13
|
-
.terser()
|
|
14
|
-
.build();
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable import/no-dynamic-require */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
-
const packageJSON = require(url);
|
|
7
|
-
|
|
8
|
-
packageJSON.main = 'index.ts';
|
|
9
|
-
delete packageJSON.module;
|
|
10
|
-
delete packageJSON.typings;
|
|
11
|
-
delete packageJSON.files;
|
|
12
|
-
|
|
13
|
-
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* eslint-disable import/no-dynamic-require */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const path = require('path');
|
|
5
|
-
const url = path.resolve(process.cwd(), 'package.json');
|
|
6
|
-
const packageJSON = require(url);
|
|
7
|
-
|
|
8
|
-
const libName = packageJSON.name.replace('@', '').replace('/', '-');
|
|
9
|
-
|
|
10
|
-
packageJSON.main = `dist/${libName}.esm.js`;
|
|
11
|
-
packageJSON.module = `dist/${libName}.esm.js`;
|
|
12
|
-
const typings = 'dist/types/index.d.ts';
|
|
13
|
-
packageJSON.typings = typings;
|
|
14
|
-
|
|
15
|
-
const typingsUrl = path.resolve(process.cwd(), typings);
|
|
16
|
-
const dir = fs.existsSync(typingsUrl);
|
|
17
|
-
|
|
18
|
-
if (!dir) {
|
|
19
|
-
packageJSON.typings = 'dist/index.d.ts';
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
packageJSON.files = ['dist'];
|
|
23
|
-
|
|
24
|
-
fs.writeFileSync('package.json', JSON.stringify(packageJSON, null, 2));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
const fs = require('fs').promises;
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const packageNames = ['@oinone/kunlun-vue-admin-base'];
|
|
4
|
-
|
|
5
|
-
const content = `{
|
|
6
|
-
"compilerOptions": {
|
|
7
|
-
"experimentalDecorators": true,
|
|
8
|
-
"emitDecoratorMetadata": true,
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"target": "ES6",
|
|
11
|
-
"module": "esnext",
|
|
12
|
-
"strict": true,
|
|
13
|
-
"importHelpers": true,
|
|
14
|
-
"moduleResolution": "node",
|
|
15
|
-
"esModuleInterop": true,
|
|
16
|
-
"allowSyntheticDefaultImports": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"declaration": true,
|
|
20
|
-
"baseUrl": ".",
|
|
21
|
-
"lib": [
|
|
22
|
-
"ES2018",
|
|
23
|
-
"esnext",
|
|
24
|
-
"dom",
|
|
25
|
-
"dom.iterable",
|
|
26
|
-
"scripthost"
|
|
27
|
-
],
|
|
28
|
-
"types": [
|
|
29
|
-
"node",
|
|
30
|
-
"reflect-metadata",
|
|
31
|
-
"jest"
|
|
32
|
-
],
|
|
33
|
-
"typeRoots": [
|
|
34
|
-
"node_modules/@types"
|
|
35
|
-
],
|
|
36
|
-
"declarationDir": "dist/types",
|
|
37
|
-
"outDir": "dist",
|
|
38
|
-
"noImplicitAny": false,
|
|
39
|
-
"incremental": true,
|
|
40
|
-
"resolveJsonModule": true
|
|
41
|
-
},
|
|
42
|
-
"include": [
|
|
43
|
-
"packages"
|
|
44
|
-
],
|
|
45
|
-
"exclude": [
|
|
46
|
-
"node_modules",
|
|
47
|
-
"dist"
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
|
|
52
|
-
async function insetTSConfig() {
|
|
53
|
-
const oinoneCwd = path.resolve(process.cwd(), '../../node_modules');
|
|
54
|
-
|
|
55
|
-
for (const packageName of packageNames) {
|
|
56
|
-
const dependenciesPath = path.resolve(oinoneCwd, packageName);
|
|
57
|
-
try {
|
|
58
|
-
await fs.access(dependenciesPath);
|
|
59
|
-
} catch (err) {
|
|
60
|
-
console.error(`动态插入tsconfig失败: ${dependenciesPath}`, err);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
await fs.writeFile(path.resolve(dependenciesPath, 'tsconfig.json'), content);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
module.exports = { insetTSConfig };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const packageNames = [
|
|
2
|
-
'@oinone/kunlun-cache',
|
|
3
|
-
'@oinone/kunlun-dsl',
|
|
4
|
-
'@oinone/kunlun-environment',
|
|
5
|
-
'@oinone/kunlun-event',
|
|
6
|
-
'@oinone/kunlun-expression',
|
|
7
|
-
'@oinone/kunlun-meta',
|
|
8
|
-
'@oinone/kunlun-shared',
|
|
9
|
-
'@oinone/kunlun-request',
|
|
10
|
-
'@oinone/kunlun-router',
|
|
11
|
-
'@oinone/kunlun-service',
|
|
12
|
-
'@oinone/kunlun-spi',
|
|
13
|
-
'@oinone/kunlun-state',
|
|
14
|
-
'@oinone/kunlun-theme',
|
|
15
|
-
'@oinone/kunlun-engine',
|
|
16
|
-
'@oinone/kunlun-vue-router',
|
|
17
|
-
'@oinone/kunlun-vue-ui',
|
|
18
|
-
'@oinone/kunlun-vue-ui-antd',
|
|
19
|
-
'@oinone/kunlun-vue-ui-common',
|
|
20
|
-
'@oinone/kunlun-vue-admin-base',
|
|
21
|
-
'@oinone/kunlun-vue-ui-el',
|
|
22
|
-
'@oinone/kunlun-vue-widget'
|
|
23
|
-
];
|
|
24
|
-
|
|
25
|
-
module.exports = { packageNames };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { rimraf } from 'rimraf';
|
|
2
|
-
import { globSync } from 'glob';
|
|
3
|
-
|
|
4
|
-
// 匹配所有 node_modules 文件夹
|
|
5
|
-
const files = globSync('packages/**/node_modules')
|
|
6
|
-
|
|
7
|
-
// 删除所有匹配的 node_modules
|
|
8
|
-
files.forEach((file) => {
|
|
9
|
-
rimraf(file).then((deleted) => {
|
|
10
|
-
if (!deleted) console.error(`Error deleting ${file}:`, err);
|
|
11
|
-
else console.log(`Deleted ${file}`);
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
// 删除其他文件
|
|
16
|
-
const filesToDelete = ['package-lock.json', 'pnpm-lock.yaml', 'node_modules'];
|
|
17
|
-
filesToDelete.forEach(file => {
|
|
18
|
-
rimraf(file).then((deleted) => {
|
|
19
|
-
if (!deleted) console.error(`Error deleting ${file}:`, err);
|
|
20
|
-
else console.log(`Deleted ${file}`);
|
|
21
|
-
});
|
|
22
|
-
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/rollup.config.js
RENAMED
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/scripts/postpublish.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-admin-widget/src/shim-vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-boot/src/shim-translate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/scripts/postpublish.js
RENAMED
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/scripts/prepublish-only.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-oinone/src/shim-translate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/scripts/postpublish.js
RENAMED
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/scripts/prepublish-only.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/{template-6.4.0-community → template-6.4.0}/packages/ss-project/src/shim-translate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|