@modern-js/repo-generator 0.0.0-canary-7e478ef → 0.0.0-canary-20231031023735
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/README.md +18 -14
- package/dist/index.js +140587 -137384
- package/package.json +53 -19
- package/src/index.ts +4 -7
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/repo-generator",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "The meta-framework suite designed from scratch for frontend-focused modern web development.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
|
-
"bugs": "https://github.com/
|
|
6
|
-
"repository": "
|
|
5
|
+
"bugs": "https://github.com/modern-js-dev/modern.js/issues",
|
|
6
|
+
"repository": "modern-js-dev/modern.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
@@ -11,41 +11,75 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-canary-
|
|
14
|
+
"version": "0.0.0-canary-20231031023735",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
18
18
|
"/templates",
|
|
19
19
|
"/dist/index.js"
|
|
20
20
|
],
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"vm2": "^3.9.2"
|
|
23
|
+
},
|
|
21
24
|
"devDependencies": {
|
|
22
25
|
"@babel/runtime": "^7.18.0",
|
|
23
|
-
"@modern-js/codesmith": "
|
|
24
|
-
"@modern-js/codesmith-api-app": "
|
|
26
|
+
"@modern-js/codesmith": "1.6.4",
|
|
27
|
+
"@modern-js/codesmith-api-app": "1.6.4",
|
|
25
28
|
"@types/jest": "^27",
|
|
26
29
|
"@types/node": "^14",
|
|
27
30
|
"jest": "^27",
|
|
28
31
|
"typescript": "^4",
|
|
29
|
-
"@modern-js/base-generator": "0.0.0-canary-
|
|
30
|
-
"@modern-js/generator-common": "0.0.0-canary-
|
|
31
|
-
"@modern-js/generator-plugin": "0.0.0-canary-
|
|
32
|
-
"@modern-js/generator-utils": "0.0.0-canary-
|
|
33
|
-
"@modern-js/module-generator": "0.0.0-canary-
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@scripts/jest-config": "0.0.0-canary-
|
|
32
|
+
"@modern-js/base-generator": "0.0.0-canary-20231031023735",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-canary-20231031023735",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-canary-20231031023735",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-canary-20231031023735",
|
|
36
|
+
"@modern-js/module-generator": "0.0.0-canary-20231031023735",
|
|
37
|
+
"@modern-js/mwa-generator": "0.0.0-canary-20231031023735",
|
|
38
|
+
"@modern-js/monorepo-generator": "0.0.0-canary-20231031023735",
|
|
39
|
+
"@scripts/build": "0.0.0-canary-20231031023735",
|
|
40
|
+
"@modern-js/utils": "0.0.0-canary-20231031023735",
|
|
41
|
+
"@scripts/jest-config": "0.0.0-canary-20231031023735"
|
|
39
42
|
},
|
|
40
43
|
"sideEffects": false,
|
|
44
|
+
"modernConfig": {
|
|
45
|
+
"output": {
|
|
46
|
+
"packageMode": "node-js",
|
|
47
|
+
"disableSourceMap": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
41
50
|
"publishConfig": {
|
|
42
51
|
"registry": "https://registry.npmjs.org/",
|
|
43
52
|
"access": "public"
|
|
44
53
|
},
|
|
45
54
|
"types": "./src/index.ts",
|
|
55
|
+
"wireit": {
|
|
56
|
+
"build": {
|
|
57
|
+
"command": "modern build",
|
|
58
|
+
"files": [
|
|
59
|
+
"src/**/*",
|
|
60
|
+
"tsconfig.json",
|
|
61
|
+
"package.json",
|
|
62
|
+
"modern.config.js"
|
|
63
|
+
],
|
|
64
|
+
"output": [
|
|
65
|
+
"dist/**/*",
|
|
66
|
+
"!dist/node/main.js"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"test": {
|
|
70
|
+
"command": "jest --passWithNoTests",
|
|
71
|
+
"files": [
|
|
72
|
+
"src/**/*",
|
|
73
|
+
"tsconfig.json",
|
|
74
|
+
"package.json",
|
|
75
|
+
"tests/**/*"
|
|
76
|
+
],
|
|
77
|
+
"output": []
|
|
78
|
+
}
|
|
79
|
+
},
|
|
46
80
|
"scripts": {
|
|
47
|
-
"new": "modern
|
|
48
|
-
"build": "
|
|
49
|
-
"test": "
|
|
81
|
+
"new": "modern new",
|
|
82
|
+
"build": "wireit",
|
|
83
|
+
"test": "wireit"
|
|
50
84
|
}
|
|
51
85
|
}
|
package/src/index.ts
CHANGED
|
@@ -4,17 +4,16 @@ import { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
|
|
|
4
4
|
import { AppAPI } from '@modern-js/codesmith-api-app';
|
|
5
5
|
import {
|
|
6
6
|
i18n,
|
|
7
|
-
|
|
7
|
+
SolutionSchema,
|
|
8
8
|
SolutionGenerator,
|
|
9
9
|
Solution,
|
|
10
10
|
SolutionDefaultConfig,
|
|
11
11
|
BaseGenerator,
|
|
12
|
-
|
|
12
|
+
MonorepoNewActionSchema,
|
|
13
13
|
SubSolution,
|
|
14
14
|
SubSolutionGenerator,
|
|
15
15
|
MonorepoNewActionConfig,
|
|
16
16
|
getSolutionNameFromSubSolution,
|
|
17
|
-
getScenesSchema,
|
|
18
17
|
} from '@modern-js/generator-common';
|
|
19
18
|
import { GeneratorPlugin } from '@modern-js/generator-plugin';
|
|
20
19
|
|
|
@@ -69,16 +68,14 @@ const handleTemplateFile = async (
|
|
|
69
68
|
) => {
|
|
70
69
|
const { isMonorepo } = context.config;
|
|
71
70
|
|
|
72
|
-
const { solution } = await appApi.
|
|
73
|
-
isMonorepo ?
|
|
71
|
+
const { solution } = await appApi.getInputBySchema(
|
|
72
|
+
isMonorepo ? MonorepoNewActionSchema : SolutionSchema,
|
|
74
73
|
{
|
|
75
74
|
...context.config,
|
|
76
75
|
customPlugin: generatorPlugin?.customPlugin,
|
|
77
76
|
},
|
|
78
77
|
);
|
|
79
78
|
|
|
80
|
-
await appApi.getInputBySchemaFunc(getScenesSchema, context.config);
|
|
81
|
-
|
|
82
79
|
const solutionGenerator =
|
|
83
80
|
// eslint-disable-next-line no-nested-ternary
|
|
84
81
|
solution === 'custom'
|