@modern-js/mwa-generator 3.0.0-beta.4 → 3.0.0-beta.6
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/dist/index.js +2649 -492
- package/package.json +13 -13
- package/templates/base-template/README.md.handlebars +3 -3
- package/templates/base-template/package.json.handlebars +1 -0
- package/templates/js-template/modern.config.js.handlebars +3 -0
- package/templates/ts-template/modern.config.ts.handlebars +2 -1
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "3.0.0-beta.
|
|
14
|
+
"version": "3.0.0-beta.6",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@babel/runtime": "^7.18.0",
|
|
23
|
-
"@modern-js/codesmith": "2.0.
|
|
24
|
-
"@modern-js/codesmith-api-app": "2.0.
|
|
25
|
-
"@modern-js/codesmith-api-json": "2.0.
|
|
23
|
+
"@modern-js/codesmith": "2.0.3",
|
|
24
|
+
"@modern-js/codesmith-api-app": "2.0.3",
|
|
25
|
+
"@modern-js/codesmith-api-json": "2.0.3",
|
|
26
26
|
"@types/jest": "^27",
|
|
27
27
|
"@types/node": "^14",
|
|
28
28
|
"jest": "^27",
|
|
29
29
|
"typescript": "^4",
|
|
30
|
-
"@modern-js/
|
|
31
|
-
"@modern-js/
|
|
32
|
-
"@modern-js/
|
|
33
|
-
"@modern-js/generator
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@scripts/
|
|
38
|
-
"@scripts/
|
|
30
|
+
"@modern-js/dependence-generator": "3.0.0-beta.6",
|
|
31
|
+
"@modern-js/generator-utils": "3.0.0-beta.6",
|
|
32
|
+
"@modern-js/generator-common": "3.0.0-beta.6",
|
|
33
|
+
"@modern-js/packages-generator": "3.0.0-beta.6",
|
|
34
|
+
"@modern-js/plugin-i18n": "2.0.0-beta.7",
|
|
35
|
+
"@modern-js/base-generator": "3.0.0-beta.6",
|
|
36
|
+
"@modern-js/entry-generator": "3.0.0-beta.6",
|
|
37
|
+
"@scripts/jest-config": "2.0.0-beta.7",
|
|
38
|
+
"@scripts/build": "2.0.0-beta.7"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Your
|
|
1
|
+
# Your App
|
|
2
2
|
|
|
3
3
|
{{#unless isMonorepoSubProject}}
|
|
4
4
|
## Prerequisites
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
其他
|
|
25
25
|
|
|
26
26
|
```
|
|
27
|
-
{{packageManager}} build #
|
|
28
|
-
{{packageManager}}
|
|
27
|
+
{{packageManager}} build # 按生产环境的要求,构建项目
|
|
28
|
+
{{packageManager}} serve # 按生产环境的要求,运行项目
|
|
29
29
|
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineConfig } from '@modern-js/app-tools';
|
|
1
|
+
import AppToolsPlugin, { defineConfig } from '@modern-js/app-tools';
|
|
2
2
|
|
|
3
3
|
// https://modernjs.dev/docs/apis/app/config
|
|
4
4
|
export default defineConfig({
|
|
@@ -6,4 +6,5 @@ export default defineConfig({
|
|
|
6
6
|
router: true,
|
|
7
7
|
state: true,
|
|
8
8
|
},
|
|
9
|
+
plugins: [AppToolsPlugin()],
|
|
9
10
|
});
|