@oinone/cli 7.2.1
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 +115 -0
- package/README_zh-CN.md +115 -0
- package/bin/cli.js +429 -0
- package/package.json +25 -0
- package/template-6.4.0-community/.eslintignore +5 -0
- package/template-6.4.0-community/.eslintrc.json +72 -0
- package/template-6.4.0-community/.prettierrc.json +8 -0
- package/template-6.4.0-community/README.md +59 -0
- package/template-6.4.0-community/_package.json +47 -0
- package/template-6.4.0-community/gitignore +58 -0
- package/template-6.4.0-community/lerna.json +12 -0
- package/template-6.4.0-community/npmrc +3 -0
- package/template-6.4.0-community/packages/ss-admin-widget/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-admin-widget/package.json +25 -0
- package/template-6.4.0-community/packages/ss-admin-widget/rollup.config.js +73 -0
- package/template-6.4.0-community/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-6.4.0-community/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-community/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-admin-widget/tsconfig.json +45 -0
- package/template-6.4.0-community/packages/ss-boot/.env +1 -0
- package/template-6.4.0-community/packages/ss-boot/.env.example +6 -0
- package/template-6.4.0-community/packages/ss-boot/package.json +53 -0
- package/template-6.4.0-community/packages/ss-boot/public/favicon.ico +0 -0
- package/template-6.4.0-community/packages/ss-boot/public/index.html +83 -0
- package/template-6.4.0-community/packages/ss-boot/public/manifest.js +5 -0
- package/template-6.4.0-community/packages/ss-boot/src/main.ts +50 -0
- package/template-6.4.0-community/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-boot/tsconfig.json +44 -0
- package/template-6.4.0-community/packages/ss-boot/vue.config.js +84 -0
- package/template-6.4.0-community/packages/ss-oinone/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-oinone/package.json +29 -0
- package/template-6.4.0-community/packages/ss-oinone/rollup.config.js +82 -0
- package/template-6.4.0-community/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-6.4.0-community/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-community/packages/ss-oinone/src/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-oinone/tsconfig.json +42 -0
- package/template-6.4.0-community/packages/ss-project/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-project/package.json +30 -0
- package/template-6.4.0-community/packages/ss-project/rollup.config.js +83 -0
- package/template-6.4.0-community/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-6.4.0-community/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-community/packages/ss-project/src/index.ts +1 -0
- package/template-6.4.0-community/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-community/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-community/packages/ss-project/tsconfig.json +42 -0
- package/template-6.4.0-community/pnpm-workspace.yaml +3 -0
- package/template-6.4.0-community/scripts/build/inset-tsconfig.js +68 -0
- package/template-6.4.0-community/scripts/build/package-name.js +25 -0
- package/template-6.4.0-community/scripts/build/postbuild.js +42 -0
- package/template-6.4.0-community/scripts/build/prebuild-only.js +48 -0
- package/template-6.4.0-community/scripts/clean.mjs +22 -0
- package/template-6.4.0-enterprise/.eslintignore +5 -0
- package/template-6.4.0-enterprise/.eslintrc.json +72 -0
- package/template-6.4.0-enterprise/.prettierrc.json +8 -0
- package/template-6.4.0-enterprise/README.md +59 -0
- package/template-6.4.0-enterprise/_package.json +47 -0
- package/template-6.4.0-enterprise/gitignore +58 -0
- package/template-6.4.0-enterprise/lerna.json +12 -0
- package/template-6.4.0-enterprise/npmrc +3 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/package.json +25 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/rollup.config.js +73 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-admin-widget/tsconfig.json +45 -0
- package/template-6.4.0-enterprise/packages/ss-boot/.env +1 -0
- package/template-6.4.0-enterprise/packages/ss-boot/.env.example +6 -0
- package/template-6.4.0-enterprise/packages/ss-boot/package.json +66 -0
- package/template-6.4.0-enterprise/packages/ss-boot/public/favicon.ico +0 -0
- package/template-6.4.0-enterprise/packages/ss-boot/public/index.html +83 -0
- package/template-6.4.0-enterprise/packages/ss-boot/public/manifest.js +5 -0
- package/template-6.4.0-enterprise/packages/ss-boot/src/main.ts +69 -0
- package/template-6.4.0-enterprise/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-boot/tsconfig.json +44 -0
- package/template-6.4.0-enterprise/packages/ss-boot/vue.config.js +84 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/package.json +29 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/rollup.config.js +82 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/src/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-oinone/tsconfig.json +42 -0
- package/template-6.4.0-enterprise/packages/ss-project/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-project/package.json +30 -0
- package/template-6.4.0-enterprise/packages/ss-project/rollup.config.js +83 -0
- package/template-6.4.0-enterprise/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-6.4.0-enterprise/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-6.4.0-enterprise/packages/ss-project/src/index.ts +1 -0
- package/template-6.4.0-enterprise/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-6.4.0-enterprise/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-6.4.0-enterprise/packages/ss-project/tsconfig.json +42 -0
- package/template-6.4.0-enterprise/pnpm-workspace.yaml +3 -0
- package/template-6.4.0-enterprise/scripts/build/inset-tsconfig.js +68 -0
- package/template-6.4.0-enterprise/scripts/build/package-name.js +25 -0
- package/template-6.4.0-enterprise/scripts/build/postbuild.js +42 -0
- package/template-6.4.0-enterprise/scripts/build/prebuild-only.js +48 -0
- package/template-6.4.0-enterprise/scripts/clean.mjs +22 -0
- package/template-7.2.0-community/.prettierrc.json +8 -0
- package/template-7.2.0-community/README.md +59 -0
- package/template-7.2.0-community/_package.json +57 -0
- package/template-7.2.0-community/eslint.config.ts +23 -0
- package/template-7.2.0-community/gitignore +58 -0
- package/template-7.2.0-community/lerna.json +12 -0
- package/template-7.2.0-community/npmrc +3 -0
- package/template-7.2.0-community/packages/ss-admin-widget/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-admin-widget/package.json +27 -0
- package/template-7.2.0-community/packages/ss-admin-widget/rollup.config.js +12 -0
- package/template-7.2.0-community/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-7.2.0-community/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-community/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-admin-widget/tsconfig.json +14 -0
- package/template-7.2.0-community/packages/ss-boot/.env +1 -0
- package/template-7.2.0-community/packages/ss-boot/.env.example +6 -0
- package/template-7.2.0-community/packages/ss-boot/package.json +51 -0
- 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 +83 -0
- package/template-7.2.0-community/packages/ss-boot/public/manifest.js +5 -0
- package/template-7.2.0-community/packages/ss-boot/src/main.ts +46 -0
- package/template-7.2.0-community/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-boot/tsconfig.json +27 -0
- package/template-7.2.0-community/packages/ss-boot/vue.config.js +87 -0
- package/template-7.2.0-community/packages/ss-oinone/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-oinone/package.json +30 -0
- package/template-7.2.0-community/packages/ss-oinone/rollup.config.js +12 -0
- package/template-7.2.0-community/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-7.2.0-community/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-community/packages/ss-oinone/src/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-oinone/tsconfig.json +14 -0
- package/template-7.2.0-community/packages/ss-project/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-project/package.json +30 -0
- package/template-7.2.0-community/packages/ss-project/rollup.config.js +12 -0
- package/template-7.2.0-community/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-7.2.0-community/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-community/packages/ss-project/src/index.ts +1 -0
- package/template-7.2.0-community/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-community/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-community/packages/ss-project/tsconfig.json +14 -0
- package/template-7.2.0-community/pnpm-workspace.yaml +3 -0
- package/template-7.2.0-community/scripts/build/inset-tsconfig.js +68 -0
- package/template-7.2.0-community/scripts/build/package-name.js +25 -0
- package/template-7.2.0-community/scripts/clean.mjs +22 -0
- package/template-7.2.0-enterprise/.prettierrc.json +8 -0
- package/template-7.2.0-enterprise/README.md +59 -0
- package/template-7.2.0-enterprise/_package.json +57 -0
- package/template-7.2.0-enterprise/eslint.config.ts +23 -0
- package/template-7.2.0-enterprise/gitignore +58 -0
- package/template-7.2.0-enterprise/lerna.json +12 -0
- package/template-7.2.0-enterprise/npmrc +3 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/package.json +27 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/rollup.config.js +12 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/postpublish.js +13 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-admin-widget/tsconfig.json +14 -0
- package/template-7.2.0-enterprise/packages/ss-boot/.env +1 -0
- package/template-7.2.0-enterprise/packages/ss-boot/.env.example +6 -0
- package/template-7.2.0-enterprise/packages/ss-boot/package.json +64 -0
- 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 +83 -0
- package/template-7.2.0-enterprise/packages/ss-boot/public/manifest.js +5 -0
- package/template-7.2.0-enterprise/packages/ss-boot/src/main.ts +66 -0
- package/template-7.2.0-enterprise/packages/ss-boot/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-boot/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-boot/tsconfig.json +27 -0
- package/template-7.2.0-enterprise/packages/ss-boot/vue.config.js +87 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/package.json +30 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/rollup.config.js +12 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/scripts/postpublish.js +13 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/src/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-oinone/tsconfig.json +14 -0
- package/template-7.2.0-enterprise/packages/ss-project/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-project/package.json +30 -0
- package/template-7.2.0-enterprise/packages/ss-project/rollup.config.js +12 -0
- package/template-7.2.0-enterprise/packages/ss-project/scripts/postpublish.js +13 -0
- package/template-7.2.0-enterprise/packages/ss-project/scripts/prepublish-only.js +24 -0
- package/template-7.2.0-enterprise/packages/ss-project/src/index.ts +1 -0
- package/template-7.2.0-enterprise/packages/ss-project/src/shim-translate.d.ts +10 -0
- package/template-7.2.0-enterprise/packages/ss-project/src/shim-vue.d.ts +6 -0
- package/template-7.2.0-enterprise/packages/ss-project/tsconfig.json +14 -0
- package/template-7.2.0-enterprise/pnpm-workspace.yaml +3 -0
- package/template-7.2.0-enterprise/scripts/build/inset-tsconfig.js +68 -0
- package/template-7.2.0-enterprise/scripts/build/package-name.js +25 -0
- package/template-7.2.0-enterprise/scripts/clean.mjs +22 -0
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
## 快速上手
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
# 初始化安装依赖
|
|
6
|
+
pnpm install
|
|
7
|
+
|
|
8
|
+
# 清理所有依赖
|
|
9
|
+
pnpm run clean
|
|
10
|
+
pnpm run clean:win
|
|
11
|
+
|
|
12
|
+
# 开发模式启动
|
|
13
|
+
pnpm run dev
|
|
14
|
+
|
|
15
|
+
# 构建生产sdk包
|
|
16
|
+
|
|
17
|
+
# mac 环境
|
|
18
|
+
pnpm run build
|
|
19
|
+
|
|
20
|
+
# windows环境
|
|
21
|
+
pnpm run build-win
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 工程分层说明
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
# ss-boot
|
|
29
|
+
不做业务研发,只做包的组装和依赖
|
|
30
|
+
|
|
31
|
+
# ss-oinone
|
|
32
|
+
与Oinone结合层,这个工程结构可以把数式Oinone的改造收口,也是业务工程依赖的核心层
|
|
33
|
+
|
|
34
|
+
# ss-admin-widget
|
|
35
|
+
与界面设计器无代码的结合工程,在这个工程结构里可以把组件放在无代码平台上使用
|
|
36
|
+
|
|
37
|
+
# ss-project
|
|
38
|
+
模拟的项目工程,做某个项目的个性化开发
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 修改开发模式后端 api 地址
|
|
42
|
+
|
|
43
|
+
修改文件 `packages/ss-boot/vue.config.js` 的 `devServer.proxy.pamirs.target` 指向需要的后端地址。
|
|
44
|
+
|
|
45
|
+
## 前端环境
|
|
46
|
+
|
|
47
|
+
**.npmrc**
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
registry=https://registry.npmmirror.com/
|
|
51
|
+
@oinone:registry=http://nexus.shushi.pro/repository/kunlun/
|
|
52
|
+
legacy-peer-deps=true
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 登录npm源
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm login --registry "http://nexus.shushi.pro/repository/kunlun/"
|
|
59
|
+
```
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
.pnp
|
|
4
|
+
.pnp.js
|
|
5
|
+
|
|
6
|
+
# Build Output
|
|
7
|
+
dist/
|
|
8
|
+
dist-ssr/
|
|
9
|
+
build/
|
|
10
|
+
out/
|
|
11
|
+
coverage/
|
|
12
|
+
|
|
13
|
+
# Vue / React / Framework specific
|
|
14
|
+
.nuxt/
|
|
15
|
+
.next/
|
|
16
|
+
.output/
|
|
17
|
+
.vuepress/dist/
|
|
18
|
+
.docusaurus/
|
|
19
|
+
|
|
20
|
+
# Environment Variables
|
|
21
|
+
.env
|
|
22
|
+
.env.local
|
|
23
|
+
.env.development.local
|
|
24
|
+
.env.test.local
|
|
25
|
+
.env.production.local
|
|
26
|
+
|
|
27
|
+
# Logs
|
|
28
|
+
npm-debug.log*
|
|
29
|
+
yarn-debug.log*
|
|
30
|
+
yarn-error.log*
|
|
31
|
+
pnpm-debug.log*
|
|
32
|
+
*.log
|
|
33
|
+
|
|
34
|
+
# Editor & OS Files
|
|
35
|
+
.vscode/
|
|
36
|
+
.idea/
|
|
37
|
+
*.suo
|
|
38
|
+
*.ntvs*
|
|
39
|
+
*.njsproj
|
|
40
|
+
*.sln
|
|
41
|
+
*.sw?
|
|
42
|
+
.DS_Store
|
|
43
|
+
.DS_Store?
|
|
44
|
+
._*
|
|
45
|
+
.Spotlight-V100
|
|
46
|
+
.Trashes
|
|
47
|
+
ehthumbs.db
|
|
48
|
+
Thumbs.db
|
|
49
|
+
|
|
50
|
+
# Lockfiles (Optional depending on project standard, usually kept in VC)
|
|
51
|
+
package-lock.json
|
|
52
|
+
yarn.lock
|
|
53
|
+
pnpm-lock.yaml
|
|
54
|
+
|
|
55
|
+
# Local configuration
|
|
56
|
+
.eslintcache
|
|
57
|
+
.stylelintcache
|
|
58
|
+
*.tsbuildinfo
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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));
|
|
@@ -0,0 +1,24 @@
|
|
|
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));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
STATIC_IMG=/oss/images
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
"@ss/admin-widget": "workspace:*",
|
|
21
|
+
"@ss/oinone": "workspace:*",
|
|
22
|
+
"@ss/project": "workspace:*",
|
|
23
|
+
"vant": "3.6.0",
|
|
24
|
+
"ant-design-vue": "3.2.14",
|
|
25
|
+
"element-plus": "2.2.17",
|
|
26
|
+
"fast-xml-parser": "3.21.1",
|
|
27
|
+
"graphql": "15.8.0",
|
|
28
|
+
"graphql-tag": "2.12.6",
|
|
29
|
+
"lodash-es": "4.17.21",
|
|
30
|
+
"moment": "2.29.3",
|
|
31
|
+
"reflect-metadata": "0.1.13",
|
|
32
|
+
"vue": "3.2.40",
|
|
33
|
+
"vue3-draggable-resizable": "1.6.1",
|
|
34
|
+
"vuedraggable": "4.1.0",
|
|
35
|
+
"@ant-design/icons-vue": "7.0.1",
|
|
36
|
+
"echarts": "6.0.0",
|
|
37
|
+
"@antv/data-set": "0.11.8",
|
|
38
|
+
"@antv/g2": "5.4.8"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/moment": "2.13.0",
|
|
42
|
+
"@vue/cli-plugin-typescript": "5.0.8",
|
|
43
|
+
"@vue/cli-service": "5.0.8",
|
|
44
|
+
"@vue/compiler-sfc": "3.2.40",
|
|
45
|
+
"cross-env": "7.0.3",
|
|
46
|
+
"dotenv-webpack": "1.7.0",
|
|
47
|
+
"sass": "1.44.0",
|
|
48
|
+
"sass-loader": "10.1.1",
|
|
49
|
+
"thread-loader": "^3.0.4",
|
|
50
|
+
"tslib": "2.3.1",
|
|
51
|
+
"typescript": "4.5.2"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN" dir="ltr">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
7
|
+
<link ref="viewport" content="width=device-width,initial-scale=1.0" />
|
|
8
|
+
<title>Oinone</title>
|
|
9
|
+
<style>
|
|
10
|
+
:root {
|
|
11
|
+
--ss-primary: var(--oio-primary-color) !important;
|
|
12
|
+
--ss-action-hover-bg: var(--oio-primary-color) !important;
|
|
13
|
+
--ss-hover-bg: rgba(var(--oio-primary-color-rgb), 0.1) !important;
|
|
14
|
+
--table-high-light-bg: rgba(var(--oio-primary-color-rgb), 0.1) !important;
|
|
15
|
+
--el-color-primary: var(--oio-primary-color) !important;
|
|
16
|
+
--oio-background: #fff;
|
|
17
|
+
--oio-margin: 24px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#app {
|
|
21
|
+
height: 100%;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.default-metadata-main-view-spin {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#app > .ant-spin-nested-loading > div > .ant-spin .ant-spin-dot {
|
|
31
|
+
width: 32px;
|
|
32
|
+
height: 32px;
|
|
33
|
+
position: relative;
|
|
34
|
+
left: 0;
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.default-metadata-main-view-spin > .ant-spin-dot {
|
|
39
|
+
top: 50%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.default-metadata-main-view-wrapper {
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.default-metadata-main-view-wrapper > div > .oio-spin {
|
|
47
|
+
max-height: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.default-metadata-main-view-wrapper > .ant-spin-container {
|
|
51
|
+
height: 100%;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.default-metadata-main-view-wrapper > .ant-spin-container > .ant-spin-blur > * {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.el-popper__arrow {
|
|
59
|
+
visibility: hidden;
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
62
|
+
<script>
|
|
63
|
+
var _hmt = _hmt || [];
|
|
64
|
+
(function() {
|
|
65
|
+
var hm = document.createElement('script');
|
|
66
|
+
hm.src = 'https://hm.baidu.com/hm.js?c43bb1cd186bf6cd5c9062eb5235f4fd';
|
|
67
|
+
var s = document.getElementsByTagName('script')[0];
|
|
68
|
+
s.parentNode.insertBefore(hm, s);
|
|
69
|
+
})();
|
|
70
|
+
</script>
|
|
71
|
+
</head>
|
|
72
|
+
|
|
73
|
+
<body>
|
|
74
|
+
<noscript>
|
|
75
|
+
<strong
|
|
76
|
+
>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to
|
|
77
|
+
continue.</strong
|
|
78
|
+
>
|
|
79
|
+
</noscript>
|
|
80
|
+
<div id="app"></div>
|
|
81
|
+
<script src="https://pamirs.oss-cn-hangzhou.aliyuncs.com/oinone/common/wangEditor.min.js"></script>
|
|
82
|
+
</body>
|
|
83
|
+
</html>
|