@modern-js/app-tools 1.19.0 → 1.20.0
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/CHANGELOG.md +31 -0
- package/dist/js/modern/commands/dev.js +1 -2
- package/dist/js/modern/commands/inspect.js +4 -4
- package/dist/js/modern/locale/zh.js +1 -1
- package/dist/js/node/commands/dev.js +1 -2
- package/dist/js/node/commands/inspect.js +3 -3
- package/dist/js/node/locale/zh.js +1 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.20.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0f9e16b: fix(app-tools): remove useless logging option
|
|
8
|
+
|
|
9
|
+
fix(app-tools): 移除无效的 logging 选项
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [35c0959]
|
|
12
|
+
- Updated dependencies [d5d570b]
|
|
13
|
+
- Updated dependencies [4ddc185]
|
|
14
|
+
- Updated dependencies [66e4817]
|
|
15
|
+
- Updated dependencies [df8ee7e]
|
|
16
|
+
- Updated dependencies [077aef8]
|
|
17
|
+
- Updated dependencies [8c05089]
|
|
18
|
+
- Updated dependencies [face165]
|
|
19
|
+
- Updated dependencies [baf7337]
|
|
20
|
+
- Updated dependencies [d5d570b]
|
|
21
|
+
- @modern-js/server@1.20.0
|
|
22
|
+
- @modern-js/utils@1.20.0
|
|
23
|
+
- @modern-js/core@1.20.0
|
|
24
|
+
- @modern-js/webpack@1.20.0
|
|
25
|
+
- @modern-js/types@1.20.0
|
|
26
|
+
- @modern-js/prod-server@1.20.0
|
|
27
|
+
- @modern-js/plugin-i18n@1.20.0
|
|
28
|
+
- @modern-js/plugin-jarvis@1.20.0
|
|
29
|
+
- @modern-js/new-action@1.20.0
|
|
30
|
+
- @modern-js/node-bundle-require@1.20.0
|
|
31
|
+
- @modern-js/upgrade@1.20.0
|
|
32
|
+
- @modern-js/plugin@1.20.0
|
|
33
|
+
|
|
3
34
|
## 1.19.0
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -65,8 +65,7 @@ export const dev = async (api, options) => {
|
|
|
65
65
|
const app = await createServer({
|
|
66
66
|
dev: _objectSpread(_objectSpread({}, {
|
|
67
67
|
client: {
|
|
68
|
-
port: port.toString()
|
|
69
|
-
logging: 'none'
|
|
68
|
+
port: port.toString()
|
|
70
69
|
},
|
|
71
70
|
devMiddleware: {
|
|
72
71
|
writeToDisk: file => !file.includes('.hot-update.')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import { getWebpackConfig, WebpackConfigTarget } from '@modern-js/webpack';
|
|
3
|
-
import { fs, logger,
|
|
3
|
+
import { fs, logger, isUseSSRBundle, chalk } from '@modern-js/utils';
|
|
4
4
|
import WebpackChain from '@modern-js/utils/webpack-chain';
|
|
5
5
|
export const formatWebpackConfig = (config, verbose) => {
|
|
6
6
|
const stringify = WebpackChain.toString;
|
|
@@ -23,11 +23,11 @@ export const inspect = (api, options) => {
|
|
|
23
23
|
outputFiles.push(printInspectResult(WebpackConfigTarget.NODE, appContext, resolvedConfig, options));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
logger.success('Inspect succeed, you can open following files to view the full webpack config: \n');
|
|
27
27
|
outputFiles.forEach(file => {
|
|
28
|
-
|
|
28
|
+
logger.log(` - ${chalk.yellow(path.relative(appContext.appDirectory, file))}`);
|
|
29
29
|
});
|
|
30
|
-
|
|
30
|
+
logger.log();
|
|
31
31
|
};
|
|
32
32
|
export const getTagByWebpackTarget = webpackTarget => {
|
|
33
33
|
switch (webpackTarget) {
|
|
@@ -88,8 +88,7 @@ const dev = async (api, options) => {
|
|
|
88
88
|
const app = await (0, _createServer.createServer)({
|
|
89
89
|
dev: _objectSpread(_objectSpread({}, {
|
|
90
90
|
client: {
|
|
91
|
-
port: port.toString()
|
|
92
|
-
logging: 'none'
|
|
91
|
+
port: port.toString()
|
|
93
92
|
},
|
|
94
93
|
devMiddleware: {
|
|
95
94
|
writeToDisk: file => !file.includes('.hot-update.')
|
|
@@ -39,13 +39,13 @@ const inspect = (api, options) => {
|
|
|
39
39
|
outputFiles.push(printInspectResult(_webpack.WebpackConfigTarget.NODE, appContext, resolvedConfig, options));
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
_utils.
|
|
42
|
+
_utils.logger.success('Inspect succeed, you can open following files to view the full webpack config: \n');
|
|
43
43
|
|
|
44
44
|
outputFiles.forEach(file => {
|
|
45
|
-
_utils.
|
|
45
|
+
_utils.logger.log(` - ${_utils.chalk.yellow(_path.default.relative(appContext.appDirectory, file))}`);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
_utils.
|
|
48
|
+
_utils.logger.log();
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
exports.inspect = inspect;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.20.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/runtime": "^7.18.0",
|
|
59
|
-
"@modern-js/core": "1.
|
|
60
|
-
"@modern-js/new-action": "1.
|
|
61
|
-
"@modern-js/upgrade": "1.
|
|
62
|
-
"@modern-js/node-bundle-require": "1.
|
|
63
|
-
"@modern-js/plugin": "1.
|
|
64
|
-
"@modern-js/plugin-i18n": "1.
|
|
65
|
-
"@modern-js/plugin-jarvis": "1.
|
|
66
|
-
"@modern-js/prod-server": "1.
|
|
67
|
-
"@modern-js/server": "1.
|
|
68
|
-
"@modern-js/types": "1.
|
|
69
|
-
"@modern-js/utils": "1.
|
|
70
|
-
"@modern-js/webpack": "1.
|
|
59
|
+
"@modern-js/core": "1.20.0",
|
|
60
|
+
"@modern-js/new-action": "1.20.0",
|
|
61
|
+
"@modern-js/upgrade": "1.20.0",
|
|
62
|
+
"@modern-js/node-bundle-require": "1.20.0",
|
|
63
|
+
"@modern-js/plugin": "1.20.0",
|
|
64
|
+
"@modern-js/plugin-i18n": "1.20.0",
|
|
65
|
+
"@modern-js/plugin-jarvis": "1.20.0",
|
|
66
|
+
"@modern-js/prod-server": "1.20.0",
|
|
67
|
+
"@modern-js/server": "1.20.0",
|
|
68
|
+
"@modern-js/types": "1.20.0",
|
|
69
|
+
"@modern-js/utils": "1.20.0",
|
|
70
|
+
"@modern-js/webpack": "1.20.0",
|
|
71
71
|
"@babel/parser": "^7.18.0",
|
|
72
72
|
"@babel/traverse": "^7.18.0",
|
|
73
73
|
"@babel/types": "^7.18.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@modern-js/server-core": "1.
|
|
76
|
+
"@modern-js/server-core": "1.20.0",
|
|
77
77
|
"@types/babel__traverse": "^7.14.2",
|
|
78
|
-
"@scripts/build": "1.
|
|
79
|
-
"@scripts/jest-config": "1.
|
|
78
|
+
"@scripts/build": "1.20.0",
|
|
79
|
+
"@scripts/jest-config": "1.20.0",
|
|
80
80
|
"@types/jest": "^27",
|
|
81
81
|
"@types/node": "^14",
|
|
82
82
|
"jest": "^27",
|