jjb-cmd 2.0.0 → 2.0.2
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/package.json +2 -2
- package/src/new/cmd.init.copy/lib/webstorm.config.js +1 -3
- package/src/new/cmd.init.copy/micro-app/jjb.config.json +2 -3
- package/src/new/cmd.init.copy/micro-app/package.json +3 -5
- package/src/new/cmd.init.copy/micro-app/src/api/main/index.js +1 -0
- package/src/new/cmd.init.copy/micro-app/webstorm.config.js +1 -3
- package/src/new/cmd.init.copy/react-component/jjb.script/config.js +0 -2
- package/src/new/cmd.init.copy/react-component/package.json +2 -2
- package/src/new/cmd.init.copy/micro-app/src/models/main/index.js +0 -9
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "jjb-cmd",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.2",
|
4
4
|
"description": "jjb脚手架工具",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -13,7 +13,7 @@
|
|
13
13
|
},
|
14
14
|
"author": "jjb-front-team",
|
15
15
|
"license": "MIT",
|
16
|
-
"
|
16
|
+
"dependencies": {
|
17
17
|
"axios": "^1.1.3",
|
18
18
|
"commander": "^1.3.2",
|
19
19
|
"compressing": "^1.5.1",
|
@@ -20,11 +20,10 @@
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
"contextInject": {
|
23
|
-
"notRouter": true
|
24
23
|
},
|
25
24
|
"windowInject": {
|
26
|
-
"title": "
|
27
|
-
"jjbCommonLibUrl": ""
|
25
|
+
"title": "微应用",
|
26
|
+
"jjbCommonLibUrl": "http://120.26.210.58:8089/jjb-common-lib/latest/index.js"
|
28
27
|
},
|
29
28
|
"server": {
|
30
29
|
"port": "8080",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
|
-
"name": "app",
|
2
|
+
"name": "micro-app",
|
3
3
|
"version": "1.0.0",
|
4
|
-
"description": "
|
4
|
+
"description": "建教帮微应用模板",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
7
|
"serve": "node jjb.script/server.js",
|
@@ -58,8 +58,6 @@
|
|
58
58
|
"react-cropper": "^2.1.8",
|
59
59
|
"react-dom": "^17.0.2",
|
60
60
|
"react-router-dom": "^5.2.0",
|
61
|
-
"watch-props": "^0.0.3"
|
62
|
-
"jjb-dva-runtime": "1.0.0",
|
63
|
-
"jjb-common-decorator": "1.0.0"
|
61
|
+
"watch-props": "^0.0.3"
|
64
62
|
}
|
65
63
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -9,7 +9,6 @@ const config = require(requireResolve('jjb.config.json'));
|
|
9
9
|
const packageJSON = require(requireResolve('package.json'));
|
10
10
|
const server = (config.server || {});
|
11
11
|
const environment = (config.environment || {})[ process.env.NODE_ENV ];
|
12
|
-
const windowInject = (config.windowInject || {});
|
13
12
|
const contextInject = (config.contextInject || {});
|
14
13
|
const contextData = {
|
15
14
|
...environment,
|
@@ -17,7 +16,6 @@ const contextData = {
|
|
17
16
|
};
|
18
17
|
|
19
18
|
module.exports = mode => {
|
20
|
-
const isProduction = mode === 'production';
|
21
19
|
return {
|
22
20
|
server,
|
23
21
|
webpack: {
|