@modern-js/app-tools 1.2.0 → 1.3.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
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cfe11628: Make Modern.js self bootstraping
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [2da09c69]
|
|
12
|
+
- Updated dependencies [e2464fe5]
|
|
13
|
+
- Updated dependencies [5597289b]
|
|
14
|
+
- Updated dependencies [fc71e36f]
|
|
15
|
+
- Updated dependencies [4a85378c]
|
|
16
|
+
- Updated dependencies [146dcd85]
|
|
17
|
+
- Updated dependencies [e453e421]
|
|
18
|
+
- Updated dependencies [2c049918]
|
|
19
|
+
- Updated dependencies [c3d46ee4]
|
|
20
|
+
- Updated dependencies [cfe11628]
|
|
21
|
+
- Updated dependencies [1ebc7ee2]
|
|
22
|
+
- Updated dependencies [146dcd85]
|
|
23
|
+
- Updated dependencies [146dcd85]
|
|
24
|
+
- Updated dependencies [1ebc7ee2]
|
|
25
|
+
- @modern-js/utils@1.2.0
|
|
26
|
+
- @modern-js/types@1.2.0
|
|
27
|
+
- @modern-js/webpack@1.2.0
|
|
28
|
+
- @modern-js/core@1.3.0
|
|
29
|
+
- @modern-js/server@1.3.0
|
|
30
|
+
- @modern-js/new-action@1.3.0
|
|
31
|
+
- @modern-js/i18n-cli-language-detector@1.2.0
|
|
32
|
+
- @modern-js/plugin-analyze@1.2.0
|
|
33
|
+
- @modern-js/plugin-fast-refresh@1.2.0
|
|
34
|
+
- @modern-js/plugin-i18n@1.2.0
|
|
35
|
+
- @modern-js/plugin-polyfill@1.2.0
|
|
36
|
+
- @modern-js/plugin@1.2.0
|
|
37
|
+
|
|
3
38
|
## 1.2.0
|
|
4
39
|
|
|
5
40
|
### Minor Changes
|
|
@@ -66,7 +66,8 @@ export const createCompiler = async ({
|
|
|
66
66
|
} catch (err) {
|
|
67
67
|
logger.log(chalk.red(`Failed to compile.`));
|
|
68
68
|
logger.log();
|
|
69
|
-
logger.log(err); //
|
|
69
|
+
logger.log(err); // FIXME: 这里最好抛出异常,执行 process.exit 的地方尽可能少或者控制在几个统一的地方比较合适
|
|
70
|
+
// eslint-disable-next-line no-process-exit
|
|
70
71
|
|
|
71
72
|
process.exit(1);
|
|
72
73
|
}
|
|
@@ -85,7 +85,8 @@ const createCompiler = async ({
|
|
|
85
85
|
|
|
86
86
|
_utils.logger.log();
|
|
87
87
|
|
|
88
|
-
_utils.logger.log(err); //
|
|
88
|
+
_utils.logger.log(err); // FIXME: 这里最好抛出异常,执行 process.exit 的地方尽可能少或者控制在几个统一的地方比较合适
|
|
89
|
+
// eslint-disable-next-line no-process-exit
|
|
89
90
|
|
|
90
91
|
|
|
91
92
|
process.exit(1);
|
package/jest.config.js
ADDED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.3.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -20,13 +20,20 @@
|
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
22
|
"node": {
|
|
23
|
+
"jsnext:source": "./src/index.ts",
|
|
23
24
|
"import": "./dist/js/modern/index.js",
|
|
24
25
|
"require": "./dist/js/node/index.js"
|
|
25
26
|
},
|
|
26
27
|
"default": "./dist/js/treeshaking/index.js"
|
|
27
28
|
},
|
|
28
|
-
"./cli":
|
|
29
|
-
|
|
29
|
+
"./cli": {
|
|
30
|
+
"jsnext:source": "./src/index.ts",
|
|
31
|
+
"default": "./dist/js/node/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./type": {
|
|
34
|
+
"jsnext:source": "./lib/types.d.ts",
|
|
35
|
+
"default": "./lib/types.d.ts"
|
|
36
|
+
}
|
|
30
37
|
},
|
|
31
38
|
"typesVersions": {
|
|
32
39
|
"*": {
|
|
@@ -43,18 +50,18 @@
|
|
|
43
50
|
},
|
|
44
51
|
"dependencies": {
|
|
45
52
|
"@babel/runtime": "^7",
|
|
46
|
-
"@modern-js/core": "^1.
|
|
47
|
-
"@modern-js/types": "^1.
|
|
48
|
-
"@modern-js/i18n-cli-language-detector": "^1.
|
|
49
|
-
"@modern-js/new-action": "^1.
|
|
50
|
-
"@modern-js/plugin": "^1.
|
|
51
|
-
"@modern-js/plugin-analyze": "^1.
|
|
52
|
-
"@modern-js/plugin-fast-refresh": "^1.
|
|
53
|
-
"@modern-js/plugin-i18n": "^1.
|
|
54
|
-
"@modern-js/plugin-polyfill": "^1.
|
|
55
|
-
"@modern-js/server": "^1.
|
|
56
|
-
"@modern-js/utils": "^1.
|
|
57
|
-
"@modern-js/webpack": "^1.
|
|
53
|
+
"@modern-js/core": "^1.3.0",
|
|
54
|
+
"@modern-js/types": "^1.2.0",
|
|
55
|
+
"@modern-js/i18n-cli-language-detector": "^1.2.0",
|
|
56
|
+
"@modern-js/new-action": "^1.3.0",
|
|
57
|
+
"@modern-js/plugin": "^1.2.0",
|
|
58
|
+
"@modern-js/plugin-analyze": "^1.2.0",
|
|
59
|
+
"@modern-js/plugin-fast-refresh": "^1.2.0",
|
|
60
|
+
"@modern-js/plugin-i18n": "^1.2.0",
|
|
61
|
+
"@modern-js/plugin-polyfill": "^1.2.0",
|
|
62
|
+
"@modern-js/server": "^1.3.0",
|
|
63
|
+
"@modern-js/utils": "^1.2.0",
|
|
64
|
+
"@modern-js/webpack": "^1.2.0",
|
|
58
65
|
"webpack": "^5.54.0"
|
|
59
66
|
},
|
|
60
67
|
"devDependencies": {
|
|
@@ -63,8 +70,9 @@
|
|
|
63
70
|
"@types/react": "^17",
|
|
64
71
|
"@types/react-dom": "^17",
|
|
65
72
|
"typescript": "^4",
|
|
66
|
-
"@
|
|
67
|
-
"
|
|
73
|
+
"@scripts/build": "0.0.0",
|
|
74
|
+
"jest": "^27",
|
|
75
|
+
"@scripts/jest-config": "0.0.0"
|
|
68
76
|
},
|
|
69
77
|
"sideEffects": false,
|
|
70
78
|
"modernConfig": {
|
|
@@ -74,12 +82,13 @@
|
|
|
74
82
|
},
|
|
75
83
|
"publishConfig": {
|
|
76
84
|
"registry": "https://registry.npmjs.org/",
|
|
77
|
-
"access": "public"
|
|
85
|
+
"access": "public",
|
|
86
|
+
"types": "./dist/types/index.d.ts"
|
|
78
87
|
},
|
|
79
88
|
"scripts": {
|
|
80
89
|
"new": "modern new",
|
|
81
90
|
"build": "modern build",
|
|
82
|
-
"test": "
|
|
91
|
+
"test": "jest --passWithNoTests"
|
|
83
92
|
},
|
|
84
93
|
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
|
|
85
94
|
}
|
|
@@ -74,6 +74,7 @@ export const createCompiler = async ({
|
|
|
74
74
|
logger.log(chalk.red(`Failed to compile.`));
|
|
75
75
|
logger.log();
|
|
76
76
|
logger.log(err as any);
|
|
77
|
+
// FIXME: 这里最好抛出异常,执行 process.exit 的地方尽可能少或者控制在几个统一的地方比较合适
|
|
77
78
|
// eslint-disable-next-line no-process-exit
|
|
78
79
|
process.exit(1);
|
|
79
80
|
}
|