@modern-js/app-tools 1.0.0-rc.14 → 1.0.0-rc.19
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 +121 -0
- package/dist/js/modern/index.js +2 -1
- package/dist/js/modern/utils/printInstructions.js +1 -1
- package/dist/js/node/index.js +3 -1
- package/dist/js/node/utils/printInstructions.js +1 -1
- package/lib/types.d.ts +1 -1
- package/package.json +15 -15
- package/src/index.ts +4 -3
- package/src/utils/printInstructions.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,126 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 224f7fe: fix server route match
|
|
8
|
+
- 30ac27c: feat: add generator package description
|
|
9
|
+
- 204c626: feat: initial
|
|
10
|
+
- 63be0a5: fix: #118 #104
|
|
11
|
+
- Updated dependencies [224f7fe]
|
|
12
|
+
- Updated dependencies [30ac27c]
|
|
13
|
+
- Updated dependencies [204c626]
|
|
14
|
+
- Updated dependencies [63be0a5]
|
|
15
|
+
- @modern-js/core@1.0.0-rc.19
|
|
16
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.19
|
|
17
|
+
- @modern-js/plugin-analyze@1.0.0-rc.19
|
|
18
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.19
|
|
19
|
+
- @modern-js/plugin-i18n@1.0.0-rc.19
|
|
20
|
+
- @modern-js/webpack@1.0.0-rc.19
|
|
21
|
+
- @modern-js/new-action@1.0.0-rc.19
|
|
22
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.19
|
|
23
|
+
- @modern-js/server@1.0.0-rc.19
|
|
24
|
+
- @modern-js/plugin@1.0.0-rc.19
|
|
25
|
+
- @modern-js/types@1.0.0-rc.19
|
|
26
|
+
- @modern-js/utils@1.0.0-rc.19
|
|
27
|
+
|
|
28
|
+
## 1.0.0-rc.18
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 224f7fe: fix server route match
|
|
33
|
+
- 30ac27c: feat: add generator package description
|
|
34
|
+
- 204c626: feat: initial
|
|
35
|
+
- 63be0a5: fix: #118 #104
|
|
36
|
+
- Updated dependencies [224f7fe]
|
|
37
|
+
- Updated dependencies [30ac27c]
|
|
38
|
+
- Updated dependencies [204c626]
|
|
39
|
+
- Updated dependencies [63be0a5]
|
|
40
|
+
- @modern-js/core@1.0.0-rc.18
|
|
41
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.18
|
|
42
|
+
- @modern-js/plugin-analyze@1.0.0-rc.18
|
|
43
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.18
|
|
44
|
+
- @modern-js/plugin-i18n@1.0.0-rc.18
|
|
45
|
+
- @modern-js/webpack@1.0.0-rc.18
|
|
46
|
+
- @modern-js/new-action@1.0.0-rc.18
|
|
47
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.18
|
|
48
|
+
- @modern-js/server@1.0.0-rc.18
|
|
49
|
+
- @modern-js/plugin@1.0.0-rc.18
|
|
50
|
+
- @modern-js/types@1.0.0-rc.18
|
|
51
|
+
- @modern-js/utils@1.0.0-rc.18
|
|
52
|
+
|
|
53
|
+
## 1.0.0-rc.17
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- 224f7fe: fix server route match
|
|
58
|
+
- 30ac27c: feat: add generator package description
|
|
59
|
+
- 204c626: feat: initial
|
|
60
|
+
- fix: #118 #104
|
|
61
|
+
- Updated dependencies [224f7fe]
|
|
62
|
+
- Updated dependencies [30ac27c]
|
|
63
|
+
- Updated dependencies [204c626]
|
|
64
|
+
- Updated dependencies [undefined]
|
|
65
|
+
- @modern-js/core@1.0.0-rc.17
|
|
66
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.17
|
|
67
|
+
- @modern-js/plugin-analyze@1.0.0-rc.17
|
|
68
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.17
|
|
69
|
+
- @modern-js/plugin-i18n@1.0.0-rc.17
|
|
70
|
+
- @modern-js/webpack@1.0.0-rc.17
|
|
71
|
+
- @modern-js/new-action@1.0.0-rc.17
|
|
72
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.17
|
|
73
|
+
- @modern-js/server@1.0.0-rc.17
|
|
74
|
+
- @modern-js/plugin@1.0.0-rc.17
|
|
75
|
+
- @modern-js/types@1.0.0-rc.17
|
|
76
|
+
- @modern-js/utils@1.0.0-rc.17
|
|
77
|
+
|
|
78
|
+
## 1.0.0-rc.16
|
|
79
|
+
|
|
80
|
+
### Patch Changes
|
|
81
|
+
|
|
82
|
+
- 224f7fe: fix server route match
|
|
83
|
+
- 30ac27c: feat: add generator package description
|
|
84
|
+
- 204c626: feat: initial
|
|
85
|
+
- Updated dependencies [224f7fe]
|
|
86
|
+
- Updated dependencies [30ac27c]
|
|
87
|
+
- Updated dependencies [204c626]
|
|
88
|
+
- @modern-js/core@1.0.0-rc.16
|
|
89
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.16
|
|
90
|
+
- @modern-js/plugin-analyze@1.0.0-rc.16
|
|
91
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.16
|
|
92
|
+
- @modern-js/plugin-i18n@1.0.0-rc.16
|
|
93
|
+
- @modern-js/webpack@1.0.0-rc.16
|
|
94
|
+
- @modern-js/new-action@1.0.0-rc.16
|
|
95
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.16
|
|
96
|
+
- @modern-js/server@1.0.0-rc.16
|
|
97
|
+
- @modern-js/plugin@1.0.0-rc.16
|
|
98
|
+
- @modern-js/types@1.0.0-rc.16
|
|
99
|
+
- @modern-js/utils@1.0.0-rc.16
|
|
100
|
+
|
|
101
|
+
## 1.0.0-rc.15
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- 224f7fe: fix server route match
|
|
106
|
+
- 30ac27c: feat: add generator package description
|
|
107
|
+
- 204c626: feat: initial
|
|
108
|
+
- Updated dependencies [224f7fe]
|
|
109
|
+
- Updated dependencies [30ac27c]
|
|
110
|
+
- Updated dependencies [204c626]
|
|
111
|
+
- @modern-js/core@1.0.0-rc.15
|
|
112
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.15
|
|
113
|
+
- @modern-js/plugin-analyze@1.0.0-rc.15
|
|
114
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.15
|
|
115
|
+
- @modern-js/plugin-i18n@1.0.0-rc.15
|
|
116
|
+
- @modern-js/webpack@1.0.0-rc.15
|
|
117
|
+
- @modern-js/new-action@1.0.0-rc.15
|
|
118
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.15
|
|
119
|
+
- @modern-js/server@1.0.0-rc.15
|
|
120
|
+
- @modern-js/plugin@1.0.0-rc.15
|
|
121
|
+
- @modern-js/types@1.0.0-rc.15
|
|
122
|
+
- @modern-js/utils@1.0.0-rc.15
|
|
123
|
+
|
|
3
124
|
## 1.0.0-rc.14
|
|
4
125
|
|
|
5
126
|
### Patch Changes
|
package/dist/js/modern/index.js
CHANGED
|
@@ -5,6 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
7
|
import { createPlugin, defineConfig, usePlugins, cli } from '@modern-js/core';
|
|
8
|
+
import { upath } from '@modern-js/utils';
|
|
8
9
|
import { lifecycle } from "./lifecycle";
|
|
9
10
|
import { i18n, localeKeys } from "./locale";
|
|
10
11
|
import { getLocaleLanguage } from "./utils/language";
|
|
@@ -12,7 +13,7 @@ import { start } from "./commands/start";
|
|
|
12
13
|
import { dev } from "./commands/dev";
|
|
13
14
|
export { defineConfig }; // eslint-disable-next-line react-hooks/rules-of-hooks
|
|
14
15
|
|
|
15
|
-
usePlugins([require.resolve('@modern-js/plugin-analyze/cli'), require.resolve('@modern-js/plugin-fast-refresh/cli'), require.resolve('@modern-js/plugin-polyfill/cli')]);
|
|
16
|
+
usePlugins([upath.normalizeSafe(require.resolve('@modern-js/plugin-analyze/cli')), upath.normalizeSafe(require.resolve('@modern-js/plugin-fast-refresh/cli')), upath.normalizeSafe(require.resolve('@modern-js/plugin-polyfill/cli'))]);
|
|
16
17
|
export default createPlugin(() => {
|
|
17
18
|
const locale = getLocaleLanguage();
|
|
18
19
|
i18n.changeLanguage({
|
|
@@ -4,7 +4,7 @@ export const printInstructions = async (appContext, config) => {
|
|
|
4
4
|
let message = prettyInstructions(appContext, config);
|
|
5
5
|
|
|
6
6
|
if (isDev()) {
|
|
7
|
-
message += `\n${chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build,
|
|
7
|
+
message += `\n${chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build, execute build command.`].join('\n'))}`;
|
|
8
8
|
} // call beforePrintInstructions hook.
|
|
9
9
|
|
|
10
10
|
|
package/dist/js/node/index.js
CHANGED
|
@@ -13,6 +13,8 @@ Object.defineProperty(exports, "defineConfig", {
|
|
|
13
13
|
|
|
14
14
|
var _core = require("@modern-js/core");
|
|
15
15
|
|
|
16
|
+
var _utils = require("@modern-js/utils");
|
|
17
|
+
|
|
16
18
|
var _lifecycle = require("./lifecycle");
|
|
17
19
|
|
|
18
20
|
var _locale = require("./locale");
|
|
@@ -34,7 +36,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
34
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
37
|
|
|
36
38
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
37
|
-
(0, _core.usePlugins)([require.resolve('@modern-js/plugin-analyze/cli'), require.resolve('@modern-js/plugin-fast-refresh/cli'), require.resolve('@modern-js/plugin-polyfill/cli')]);
|
|
39
|
+
(0, _core.usePlugins)([_utils.upath.normalizeSafe(require.resolve('@modern-js/plugin-analyze/cli')), _utils.upath.normalizeSafe(require.resolve('@modern-js/plugin-fast-refresh/cli')), _utils.upath.normalizeSafe(require.resolve('@modern-js/plugin-polyfill/cli'))]);
|
|
38
40
|
|
|
39
41
|
var _default = (0, _core.createPlugin)(() => {
|
|
40
42
|
const locale = (0, _language.getLocaleLanguage)();
|
|
@@ -13,7 +13,7 @@ const printInstructions = async (appContext, config) => {
|
|
|
13
13
|
let message = (0, _utils.prettyInstructions)(appContext, config);
|
|
14
14
|
|
|
15
15
|
if ((0, _utils.isDev)()) {
|
|
16
|
-
message += `\n${_utils.chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build,
|
|
16
|
+
message += `\n${_utils.chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build, execute build command.`].join('\n'))}`;
|
|
17
17
|
} // call beforePrintInstructions hook.
|
|
18
18
|
|
|
19
19
|
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/app-tools",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.19",
|
|
4
4
|
"jsnext:source": "./src/index.ts",
|
|
5
5
|
"types": "./lib/types.d.ts",
|
|
6
6
|
"main": "./dist/js/node/index.js",
|
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/runtime": "^7",
|
|
24
|
-
"@modern-js/core": "^1.0.0-rc.
|
|
25
|
-
"@modern-js/types": "^1.0.0-rc.
|
|
26
|
-
"@modern-js/i18n-cli-language-detector": "^1.0.0-rc.
|
|
27
|
-
"@modern-js/new-action": "^1.0.0-rc.
|
|
28
|
-
"@modern-js/plugin": "^1.0.0-rc.
|
|
29
|
-
"@modern-js/plugin-analyze": "^1.0.0-rc.
|
|
30
|
-
"@modern-js/plugin-fast-refresh": "^1.0.0-rc.
|
|
31
|
-
"@modern-js/plugin-i18n": "^1.0.0-rc.
|
|
32
|
-
"@modern-js/plugin-polyfill": "^1.0.0-rc.
|
|
33
|
-
"@modern-js/server": "^1.0.0-rc.
|
|
34
|
-
"@modern-js/utils": "^1.0.0-rc.
|
|
35
|
-
"@modern-js/webpack": "^1.0.0-rc.
|
|
24
|
+
"@modern-js/core": "^1.0.0-rc.19",
|
|
25
|
+
"@modern-js/types": "^1.0.0-rc.19",
|
|
26
|
+
"@modern-js/i18n-cli-language-detector": "^1.0.0-rc.19",
|
|
27
|
+
"@modern-js/new-action": "^1.0.0-rc.19",
|
|
28
|
+
"@modern-js/plugin": "^1.0.0-rc.19",
|
|
29
|
+
"@modern-js/plugin-analyze": "^1.0.0-rc.19",
|
|
30
|
+
"@modern-js/plugin-fast-refresh": "^1.0.0-rc.19",
|
|
31
|
+
"@modern-js/plugin-i18n": "^1.0.0-rc.19",
|
|
32
|
+
"@modern-js/plugin-polyfill": "^1.0.0-rc.19",
|
|
33
|
+
"@modern-js/server": "^1.0.0-rc.19",
|
|
34
|
+
"@modern-js/utils": "^1.0.0-rc.19",
|
|
35
|
+
"@modern-js/webpack": "^1.0.0-rc.19",
|
|
36
36
|
"webpack": "^5.54.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"@types/react": "^17",
|
|
42
42
|
"@types/react-dom": "^17",
|
|
43
43
|
"typescript": "^4",
|
|
44
|
-
"@modern-js/plugin-testing": "^1.0.0-rc.
|
|
45
|
-
"@modern-js/module-tools": "^1.0.0-rc.
|
|
44
|
+
"@modern-js/plugin-testing": "^1.0.0-rc.19",
|
|
45
|
+
"@modern-js/module-tools": "^1.0.0-rc.19"
|
|
46
46
|
},
|
|
47
47
|
"sideEffects": false,
|
|
48
48
|
"modernConfig": {
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createPlugin, defineConfig, usePlugins, cli } from '@modern-js/core';
|
|
2
|
+
import { upath } from '@modern-js/utils';
|
|
2
3
|
import { lifecycle } from './lifecycle';
|
|
3
4
|
import { i18n, localeKeys } from './locale';
|
|
4
5
|
import { getLocaleLanguage } from './utils/language';
|
|
@@ -9,9 +10,9 @@ export { defineConfig };
|
|
|
9
10
|
|
|
10
11
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
11
12
|
usePlugins([
|
|
12
|
-
require.resolve('@modern-js/plugin-analyze/cli'),
|
|
13
|
-
require.resolve('@modern-js/plugin-fast-refresh/cli'),
|
|
14
|
-
require.resolve('@modern-js/plugin-polyfill/cli'),
|
|
13
|
+
upath.normalizeSafe(require.resolve('@modern-js/plugin-analyze/cli')),
|
|
14
|
+
upath.normalizeSafe(require.resolve('@modern-js/plugin-fast-refresh/cli')),
|
|
15
|
+
upath.normalizeSafe(require.resolve('@modern-js/plugin-polyfill/cli')),
|
|
15
16
|
]);
|
|
16
17
|
|
|
17
18
|
export default createPlugin(
|
|
@@ -11,7 +11,7 @@ export const printInstructions = async (
|
|
|
11
11
|
message += `\n${chalk.cyanBright(
|
|
12
12
|
[
|
|
13
13
|
`Note that the development build is not optimized.`,
|
|
14
|
-
`To create a production build,
|
|
14
|
+
`To create a production build, execute build command.`,
|
|
15
15
|
].join('\n'),
|
|
16
16
|
)}`;
|
|
17
17
|
}
|