@modern-js/app-tools 1.6.1 → 1.6.4
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 +78 -0
- package/dist/js/modern/commands/build.js +4 -3
- package/dist/js/node/commands/build.js +5 -3
- package/package.json +40 -18
- package/.eslintrc.js +0 -8
- package/jest.config.js +0 -7
- package/modern.config.js +0 -7
- package/tsconfig.json +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,83 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.6.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
|
|
8
|
+
- Updated dependencies [d2995e7d7]
|
|
9
|
+
- Updated dependencies [47934c4da]
|
|
10
|
+
- Updated dependencies [d5913bd96]
|
|
11
|
+
- Updated dependencies [d32f35134]
|
|
12
|
+
- Updated dependencies [43d9bb5fa]
|
|
13
|
+
- Updated dependencies [b1f7d2aa6]
|
|
14
|
+
- Updated dependencies [86fe5a657]
|
|
15
|
+
- Updated dependencies [d9d398e16]
|
|
16
|
+
- Updated dependencies [97086dde8]
|
|
17
|
+
- Updated dependencies [6ae4a34ae]
|
|
18
|
+
- Updated dependencies [97086dde8]
|
|
19
|
+
- Updated dependencies [97086dde8]
|
|
20
|
+
- Updated dependencies [b80229c79]
|
|
21
|
+
- Updated dependencies [ff6219909]
|
|
22
|
+
- Updated dependencies [948cc4436]
|
|
23
|
+
- @modern-js/webpack@1.7.0
|
|
24
|
+
- @modern-js/plugin@1.3.4
|
|
25
|
+
- @modern-js/core@1.10.2
|
|
26
|
+
- @modern-js/i18n-cli-language-detector@1.2.3
|
|
27
|
+
- @modern-js/plugin-analyze@1.4.3
|
|
28
|
+
- @modern-js/plugin-fast-refresh@1.2.6
|
|
29
|
+
- @modern-js/plugin-i18n@1.2.6
|
|
30
|
+
- @modern-js/new-action@1.3.9
|
|
31
|
+
- @modern-js/prod-server@1.1.5
|
|
32
|
+
- @modern-js/server@1.4.14
|
|
33
|
+
- @modern-js/node-bundle-require@1.3.3
|
|
34
|
+
- @modern-js/types@1.5.3
|
|
35
|
+
- @modern-js/utils@1.7.3
|
|
36
|
+
|
|
37
|
+
## 1.6.3
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- 69a728375: fix: remove exports.jsnext:source after publish
|
|
42
|
+
- Updated dependencies [b7b8075dc]
|
|
43
|
+
- Updated dependencies [cd7346b0d]
|
|
44
|
+
- Updated dependencies [0e0537005]
|
|
45
|
+
- Updated dependencies [6b0bb5e3b]
|
|
46
|
+
- Updated dependencies [738c55d39]
|
|
47
|
+
- Updated dependencies [69a728375]
|
|
48
|
+
- @modern-js/webpack@1.6.2
|
|
49
|
+
- @modern-js/utils@1.7.2
|
|
50
|
+
- @modern-js/server@1.4.13
|
|
51
|
+
- @modern-js/new-action@1.3.8
|
|
52
|
+
- @modern-js/core@1.10.1
|
|
53
|
+
- @modern-js/plugin-analyze@1.4.2
|
|
54
|
+
- @modern-js/plugin-fast-refresh@1.2.5
|
|
55
|
+
- @modern-js/plugin-i18n@1.2.5
|
|
56
|
+
- @modern-js/prod-server@1.1.4
|
|
57
|
+
- @modern-js/node-bundle-require@1.3.2
|
|
58
|
+
|
|
59
|
+
## 1.6.2
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- 8cf0ca21: fix: build commands not work
|
|
64
|
+
- Updated dependencies [4697d1db]
|
|
65
|
+
- Updated dependencies [0ee4bb4e]
|
|
66
|
+
- Updated dependencies [a4c5fe78]
|
|
67
|
+
- Updated dependencies [6fa74d5f]
|
|
68
|
+
- Updated dependencies [a22d3ea8]
|
|
69
|
+
- Updated dependencies [5c00db22]
|
|
70
|
+
- Updated dependencies [92f4909e]
|
|
71
|
+
- @modern-js/webpack@1.6.0
|
|
72
|
+
- @modern-js/core@1.10.0
|
|
73
|
+
- @modern-js/utils@1.7.0
|
|
74
|
+
- @modern-js/prod-server@1.1.3
|
|
75
|
+
- @modern-js/types@1.5.2
|
|
76
|
+
- @modern-js/server@1.4.12
|
|
77
|
+
- @modern-js/plugin-analyze@1.4.1
|
|
78
|
+
- @modern-js/plugin-fast-refresh@1.2.4
|
|
79
|
+
- @modern-js/node-bundle-require@1.3.2
|
|
80
|
+
|
|
3
81
|
## 1.6.1
|
|
4
82
|
|
|
5
83
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ import { buildServerConfig, emitResolvedConfig } from "../utils/config";
|
|
|
13
13
|
const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
|
14
14
|
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
|
|
15
15
|
export const build = async (api, options) => {
|
|
16
|
-
|
|
16
|
+
let resolvedConfig = api.useResolvedConfigContext();
|
|
17
17
|
const appContext = api.useAppContext();
|
|
18
18
|
const hookRunners = api.useHookRunners();
|
|
19
19
|
const {
|
|
@@ -92,9 +92,10 @@ export const build = async (api, options) => {
|
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
manager.run(() => {
|
|
95
|
-
|
|
95
|
+
resolvedConfig = _objectSpread(_objectSpread({}, resolvedConfig), {}, {
|
|
96
96
|
cliOptions: options
|
|
97
|
-
})
|
|
97
|
+
});
|
|
98
|
+
ResolvedConfigContext.set(resolvedConfig);
|
|
98
99
|
});
|
|
99
100
|
const {
|
|
100
101
|
distDirectory,
|
|
@@ -26,7 +26,7 @@ const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024;
|
|
|
26
26
|
const WARN_AFTER_CHUNK_GZIP_SIZE = 1024 * 1024;
|
|
27
27
|
|
|
28
28
|
const build = async (api, options) => {
|
|
29
|
-
|
|
29
|
+
let resolvedConfig = api.useResolvedConfigContext();
|
|
30
30
|
const appContext = api.useAppContext();
|
|
31
31
|
const hookRunners = api.useHookRunners();
|
|
32
32
|
const {
|
|
@@ -108,9 +108,11 @@ const build = async (api, options) => {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
_core.manager.run(() => {
|
|
111
|
-
|
|
111
|
+
resolvedConfig = _objectSpread(_objectSpread({}, resolvedConfig), {}, {
|
|
112
112
|
cliOptions: options
|
|
113
|
-
})
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
_core.ResolvedConfigContext.set(resolvedConfig);
|
|
114
116
|
});
|
|
115
117
|
|
|
116
118
|
const {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.6.
|
|
14
|
+
"version": "1.6.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -57,25 +57,25 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7",
|
|
60
|
-
"@modern-js/core": "^1.
|
|
61
|
-
"@modern-js/i18n-cli-language-detector": "^1.2.
|
|
62
|
-
"@modern-js/new-action": "^1.3.
|
|
63
|
-
"@modern-js/node-bundle-require": "^1.3.
|
|
64
|
-
"@modern-js/plugin": "^1.3.
|
|
65
|
-
"@modern-js/plugin-analyze": "^1.4.
|
|
66
|
-
"@modern-js/plugin-fast-refresh": "^1.2.
|
|
67
|
-
"@modern-js/plugin-i18n": "^1.2.
|
|
68
|
-
"@modern-js/prod-server": "^1.1.
|
|
69
|
-
"@modern-js/server": "^1.4.
|
|
70
|
-
"@modern-js/types": "^1.5.
|
|
71
|
-
"@modern-js/utils": "^1.
|
|
72
|
-
"@modern-js/webpack": "^1.
|
|
60
|
+
"@modern-js/core": "^1.10.2",
|
|
61
|
+
"@modern-js/i18n-cli-language-detector": "^1.2.3",
|
|
62
|
+
"@modern-js/new-action": "^1.3.9",
|
|
63
|
+
"@modern-js/node-bundle-require": "^1.3.3",
|
|
64
|
+
"@modern-js/plugin": "^1.3.4",
|
|
65
|
+
"@modern-js/plugin-analyze": "^1.4.3",
|
|
66
|
+
"@modern-js/plugin-fast-refresh": "^1.2.6",
|
|
67
|
+
"@modern-js/plugin-i18n": "^1.2.6",
|
|
68
|
+
"@modern-js/prod-server": "^1.1.5",
|
|
69
|
+
"@modern-js/server": "^1.4.14",
|
|
70
|
+
"@modern-js/types": "^1.5.3",
|
|
71
|
+
"@modern-js/utils": "^1.7.3",
|
|
72
|
+
"@modern-js/webpack": "^1.7.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@modern-js/server-core": "1.3.
|
|
75
|
+
"@modern-js/server-core": "1.3.5",
|
|
76
76
|
"@scripts/build": "0.0.0",
|
|
77
77
|
"@scripts/jest-config": "0.0.0",
|
|
78
|
-
"@types/jest": "^
|
|
78
|
+
"@types/jest": "^27",
|
|
79
79
|
"@types/node": "^14",
|
|
80
80
|
"@types/react": "^17",
|
|
81
81
|
"@types/react-dom": "^17",
|
|
@@ -87,11 +87,33 @@
|
|
|
87
87
|
"registry": "https://registry.npmjs.org/",
|
|
88
88
|
"access": "public"
|
|
89
89
|
},
|
|
90
|
+
"wireit": {
|
|
91
|
+
"build": {
|
|
92
|
+
"command": "modern build",
|
|
93
|
+
"files": [
|
|
94
|
+
"src/**/*",
|
|
95
|
+
"tsconfig.json",
|
|
96
|
+
"package.json"
|
|
97
|
+
],
|
|
98
|
+
"output": [
|
|
99
|
+
"dist/**/*"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"test": {
|
|
103
|
+
"command": "jest --passWithNoTests",
|
|
104
|
+
"files": [
|
|
105
|
+
"src/**/*",
|
|
106
|
+
"tsconfig.json",
|
|
107
|
+
"package.json"
|
|
108
|
+
],
|
|
109
|
+
"output": []
|
|
110
|
+
}
|
|
111
|
+
},
|
|
90
112
|
"scripts": {
|
|
91
113
|
"new": "modern new",
|
|
92
114
|
"dev": "modern build --watch",
|
|
93
|
-
"build": "
|
|
94
|
-
"test": "
|
|
115
|
+
"build": "wireit",
|
|
116
|
+
"test": "wireit"
|
|
95
117
|
},
|
|
96
118
|
"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"
|
|
97
119
|
}
|
package/.eslintrc.js
DELETED
package/jest.config.js
DELETED
package/modern.config.js
DELETED
package/tsconfig.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@modern-js/tsconfig/base",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": false,
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"allowJs": true,
|
|
7
|
-
"jsx": "preserve",
|
|
8
|
-
"baseUrl": "./",
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"isolatedModules": true,
|
|
11
|
-
"paths": {}
|
|
12
|
-
},
|
|
13
|
-
"include": ["src"]
|
|
14
|
-
}
|