cloudcc-cli 1.2.5 → 1.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 +8 -0
- package/package.json +1 -1
- package/template/Appvue +29 -19
- package/template/httpjs +2 -3
- package/template/index.js +1 -0
- package/template/indexvue +163 -116
- package/template/mainjs +4 -1
- package/template/package-lockjson +26 -40
- package/template/packagejson +14 -8
- package/template/vueconfigjs +16 -2
- package/cloudcc-cli +0 -3332
package/template/packagejson
CHANGED
|
@@ -4,22 +4,28 @@
|
|
|
4
4
|
"description": "cloudcc-plugin-dev",
|
|
5
5
|
"devConsoleConfig": {
|
|
6
6
|
"baseUrl": "http://xxx", //组件提交地址
|
|
7
|
-
"username": "xxx"
|
|
8
|
-
"secretKey": "xxx"
|
|
7
|
+
"username": "xxx", // 用户名
|
|
8
|
+
"secretKey": "xxx", // 通过用户名,访问接口获得
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
+
"cc-pull": "git fetch --tags -f && git pull",
|
|
11
12
|
"serve": "vue-cli-service serve",
|
|
12
13
|
"build-plugin": "cloudccBuild"
|
|
13
14
|
},
|
|
14
15
|
"dependencies": {
|
|
16
|
+
"element-ui": "2.15.12",
|
|
17
|
+
"crypto-js": "4.1.1",
|
|
18
|
+
"js-cookie": "3.0.1",
|
|
15
19
|
"axios": "^0.21.1",
|
|
16
|
-
"cloudcc-ccdk": "0.
|
|
20
|
+
"cloudcc-ccdk": "0.3.6",
|
|
17
21
|
"core-js": "^3.6.5",
|
|
18
|
-
"
|
|
22
|
+
"echarts": "^4.9.0",
|
|
23
|
+
"vue": "2.6.14",
|
|
19
24
|
"vue-cookies": "^1.7.4",
|
|
20
|
-
"vue-custom-element": "
|
|
25
|
+
"vue-custom-element": "3.3.0"
|
|
21
26
|
},
|
|
22
27
|
"devDependencies": {
|
|
28
|
+
"@kazupon/vue-i18n-loader": "^0.5.0",
|
|
23
29
|
"@vue/cli-plugin-babel": "~4.5.0",
|
|
24
30
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
25
31
|
"@vue/cli-service": "~4.5.0",
|
|
@@ -27,9 +33,9 @@
|
|
|
27
33
|
"element-ui": "^2.15.2",
|
|
28
34
|
"eslint": "^6.7.2",
|
|
29
35
|
"eslint-plugin-vue": "^6.2.2",
|
|
30
|
-
"vue-template-compiler": "^2.6.11",
|
|
31
36
|
"sass": "1.26.8",
|
|
32
|
-
"sass-loader": "8.0.2"
|
|
37
|
+
"sass-loader": "8.0.2",
|
|
38
|
+
"vue-template-compiler": "^2.6.11"
|
|
33
39
|
},
|
|
34
40
|
"eslintConfig": {
|
|
35
41
|
"root": true,
|
|
@@ -50,4 +56,4 @@
|
|
|
50
56
|
"last 2 versions",
|
|
51
57
|
"not dead"
|
|
52
58
|
]
|
|
53
|
-
}
|
|
59
|
+
}
|
package/template/vueconfigjs
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
// 打包排除依赖包
|
|
2
|
+
const external = process.env.NODE_ENV == 'development' ? {} : {
|
|
3
|
+
"vue": 'Vue',
|
|
4
|
+
"vue-router": 'VueRouter',
|
|
5
|
+
'element-ui': 'ELEMENT',
|
|
6
|
+
"axios": 'axios',
|
|
7
|
+
}
|
|
1
8
|
module.exports = {
|
|
2
9
|
publicPath: '/',
|
|
3
|
-
|
|
10
|
+
// 关闭生成Map文件
|
|
11
|
+
productionSourceMap: false,
|
|
4
12
|
configureWebpack: {
|
|
5
13
|
},
|
|
6
|
-
|
|
14
|
+
// css强制内联在js中
|
|
15
|
+
css: { extract: false },
|
|
16
|
+
// 精细化修改webpack打包逻辑
|
|
17
|
+
chainWebpack: config => {
|
|
18
|
+
// 排除某些包,禁止打包到chunck中
|
|
19
|
+
config.externals(external)
|
|
20
|
+
}
|
|
7
21
|
}
|