@modern-js/app-tools 1.0.0-rc.7 → 1.0.1
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 +423 -0
- package/README.md +19 -21
- package/dist/js/modern/commands/build.js +2 -6
- package/dist/js/modern/commands/dev.js +4 -8
- package/dist/js/modern/commands/start.js +3 -7
- package/dist/js/modern/index.js +1 -6
- package/dist/js/modern/utils/createCompiler.js +2 -2
- package/dist/js/modern/utils/printInstructions.js +3 -3
- package/dist/js/node/commands/build.js +2 -6
- package/dist/js/node/commands/dev.js +4 -8
- package/dist/js/node/commands/start.js +3 -7
- package/dist/js/node/index.js +1 -6
- package/dist/js/node/utils/createCompiler.js +2 -2
- package/dist/js/node/utils/printInstructions.js +3 -3
- package/dist/types/index.d.ts +9 -9
- package/dist/types/utils/createCompiler.d.ts +1 -1
- package/dist/types/utils/printInstructions.d.ts +2 -2
- package/lib/types.d.ts +1 -5
- package/package.json +26 -15
- package/src/commands/build.ts +2 -2
- package/src/commands/dev.ts +3 -3
- package/src/commands/start.ts +3 -3
- package/src/index.ts +1 -5
- package/src/utils/createCompiler.ts +2 -2
- package/src/utils/printInstructions.ts +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,428 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- release 1.0.1
|
|
8
|
+
- Updated dependencies [undefined]
|
|
9
|
+
- Updated dependencies [eb00b56]
|
|
10
|
+
- @modern-js/core@1.0.1
|
|
11
|
+
- @modern-js/i18n-cli-language-detector@1.0.1
|
|
12
|
+
- @modern-js/plugin-analyze@1.0.1
|
|
13
|
+
- @modern-js/plugin-fast-refresh@1.0.1
|
|
14
|
+
- @modern-js/plugin-i18n@1.0.1
|
|
15
|
+
- @modern-js/webpack@1.0.1
|
|
16
|
+
- @modern-js/new-action@1.0.2
|
|
17
|
+
- @modern-js/plugin-polyfill@1.0.1
|
|
18
|
+
- @modern-js/server@1.0.1
|
|
19
|
+
- @modern-js/plugin@1.0.1
|
|
20
|
+
- @modern-js/types@1.0.1
|
|
21
|
+
- @modern-js/utils@1.0.1
|
|
22
|
+
|
|
23
|
+
## 1.0.0
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 224f7fe: fix server route match
|
|
28
|
+
- 30ac27c: feat: add generator package description
|
|
29
|
+
- 0fd196e: feat: fix bugs
|
|
30
|
+
- 204c626: feat: initial
|
|
31
|
+
- 63be0a5: fix: #118 #104
|
|
32
|
+
- Updated dependencies [224f7fe]
|
|
33
|
+
- Updated dependencies [30ac27c]
|
|
34
|
+
- Updated dependencies [0fd196e]
|
|
35
|
+
- Updated dependencies [204c626]
|
|
36
|
+
- Updated dependencies [63be0a5]
|
|
37
|
+
- @modern-js/core@1.0.0
|
|
38
|
+
- @modern-js/i18n-cli-language-detector@1.0.0
|
|
39
|
+
- @modern-js/plugin-analyze@1.0.0
|
|
40
|
+
- @modern-js/plugin-fast-refresh@1.0.0
|
|
41
|
+
- @modern-js/plugin-i18n@1.0.0
|
|
42
|
+
- @modern-js/webpack@1.0.0
|
|
43
|
+
- @modern-js/new-action@1.0.0
|
|
44
|
+
- @modern-js/plugin-polyfill@1.0.0
|
|
45
|
+
- @modern-js/server@1.0.0
|
|
46
|
+
- @modern-js/plugin@1.0.0
|
|
47
|
+
- @modern-js/types@1.0.0
|
|
48
|
+
- @modern-js/utils@1.0.0
|
|
49
|
+
|
|
50
|
+
## 1.0.0-rc.23
|
|
51
|
+
|
|
52
|
+
### Patch Changes
|
|
53
|
+
|
|
54
|
+
- 224f7fe: fix server route match
|
|
55
|
+
- 30ac27c: feat: add generator package description
|
|
56
|
+
- 0fd196e: feat: fix bugs
|
|
57
|
+
- 204c626: feat: initial
|
|
58
|
+
- 63be0a5: fix: #118 #104
|
|
59
|
+
- Updated dependencies [224f7fe]
|
|
60
|
+
- Updated dependencies [30ac27c]
|
|
61
|
+
- Updated dependencies [0fd196e]
|
|
62
|
+
- Updated dependencies [204c626]
|
|
63
|
+
- Updated dependencies [63be0a5]
|
|
64
|
+
- @modern-js/core@1.0.0-rc.23
|
|
65
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.23
|
|
66
|
+
- @modern-js/plugin-analyze@1.0.0-rc.23
|
|
67
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.23
|
|
68
|
+
- @modern-js/plugin-i18n@1.0.0-rc.23
|
|
69
|
+
- @modern-js/webpack@1.0.0-rc.23
|
|
70
|
+
- @modern-js/new-action@1.0.0-rc.23
|
|
71
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.23
|
|
72
|
+
- @modern-js/server@1.0.0-rc.23
|
|
73
|
+
- @modern-js/plugin@1.0.0-rc.23
|
|
74
|
+
- @modern-js/types@1.0.0-rc.23
|
|
75
|
+
- @modern-js/utils@1.0.0-rc.23
|
|
76
|
+
|
|
77
|
+
## 1.0.0-rc.22
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- 224f7fe: fix server route match
|
|
82
|
+
- 30ac27c: feat: add generator package description
|
|
83
|
+
- 0fd196e: feat: fix bugs
|
|
84
|
+
- 204c626: feat: initial
|
|
85
|
+
- 63be0a5: fix: #118 #104
|
|
86
|
+
- Updated dependencies [224f7fe]
|
|
87
|
+
- Updated dependencies [30ac27c]
|
|
88
|
+
- Updated dependencies [0fd196e]
|
|
89
|
+
- Updated dependencies [204c626]
|
|
90
|
+
- Updated dependencies [63be0a5]
|
|
91
|
+
- @modern-js/core@1.0.0-rc.22
|
|
92
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.22
|
|
93
|
+
- @modern-js/plugin-analyze@1.0.0-rc.22
|
|
94
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.22
|
|
95
|
+
- @modern-js/plugin-i18n@1.0.0-rc.22
|
|
96
|
+
- @modern-js/webpack@1.0.0-rc.22
|
|
97
|
+
- @modern-js/new-action@1.0.0-rc.22
|
|
98
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.22
|
|
99
|
+
- @modern-js/server@1.0.0-rc.22
|
|
100
|
+
- @modern-js/plugin@1.0.0-rc.22
|
|
101
|
+
- @modern-js/types@1.0.0-rc.22
|
|
102
|
+
- @modern-js/utils@1.0.0-rc.22
|
|
103
|
+
|
|
104
|
+
## 1.0.0-rc.21
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- 224f7fe: fix server route match
|
|
109
|
+
- 30ac27c: feat: add generator package description
|
|
110
|
+
- 0fd196e: feat: fix bugs
|
|
111
|
+
- 204c626: feat: initial
|
|
112
|
+
- 63be0a5: fix: #118 #104
|
|
113
|
+
- Updated dependencies [224f7fe]
|
|
114
|
+
- Updated dependencies [30ac27c]
|
|
115
|
+
- Updated dependencies [0fd196e]
|
|
116
|
+
- Updated dependencies [204c626]
|
|
117
|
+
- Updated dependencies [63be0a5]
|
|
118
|
+
- @modern-js/core@1.0.0-rc.21
|
|
119
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.21
|
|
120
|
+
- @modern-js/plugin-analyze@1.0.0-rc.21
|
|
121
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.21
|
|
122
|
+
- @modern-js/plugin-i18n@1.0.0-rc.21
|
|
123
|
+
- @modern-js/webpack@1.0.0-rc.21
|
|
124
|
+
- @modern-js/new-action@1.0.0-rc.21
|
|
125
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.21
|
|
126
|
+
- @modern-js/server@1.0.0-rc.21
|
|
127
|
+
- @modern-js/plugin@1.0.0-rc.21
|
|
128
|
+
- @modern-js/types@1.0.0-rc.21
|
|
129
|
+
- @modern-js/utils@1.0.0-rc.21
|
|
130
|
+
|
|
131
|
+
## 1.0.0-rc.20
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- 224f7fe: fix server route match
|
|
136
|
+
- 30ac27c: feat: add generator package description
|
|
137
|
+
- feat: fix bugs
|
|
138
|
+
- 204c626: feat: initial
|
|
139
|
+
- 63be0a5: fix: #118 #104
|
|
140
|
+
- Updated dependencies [224f7fe]
|
|
141
|
+
- Updated dependencies [30ac27c]
|
|
142
|
+
- Updated dependencies [undefined]
|
|
143
|
+
- Updated dependencies [204c626]
|
|
144
|
+
- Updated dependencies [63be0a5]
|
|
145
|
+
- @modern-js/core@1.0.0-rc.20
|
|
146
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.20
|
|
147
|
+
- @modern-js/plugin-analyze@1.0.0-rc.20
|
|
148
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.20
|
|
149
|
+
- @modern-js/plugin-i18n@1.0.0-rc.20
|
|
150
|
+
- @modern-js/webpack@1.0.0-rc.20
|
|
151
|
+
- @modern-js/new-action@1.0.0-rc.20
|
|
152
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.20
|
|
153
|
+
- @modern-js/server@1.0.0-rc.20
|
|
154
|
+
- @modern-js/plugin@1.0.0-rc.20
|
|
155
|
+
- @modern-js/types@1.0.0-rc.20
|
|
156
|
+
- @modern-js/utils@1.0.0-rc.20
|
|
157
|
+
|
|
158
|
+
## 1.0.0-rc.19
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- 224f7fe: fix server route match
|
|
163
|
+
- 30ac27c: feat: add generator package description
|
|
164
|
+
- 204c626: feat: initial
|
|
165
|
+
- 63be0a5: fix: #118 #104
|
|
166
|
+
- Updated dependencies [224f7fe]
|
|
167
|
+
- Updated dependencies [30ac27c]
|
|
168
|
+
- Updated dependencies [204c626]
|
|
169
|
+
- Updated dependencies [63be0a5]
|
|
170
|
+
- @modern-js/core@1.0.0-rc.19
|
|
171
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.19
|
|
172
|
+
- @modern-js/plugin-analyze@1.0.0-rc.19
|
|
173
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.19
|
|
174
|
+
- @modern-js/plugin-i18n@1.0.0-rc.19
|
|
175
|
+
- @modern-js/webpack@1.0.0-rc.19
|
|
176
|
+
- @modern-js/new-action@1.0.0-rc.19
|
|
177
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.19
|
|
178
|
+
- @modern-js/server@1.0.0-rc.19
|
|
179
|
+
- @modern-js/plugin@1.0.0-rc.19
|
|
180
|
+
- @modern-js/types@1.0.0-rc.19
|
|
181
|
+
- @modern-js/utils@1.0.0-rc.19
|
|
182
|
+
|
|
183
|
+
## 1.0.0-rc.18
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- 224f7fe: fix server route match
|
|
188
|
+
- 30ac27c: feat: add generator package description
|
|
189
|
+
- 204c626: feat: initial
|
|
190
|
+
- 63be0a5: fix: #118 #104
|
|
191
|
+
- Updated dependencies [224f7fe]
|
|
192
|
+
- Updated dependencies [30ac27c]
|
|
193
|
+
- Updated dependencies [204c626]
|
|
194
|
+
- Updated dependencies [63be0a5]
|
|
195
|
+
- @modern-js/core@1.0.0-rc.18
|
|
196
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.18
|
|
197
|
+
- @modern-js/plugin-analyze@1.0.0-rc.18
|
|
198
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.18
|
|
199
|
+
- @modern-js/plugin-i18n@1.0.0-rc.18
|
|
200
|
+
- @modern-js/webpack@1.0.0-rc.18
|
|
201
|
+
- @modern-js/new-action@1.0.0-rc.18
|
|
202
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.18
|
|
203
|
+
- @modern-js/server@1.0.0-rc.18
|
|
204
|
+
- @modern-js/plugin@1.0.0-rc.18
|
|
205
|
+
- @modern-js/types@1.0.0-rc.18
|
|
206
|
+
- @modern-js/utils@1.0.0-rc.18
|
|
207
|
+
|
|
208
|
+
## 1.0.0-rc.17
|
|
209
|
+
|
|
210
|
+
### Patch Changes
|
|
211
|
+
|
|
212
|
+
- 224f7fe: fix server route match
|
|
213
|
+
- 30ac27c: feat: add generator package description
|
|
214
|
+
- 204c626: feat: initial
|
|
215
|
+
- fix: #118 #104
|
|
216
|
+
- Updated dependencies [224f7fe]
|
|
217
|
+
- Updated dependencies [30ac27c]
|
|
218
|
+
- Updated dependencies [204c626]
|
|
219
|
+
- Updated dependencies [undefined]
|
|
220
|
+
- @modern-js/core@1.0.0-rc.17
|
|
221
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.17
|
|
222
|
+
- @modern-js/plugin-analyze@1.0.0-rc.17
|
|
223
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.17
|
|
224
|
+
- @modern-js/plugin-i18n@1.0.0-rc.17
|
|
225
|
+
- @modern-js/webpack@1.0.0-rc.17
|
|
226
|
+
- @modern-js/new-action@1.0.0-rc.17
|
|
227
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.17
|
|
228
|
+
- @modern-js/server@1.0.0-rc.17
|
|
229
|
+
- @modern-js/plugin@1.0.0-rc.17
|
|
230
|
+
- @modern-js/types@1.0.0-rc.17
|
|
231
|
+
- @modern-js/utils@1.0.0-rc.17
|
|
232
|
+
|
|
233
|
+
## 1.0.0-rc.16
|
|
234
|
+
|
|
235
|
+
### Patch Changes
|
|
236
|
+
|
|
237
|
+
- 224f7fe: fix server route match
|
|
238
|
+
- 30ac27c: feat: add generator package description
|
|
239
|
+
- 204c626: feat: initial
|
|
240
|
+
- Updated dependencies [224f7fe]
|
|
241
|
+
- Updated dependencies [30ac27c]
|
|
242
|
+
- Updated dependencies [204c626]
|
|
243
|
+
- @modern-js/core@1.0.0-rc.16
|
|
244
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.16
|
|
245
|
+
- @modern-js/plugin-analyze@1.0.0-rc.16
|
|
246
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.16
|
|
247
|
+
- @modern-js/plugin-i18n@1.0.0-rc.16
|
|
248
|
+
- @modern-js/webpack@1.0.0-rc.16
|
|
249
|
+
- @modern-js/new-action@1.0.0-rc.16
|
|
250
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.16
|
|
251
|
+
- @modern-js/server@1.0.0-rc.16
|
|
252
|
+
- @modern-js/plugin@1.0.0-rc.16
|
|
253
|
+
- @modern-js/types@1.0.0-rc.16
|
|
254
|
+
- @modern-js/utils@1.0.0-rc.16
|
|
255
|
+
|
|
256
|
+
## 1.0.0-rc.15
|
|
257
|
+
|
|
258
|
+
### Patch Changes
|
|
259
|
+
|
|
260
|
+
- 224f7fe: fix server route match
|
|
261
|
+
- 30ac27c: feat: add generator package description
|
|
262
|
+
- 204c626: feat: initial
|
|
263
|
+
- Updated dependencies [224f7fe]
|
|
264
|
+
- Updated dependencies [30ac27c]
|
|
265
|
+
- Updated dependencies [204c626]
|
|
266
|
+
- @modern-js/core@1.0.0-rc.15
|
|
267
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.15
|
|
268
|
+
- @modern-js/plugin-analyze@1.0.0-rc.15
|
|
269
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.15
|
|
270
|
+
- @modern-js/plugin-i18n@1.0.0-rc.15
|
|
271
|
+
- @modern-js/webpack@1.0.0-rc.15
|
|
272
|
+
- @modern-js/new-action@1.0.0-rc.15
|
|
273
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.15
|
|
274
|
+
- @modern-js/server@1.0.0-rc.15
|
|
275
|
+
- @modern-js/plugin@1.0.0-rc.15
|
|
276
|
+
- @modern-js/types@1.0.0-rc.15
|
|
277
|
+
- @modern-js/utils@1.0.0-rc.15
|
|
278
|
+
|
|
279
|
+
## 1.0.0-rc.14
|
|
280
|
+
|
|
281
|
+
### Patch Changes
|
|
282
|
+
|
|
283
|
+
- 224f7fe: fix server route match
|
|
284
|
+
- 204c626: feat: initial
|
|
285
|
+
- Updated dependencies [224f7fe]
|
|
286
|
+
- Updated dependencies [204c626]
|
|
287
|
+
- @modern-js/core@1.0.0-rc.14
|
|
288
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.14
|
|
289
|
+
- @modern-js/plugin-analyze@1.0.0-rc.14
|
|
290
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.14
|
|
291
|
+
- @modern-js/plugin-i18n@1.0.0-rc.14
|
|
292
|
+
- @modern-js/webpack@1.0.0-rc.14
|
|
293
|
+
- @modern-js/new-action@1.0.0-rc.14
|
|
294
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.14
|
|
295
|
+
- @modern-js/server@1.0.0-rc.14
|
|
296
|
+
- @modern-js/plugin@1.0.0-rc.14
|
|
297
|
+
- @modern-js/types@1.0.0-rc.14
|
|
298
|
+
- @modern-js/utils@1.0.0-rc.14
|
|
299
|
+
|
|
300
|
+
## 1.0.0-rc.13
|
|
301
|
+
|
|
302
|
+
### Patch Changes
|
|
303
|
+
|
|
304
|
+
- 224f7fe: fix server route match
|
|
305
|
+
- 204c626: feat: initial
|
|
306
|
+
- Updated dependencies [224f7fe]
|
|
307
|
+
- Updated dependencies [204c626]
|
|
308
|
+
- @modern-js/core@1.0.0-rc.13
|
|
309
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.13
|
|
310
|
+
- @modern-js/plugin-analyze@1.0.0-rc.13
|
|
311
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.13
|
|
312
|
+
- @modern-js/plugin-i18n@1.0.0-rc.13
|
|
313
|
+
- @modern-js/webpack@1.0.0-rc.13
|
|
314
|
+
- @modern-js/new-action@1.0.0-rc.13
|
|
315
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.13
|
|
316
|
+
- @modern-js/server@1.0.0-rc.13
|
|
317
|
+
- @modern-js/plugin@1.0.0-rc.13
|
|
318
|
+
- @modern-js/types@1.0.0-rc.13
|
|
319
|
+
- @modern-js/utils@1.0.0-rc.13
|
|
320
|
+
|
|
321
|
+
## 1.0.0-rc.12
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- 224f7fe: fix server route match
|
|
326
|
+
- 204c626: feat: initial
|
|
327
|
+
- Updated dependencies [224f7fe]
|
|
328
|
+
- Updated dependencies [204c626]
|
|
329
|
+
- @modern-js/core@1.0.0-rc.12
|
|
330
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.12
|
|
331
|
+
- @modern-js/plugin-analyze@1.0.0-rc.12
|
|
332
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.12
|
|
333
|
+
- @modern-js/plugin-i18n@1.0.0-rc.12
|
|
334
|
+
- @modern-js/webpack@1.0.0-rc.12
|
|
335
|
+
- @modern-js/new-action@1.0.0-rc.12
|
|
336
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.12
|
|
337
|
+
- @modern-js/server@1.0.0-rc.12
|
|
338
|
+
- @modern-js/plugin@1.0.0-rc.12
|
|
339
|
+
- @modern-js/types@1.0.0-rc.12
|
|
340
|
+
- @modern-js/utils@1.0.0-rc.12
|
|
341
|
+
|
|
342
|
+
## 1.0.0-rc.11
|
|
343
|
+
|
|
344
|
+
### Patch Changes
|
|
345
|
+
|
|
346
|
+
- 224f7fe: fix server route match
|
|
347
|
+
- 204c626: feat: initial
|
|
348
|
+
- Updated dependencies [224f7fe]
|
|
349
|
+
- Updated dependencies [204c626]
|
|
350
|
+
- @modern-js/core@1.0.0-rc.11
|
|
351
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.11
|
|
352
|
+
- @modern-js/plugin-analyze@1.0.0-rc.11
|
|
353
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.11
|
|
354
|
+
- @modern-js/plugin-i18n@1.0.0-rc.11
|
|
355
|
+
- @modern-js/webpack@1.0.0-rc.11
|
|
356
|
+
- @modern-js/new-action@1.0.0-rc.11
|
|
357
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.11
|
|
358
|
+
- @modern-js/server@1.0.0-rc.11
|
|
359
|
+
- @modern-js/plugin@1.0.0-rc.11
|
|
360
|
+
- @modern-js/types@1.0.0-rc.11
|
|
361
|
+
- @modern-js/utils@1.0.0-rc.11
|
|
362
|
+
|
|
363
|
+
## 1.0.0-rc.10
|
|
364
|
+
|
|
365
|
+
### Patch Changes
|
|
366
|
+
|
|
367
|
+
- 224f7fe: fix server route match
|
|
368
|
+
- 204c626: feat: initial
|
|
369
|
+
- Updated dependencies [224f7fe]
|
|
370
|
+
- Updated dependencies [204c626]
|
|
371
|
+
- @modern-js/core@1.0.0-rc.10
|
|
372
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.10
|
|
373
|
+
- @modern-js/plugin-analyze@1.0.0-rc.10
|
|
374
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.10
|
|
375
|
+
- @modern-js/plugin-i18n@1.0.0-rc.10
|
|
376
|
+
- @modern-js/webpack@1.0.0-rc.10
|
|
377
|
+
- @modern-js/new-action@1.0.0-rc.10
|
|
378
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.10
|
|
379
|
+
- @modern-js/server@1.0.0-rc.10
|
|
380
|
+
- @modern-js/plugin@1.0.0-rc.10
|
|
381
|
+
- @modern-js/types@1.0.0-rc.10
|
|
382
|
+
- @modern-js/utils@1.0.0-rc.10
|
|
383
|
+
|
|
384
|
+
## 1.0.0-rc.9
|
|
385
|
+
|
|
386
|
+
### Patch Changes
|
|
387
|
+
|
|
388
|
+
- 224f7fe: fix server route match
|
|
389
|
+
- 204c626: feat: initial
|
|
390
|
+
- Updated dependencies [224f7fe]
|
|
391
|
+
- Updated dependencies [204c626]
|
|
392
|
+
- @modern-js/core@1.0.0-rc.9
|
|
393
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.9
|
|
394
|
+
- @modern-js/plugin-analyze@1.0.0-rc.9
|
|
395
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.9
|
|
396
|
+
- @modern-js/plugin-i18n@1.0.0-rc.9
|
|
397
|
+
- @modern-js/webpack@1.0.0-rc.9
|
|
398
|
+
- @modern-js/new-action@1.0.0-rc.9
|
|
399
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.9
|
|
400
|
+
- @modern-js/server@1.0.0-rc.9
|
|
401
|
+
- @modern-js/plugin@1.0.0-rc.9
|
|
402
|
+
- @modern-js/types@1.0.0-rc.9
|
|
403
|
+
- @modern-js/utils@1.0.0-rc.9
|
|
404
|
+
|
|
405
|
+
## 1.0.0-rc.8
|
|
406
|
+
|
|
407
|
+
### Patch Changes
|
|
408
|
+
|
|
409
|
+
- 224f7fe: fix server route match
|
|
410
|
+
- 204c626: feat: initial
|
|
411
|
+
- Updated dependencies [224f7fe]
|
|
412
|
+
- Updated dependencies [204c626]
|
|
413
|
+
- @modern-js/core@1.0.0-rc.8
|
|
414
|
+
- @modern-js/i18n-cli-language-detector@1.0.0-rc.8
|
|
415
|
+
- @modern-js/plugin-analyze@1.0.0-rc.8
|
|
416
|
+
- @modern-js/plugin-fast-refresh@1.0.0-rc.8
|
|
417
|
+
- @modern-js/plugin-i18n@1.0.0-rc.8
|
|
418
|
+
- @modern-js/webpack@1.0.0-rc.8
|
|
419
|
+
- @modern-js/new-action@1.0.0-rc.8
|
|
420
|
+
- @modern-js/plugin-polyfill@1.0.0-rc.8
|
|
421
|
+
- @modern-js/server@1.0.0-rc.8
|
|
422
|
+
- @modern-js/plugin@1.0.0-rc.8
|
|
423
|
+
- @modern-js/types@1.0.0-rc.8
|
|
424
|
+
- @modern-js/utils@1.0.0-rc.8
|
|
425
|
+
|
|
3
426
|
## 1.0.0-rc.7
|
|
4
427
|
|
|
5
428
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,31 +2,29 @@
|
|
|
2
2
|
<p align="center">
|
|
3
3
|
<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>
|
|
4
4
|
</p>
|
|
5
|
+
<p align="center">
|
|
6
|
+
现代 Web 工程体系
|
|
7
|
+
<br/>
|
|
8
|
+
<a href="https://modernjs.dev" target="blank">
|
|
9
|
+
modernjs.dev
|
|
10
|
+
</a>
|
|
11
|
+
</p>
|
|
12
|
+
<p align="center">
|
|
13
|
+
The meta-framework suite designed from scratch for frontend-focused modern web development
|
|
14
|
+
</p>
|
|
5
15
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## 背景
|
|
9
|
-
- [迈入现代 Web 开发](https://zhuanlan.zhihu.com/p/386607009)
|
|
10
|
-
- [现代 Web 开发者问卷调查报告](https://zhuanlan.zhihu.com/p/403206195)
|
|
11
|
-
|
|
12
|
-
## 计划
|
|
13
|
-
|
|
14
|
-
Modern.js 的 1.0.0.rc 版已经发到 npm,目前在做测试改进,README 文档之后统一提供(现阶段加入测试和开发,可以发 [issue](https://github.com/modern-js-dev/modern.js/issues) 留微信联系),完整的文档站计划在10月14日上线
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
# Introduction
|
|
27
17
|
|
|
18
|
+
> 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.
|
|
28
19
|
|
|
20
|
+
- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)
|
|
29
21
|
|
|
22
|
+
## Getting Started
|
|
30
23
|
|
|
24
|
+
- [Quick Start](https://modernjs.dev/docs/start)
|
|
25
|
+
- [Guides](https://modernjs.dev/docs/guides)
|
|
26
|
+
- [API References](https://modernjs.dev/docs/apis)
|
|
31
27
|
|
|
28
|
+
## Contributing
|
|
32
29
|
|
|
30
|
+
- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)
|
|
@@ -59,12 +59,8 @@ export const build = async () => {
|
|
|
59
59
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
} = useResolvedConfigContext();
|
|
65
|
-
const {
|
|
66
|
-
value: appContext
|
|
67
|
-
} = useAppContext();
|
|
62
|
+
const resolvedConfig = useResolvedConfigContext();
|
|
63
|
+
const appContext = useAppContext();
|
|
68
64
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
69
65
|
|
|
70
66
|
const outputPath = appContext.distDirectory;
|
|
@@ -11,12 +11,8 @@ import { createCompiler } from "../utils/createCompiler";
|
|
|
11
11
|
import { createServer } from "../utils/createServer";
|
|
12
12
|
export const dev = async () => {
|
|
13
13
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
} = useAppContext();
|
|
17
|
-
const {
|
|
18
|
-
value: userConfig
|
|
19
|
-
} = useResolvedConfigContext();
|
|
14
|
+
const appContext = useAppContext();
|
|
15
|
+
const userConfig = useResolvedConfigContext();
|
|
20
16
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
21
17
|
|
|
22
18
|
const {
|
|
@@ -35,7 +31,6 @@ export const dev = async () => {
|
|
|
35
31
|
const app = await createServer({
|
|
36
32
|
dev: _objectSpread(_objectSpread({}, {
|
|
37
33
|
client: {
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
39
34
|
port: port.toString(),
|
|
40
35
|
overlay: false,
|
|
41
36
|
logging: 'none',
|
|
@@ -47,7 +42,8 @@ export const dev = async () => {
|
|
|
47
42
|
},
|
|
48
43
|
hot: true,
|
|
49
44
|
liveReload: true,
|
|
50
|
-
port
|
|
45
|
+
port,
|
|
46
|
+
https: userConfig.dev.https
|
|
51
47
|
}), userConfig.tools.devServer),
|
|
52
48
|
compiler,
|
|
53
49
|
pwd: appDirectory,
|
|
@@ -4,12 +4,8 @@ import server from '@modern-js/server';
|
|
|
4
4
|
import { printInstructions } from "../utils/printInstructions";
|
|
5
5
|
export const start = async () => {
|
|
6
6
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
} = useAppContext();
|
|
10
|
-
const {
|
|
11
|
-
value: userConfig
|
|
12
|
-
} = useResolvedConfigContext();
|
|
7
|
+
const appContext = useAppContext();
|
|
8
|
+
const userConfig = useResolvedConfigContext();
|
|
13
9
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
14
10
|
|
|
15
11
|
const {
|
|
@@ -27,6 +23,6 @@ export const start = async () => {
|
|
|
27
23
|
throw err;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
await printInstructions(appContext);
|
|
26
|
+
await printInstructions(appContext, userConfig);
|
|
31
27
|
});
|
|
32
28
|
};
|
package/dist/js/modern/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const prettyTime = stats => {
|
|
|
12
12
|
export const createCompiler = async ({
|
|
13
13
|
webpackConfigs,
|
|
14
14
|
// TODO: params
|
|
15
|
-
userConfig
|
|
15
|
+
userConfig,
|
|
16
16
|
appContext
|
|
17
17
|
}) => {
|
|
18
18
|
try {
|
|
@@ -56,7 +56,7 @@ export const createCompiler = async ({
|
|
|
56
56
|
logger.log(chalk.green(`Compiled successfully in ${prettyTime(statsData)} ms.\n`));
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
await printInstructions(appContext);
|
|
59
|
+
await printInstructions(appContext, userConfig);
|
|
60
60
|
} // eslint-disable-next-line require-atomic-updates
|
|
61
61
|
|
|
62
62
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { prettyInstructions, logger, isDev, chalk } from '@modern-js/utils';
|
|
2
2
|
import { mountHook } from '@modern-js/core';
|
|
3
|
-
export const printInstructions = async appContext => {
|
|
4
|
-
let message = prettyInstructions(appContext);
|
|
3
|
+
export const printInstructions = async (appContext, config) => {
|
|
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
|
|
|
@@ -74,12 +74,8 @@ const build = async () => {
|
|
|
74
74
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
} = (0, _core.useResolvedConfigContext)();
|
|
80
|
-
const {
|
|
81
|
-
value: appContext
|
|
82
|
-
} = (0, _core.useAppContext)();
|
|
77
|
+
const resolvedConfig = (0, _core.useResolvedConfigContext)();
|
|
78
|
+
const appContext = (0, _core.useAppContext)();
|
|
83
79
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
84
80
|
|
|
85
81
|
const outputPath = appContext.distDirectory;
|
|
@@ -23,12 +23,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
23
23
|
|
|
24
24
|
const dev = async () => {
|
|
25
25
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
} = (0, _core.useAppContext)();
|
|
29
|
-
const {
|
|
30
|
-
value: userConfig
|
|
31
|
-
} = (0, _core.useResolvedConfigContext)();
|
|
26
|
+
const appContext = (0, _core.useAppContext)();
|
|
27
|
+
const userConfig = (0, _core.useResolvedConfigContext)();
|
|
32
28
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
33
29
|
|
|
34
30
|
const {
|
|
@@ -49,7 +45,6 @@ const dev = async () => {
|
|
|
49
45
|
const app = await (0, _createServer.createServer)({
|
|
50
46
|
dev: _objectSpread(_objectSpread({}, {
|
|
51
47
|
client: {
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
53
48
|
port: port.toString(),
|
|
54
49
|
overlay: false,
|
|
55
50
|
logging: 'none',
|
|
@@ -61,7 +56,8 @@ const dev = async () => {
|
|
|
61
56
|
},
|
|
62
57
|
hot: true,
|
|
63
58
|
liveReload: true,
|
|
64
|
-
port
|
|
59
|
+
port,
|
|
60
|
+
https: userConfig.dev.https
|
|
65
61
|
}), userConfig.tools.devServer),
|
|
66
62
|
compiler,
|
|
67
63
|
pwd: appDirectory,
|
|
@@ -17,12 +17,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
17
17
|
|
|
18
18
|
const start = async () => {
|
|
19
19
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
} = (0, _core.useAppContext)();
|
|
23
|
-
const {
|
|
24
|
-
value: userConfig
|
|
25
|
-
} = (0, _core.useResolvedConfigContext)();
|
|
20
|
+
const appContext = (0, _core.useAppContext)();
|
|
21
|
+
const userConfig = (0, _core.useResolvedConfigContext)();
|
|
26
22
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
27
23
|
|
|
28
24
|
const {
|
|
@@ -42,7 +38,7 @@ const start = async () => {
|
|
|
42
38
|
throw err;
|
|
43
39
|
}
|
|
44
40
|
|
|
45
|
-
await (0, _printInstructions.printInstructions)(appContext);
|
|
41
|
+
await (0, _printInstructions.printInstructions)(appContext, userConfig);
|
|
46
42
|
});
|
|
47
43
|
};
|
|
48
44
|
|
package/dist/js/node/index.js
CHANGED
|
@@ -71,12 +71,7 @@ var _default = (0, _core.createPlugin)(() => {
|
|
|
71
71
|
},
|
|
72
72
|
|
|
73
73
|
async fileChange() {
|
|
74
|
-
|
|
75
|
-
const shouldRestart = await _core.cli.restart();
|
|
76
|
-
|
|
77
|
-
if (shouldRestart) {
|
|
78
|
-
await (0, _dev.dev)();
|
|
79
|
-
}
|
|
74
|
+
await _core.cli.restart();
|
|
80
75
|
}
|
|
81
76
|
|
|
82
77
|
};
|
|
@@ -24,7 +24,7 @@ const prettyTime = stats => {
|
|
|
24
24
|
const createCompiler = async ({
|
|
25
25
|
webpackConfigs,
|
|
26
26
|
// TODO: params
|
|
27
|
-
userConfig
|
|
27
|
+
userConfig,
|
|
28
28
|
appContext
|
|
29
29
|
}) => {
|
|
30
30
|
try {
|
|
@@ -73,7 +73,7 @@ const createCompiler = async ({
|
|
|
73
73
|
_utils.logger.log(_utils.chalk.green(`Compiled successfully in ${prettyTime(statsData)} ms.\n`));
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
await (0, _printInstructions.printInstructions)(appContext);
|
|
76
|
+
await (0, _printInstructions.printInstructions)(appContext, userConfig);
|
|
77
77
|
} // eslint-disable-next-line require-atomic-updates
|
|
78
78
|
|
|
79
79
|
|
|
@@ -9,11 +9,11 @@ var _utils = require("@modern-js/utils");
|
|
|
9
9
|
|
|
10
10
|
var _core = require("@modern-js/core");
|
|
11
11
|
|
|
12
|
-
const printInstructions = async appContext => {
|
|
13
|
-
let message = (0, _utils.prettyInstructions)(appContext);
|
|
12
|
+
const printInstructions = async (appContext, config) => {
|
|
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/dist/types/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineConfig } from '@modern-js/core';
|
|
2
2
|
export { defineConfig };
|
|
3
3
|
|
|
4
|
-
declare const _default: import("@modern-js/
|
|
5
|
-
config: import("@modern-js/
|
|
6
|
-
validateSchema: import("@modern-js/
|
|
7
|
-
prepare: import("@modern-js/
|
|
8
|
-
commands: import("@modern-js/
|
|
4
|
+
declare const _default: import("@modern-js/core").AsyncPlugin<Partial<import("@modern-js/core").Progresses2Threads<{
|
|
5
|
+
config: import("@modern-js/core").ParallelWorkflow<void, unknown>;
|
|
6
|
+
validateSchema: import("@modern-js/core").ParallelWorkflow<void, unknown>;
|
|
7
|
+
prepare: import("@modern-js/core").AsyncWorkflow<void, void>;
|
|
8
|
+
commands: import("@modern-js/core").AsyncWorkflow<{
|
|
9
9
|
program: import("commander").Command;
|
|
10
10
|
}, void>;
|
|
11
|
-
watchFiles: import("@modern-js/
|
|
12
|
-
fileChange: import("@modern-js/
|
|
11
|
+
watchFiles: import("@modern-js/core").ParallelWorkflow<void, unknown>;
|
|
12
|
+
fileChange: import("@modern-js/core").AsyncWorkflow<{
|
|
13
13
|
filename: string;
|
|
14
14
|
}, void>;
|
|
15
|
-
beforeExit: import("@modern-js/
|
|
16
|
-
} & import("@modern-js/
|
|
15
|
+
beforeExit: import("@modern-js/core").AsyncWorkflow<void, void>;
|
|
16
|
+
} & import("@modern-js/core").ClearDraftProgress<import("@modern-js/core").Hooks>>>>;
|
|
17
17
|
|
|
18
18
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import webpack, { Configuration } from 'webpack';
|
|
|
2
2
|
import { IAppContext, NormalizedConfig } from '@modern-js/core';
|
|
3
3
|
export declare const createCompiler: ({
|
|
4
4
|
webpackConfigs,
|
|
5
|
-
userConfig
|
|
5
|
+
userConfig,
|
|
6
6
|
appContext
|
|
7
7
|
}: {
|
|
8
8
|
webpackConfigs: Configuration[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IAppContext } from '@modern-js/core';
|
|
2
|
-
export declare const printInstructions: (appContext: IAppContext) => Promise<void>;
|
|
1
|
+
import { IAppContext, NormalizedConfig } from '@modern-js/core';
|
|
2
|
+
export declare const printInstructions: (appContext: IAppContext, config: NormalizedConfig) => Promise<void>;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
/// <reference types="react-dom" />
|
|
4
|
-
/// <reference path="
|
|
5
|
-
/// <reference types="@modern-js/plugin-express/types" />
|
|
6
|
-
/// <reference types="@modern-js/plugin-koa/types" />
|
|
7
|
-
/// <reference types="@modern-js/plugin-egg" />
|
|
8
|
-
/// <reference types="@modern-js/plugin-nest" />
|
|
4
|
+
/// <reference path="../dist/types/index.d.ts" />
|
|
9
5
|
|
|
10
6
|
declare namespace NodeJS {
|
|
11
7
|
interface ProcessEnv {
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/app-tools",
|
|
3
|
-
"
|
|
3
|
+
"description": "The meta-framework suite designed from scratch for frontend-focused modern web development.",
|
|
4
|
+
"homepage": "https://modernjs.dev",
|
|
5
|
+
"bugs": "https://github.com/modern-js-dev/modern.js/issues",
|
|
6
|
+
"repository": "modern-js-dev/modern.js",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"react",
|
|
10
|
+
"framework",
|
|
11
|
+
"modern",
|
|
12
|
+
"modern.js"
|
|
13
|
+
],
|
|
14
|
+
"version": "1.0.1",
|
|
4
15
|
"jsnext:source": "./src/index.ts",
|
|
5
16
|
"types": "./lib/types.d.ts",
|
|
6
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -21,18 +32,18 @@
|
|
|
21
32
|
},
|
|
22
33
|
"dependencies": {
|
|
23
34
|
"@babel/runtime": "^7",
|
|
24
|
-
"@modern-js/core": "^1.0.
|
|
25
|
-
"@modern-js/types": "^1.0.
|
|
26
|
-
"@modern-js/i18n-cli-language-detector": "^1.0.
|
|
27
|
-
"@modern-js/new-action": "^1.0.
|
|
28
|
-
"@modern-js/plugin": "^1.0.
|
|
29
|
-
"@modern-js/plugin-analyze": "^1.0.
|
|
30
|
-
"@modern-js/plugin-fast-refresh": "^1.0.
|
|
31
|
-
"@modern-js/plugin-i18n": "^1.0.
|
|
32
|
-
"@modern-js/plugin-polyfill": "^1.0.
|
|
33
|
-
"@modern-js/server": "^1.0.
|
|
34
|
-
"@modern-js/utils": "^1.0.
|
|
35
|
-
"@modern-js/webpack": "^1.0.
|
|
35
|
+
"@modern-js/core": "^1.0.1",
|
|
36
|
+
"@modern-js/types": "^1.0.1",
|
|
37
|
+
"@modern-js/i18n-cli-language-detector": "^1.0.1",
|
|
38
|
+
"@modern-js/new-action": "^1.0.2",
|
|
39
|
+
"@modern-js/plugin": "^1.0.1",
|
|
40
|
+
"@modern-js/plugin-analyze": "^1.0.1",
|
|
41
|
+
"@modern-js/plugin-fast-refresh": "^1.0.1",
|
|
42
|
+
"@modern-js/plugin-i18n": "^1.0.1",
|
|
43
|
+
"@modern-js/plugin-polyfill": "^1.0.1",
|
|
44
|
+
"@modern-js/server": "^1.0.1",
|
|
45
|
+
"@modern-js/utils": "^1.0.1",
|
|
46
|
+
"@modern-js/webpack": "^1.0.1",
|
|
36
47
|
"webpack": "^5.54.0"
|
|
37
48
|
},
|
|
38
49
|
"devDependencies": {
|
|
@@ -41,8 +52,8 @@
|
|
|
41
52
|
"@types/react": "^17",
|
|
42
53
|
"@types/react-dom": "^17",
|
|
43
54
|
"typescript": "^4",
|
|
44
|
-
"@modern-js/plugin-testing": "^1.0.
|
|
45
|
-
"@modern-js/module-tools": "^1.0.
|
|
55
|
+
"@modern-js/plugin-testing": "^1.0.2",
|
|
56
|
+
"@modern-js/module-tools": "^1.0.2"
|
|
46
57
|
},
|
|
47
58
|
"sideEffects": false,
|
|
48
59
|
"modernConfig": {
|
package/src/commands/build.ts
CHANGED
|
@@ -74,8 +74,8 @@ export const build = async () => {
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
77
|
-
const
|
|
78
|
-
const
|
|
77
|
+
const resolvedConfig = useResolvedConfigContext();
|
|
78
|
+
const appContext = useAppContext();
|
|
79
79
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
80
80
|
|
|
81
81
|
const outputPath = appContext.distDirectory;
|
package/src/commands/dev.ts
CHANGED
|
@@ -21,8 +21,8 @@ import { createServer } from '../utils/createServer';
|
|
|
21
21
|
|
|
22
22
|
export const dev = async () => {
|
|
23
23
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
24
|
-
const
|
|
25
|
-
const
|
|
24
|
+
const appContext = useAppContext();
|
|
25
|
+
const userConfig = useResolvedConfigContext();
|
|
26
26
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
27
27
|
|
|
28
28
|
const { appDirectory, distDirectory, port } = appContext;
|
|
@@ -46,7 +46,6 @@ export const dev = async () => {
|
|
|
46
46
|
dev: {
|
|
47
47
|
...{
|
|
48
48
|
client: {
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
50
49
|
port: port!.toString(),
|
|
51
50
|
overlay: false,
|
|
52
51
|
logging: 'none',
|
|
@@ -57,6 +56,7 @@ export const dev = async () => {
|
|
|
57
56
|
hot: true,
|
|
58
57
|
liveReload: true,
|
|
59
58
|
port,
|
|
59
|
+
https: userConfig.dev.https,
|
|
60
60
|
},
|
|
61
61
|
...userConfig.tools.devServer,
|
|
62
62
|
},
|
package/src/commands/start.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { printInstructions } from '../utils/printInstructions';
|
|
|
5
5
|
|
|
6
6
|
export const start = async () => {
|
|
7
7
|
/* eslint-disable react-hooks/rules-of-hooks */
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const appContext = useAppContext();
|
|
9
|
+
const userConfig = useResolvedConfigContext();
|
|
10
10
|
/* eslint-enable react-hooks/rules-of-hooks */
|
|
11
11
|
|
|
12
12
|
const { appDirectory, port } = appContext;
|
|
@@ -25,6 +25,6 @@ export const start = async () => {
|
|
|
25
25
|
if (err) {
|
|
26
26
|
throw err;
|
|
27
27
|
}
|
|
28
|
-
await printInstructions(appContext);
|
|
28
|
+
await printInstructions(appContext, userConfig);
|
|
29
29
|
});
|
|
30
30
|
};
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ const prettyTime = (stats: StatsCompilation) =>
|
|
|
14
14
|
export const createCompiler = async ({
|
|
15
15
|
webpackConfigs,
|
|
16
16
|
// TODO: params
|
|
17
|
-
userConfig
|
|
17
|
+
userConfig,
|
|
18
18
|
appContext,
|
|
19
19
|
}: {
|
|
20
20
|
webpackConfigs: Configuration[];
|
|
@@ -63,7 +63,7 @@ export const createCompiler = async ({
|
|
|
63
63
|
),
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
|
-
await printInstructions(appContext);
|
|
66
|
+
await printInstructions(appContext, userConfig);
|
|
67
67
|
}
|
|
68
68
|
// eslint-disable-next-line require-atomic-updates
|
|
69
69
|
isFirstCompile = false;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { prettyInstructions, logger, isDev, chalk } from '@modern-js/utils';
|
|
2
|
-
import { mountHook, IAppContext } from '@modern-js/core';
|
|
2
|
+
import { mountHook, IAppContext, NormalizedConfig } from '@modern-js/core';
|
|
3
3
|
|
|
4
|
-
export const printInstructions = async (
|
|
5
|
-
|
|
4
|
+
export const printInstructions = async (
|
|
5
|
+
appContext: IAppContext,
|
|
6
|
+
config: NormalizedConfig,
|
|
7
|
+
) => {
|
|
8
|
+
let message = prettyInstructions(appContext, config);
|
|
6
9
|
|
|
7
10
|
if (isDev()) {
|
|
8
11
|
message += `\n${chalk.cyanBright(
|
|
9
12
|
[
|
|
10
13
|
`Note that the development build is not optimized.`,
|
|
11
|
-
`To create a production build,
|
|
14
|
+
`To create a production build, execute build command.`,
|
|
12
15
|
].join('\n'),
|
|
13
16
|
)}`;
|
|
14
17
|
}
|