@modern-js/repo-generator 0.0.0-next-20241015030726 → 0.0.0-next-20241015055635
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 +86721 -22595
- package/package.json +14 -12
- package/src/index.ts +1 -14
package/package.json
CHANGED
|
@@ -15,29 +15,31 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-20241015055635",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
22
22
|
"/templates",
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@modern-js/utils": "0.0.0-next-20241015055635"
|
|
27
|
+
},
|
|
25
28
|
"devDependencies": {
|
|
26
|
-
"@modern-js/codesmith
|
|
27
|
-
"@modern-js/codesmith": "2.
|
|
28
|
-
"@modern-js/codesmith-api-app": "2.6.0",
|
|
29
|
+
"@modern-js/codesmith": "2.5.2",
|
|
30
|
+
"@modern-js/codesmith-api-app": "2.5.2",
|
|
29
31
|
"@types/jest": "^29",
|
|
30
32
|
"@types/node": "^14",
|
|
31
33
|
"jest": "^29",
|
|
32
34
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
34
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
35
|
-
"@modern-js/generator
|
|
36
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/
|
|
40
|
-
"@
|
|
35
|
+
"@modern-js/base-generator": "0.0.0-next-20241015055635",
|
|
36
|
+
"@modern-js/generator-common": "0.0.0-next-20241015055635",
|
|
37
|
+
"@modern-js/module-generator": "0.0.0-next-20241015055635",
|
|
38
|
+
"@modern-js/generator-utils": "0.0.0-next-20241015055635",
|
|
39
|
+
"@modern-js/mwa-generator": "0.0.0-next-20241015055635",
|
|
40
|
+
"@modern-js/generator-plugin": "0.0.0-next-20241015055635",
|
|
41
|
+
"@scripts/build": "0.0.0-next-20241015055635",
|
|
42
|
+
"@scripts/jest-config": "0.0.0-next-20241015055635"
|
|
41
43
|
},
|
|
42
44
|
"sideEffects": false,
|
|
43
45
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
|
|
2
2
|
import { AppAPI } from '@modern-js/codesmith-api-app';
|
|
3
|
-
import { merge } from '@modern-js/codesmith-utils/lodash';
|
|
4
3
|
import {
|
|
5
4
|
BaseGenerator,
|
|
6
5
|
type Solution,
|
|
@@ -12,6 +11,7 @@ import {
|
|
|
12
11
|
} from '@modern-js/generator-common';
|
|
13
12
|
import { GeneratorPlugin } from '@modern-js/generator-plugin';
|
|
14
13
|
import { getGeneratorPath } from '@modern-js/generator-utils';
|
|
14
|
+
import { merge } from '@modern-js/utils/lodash';
|
|
15
15
|
|
|
16
16
|
const mergeDefaultConfig = (context: GeneratorContext) => {
|
|
17
17
|
const { defaultSolution } = context.config;
|
|
@@ -90,18 +90,6 @@ const handlePlugin = async (
|
|
|
90
90
|
export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
91
91
|
process.setMaxListeners(20);
|
|
92
92
|
|
|
93
|
-
const { distTag } = context.config;
|
|
94
|
-
|
|
95
|
-
// avoid create tools version is older
|
|
96
|
-
await generator.prepareGlobal();
|
|
97
|
-
await generator.prepareGenerators([
|
|
98
|
-
`@modern-js/repo-generator@${distTag || 'latest'}`,
|
|
99
|
-
`@modern-js/base-generator@${distTag || 'latest'}`,
|
|
100
|
-
`@modern-js/mwa-generator@${distTag || 'latest'}`,
|
|
101
|
-
`@modern-js/entry-generator@${distTag || 'latest'}`,
|
|
102
|
-
`@modern-js/module-generator@${distTag || 'latest'}`,
|
|
103
|
-
]);
|
|
104
|
-
|
|
105
93
|
const appApi = new AppAPI(context, generator);
|
|
106
94
|
|
|
107
95
|
const { locale } = context.config;
|
|
@@ -111,7 +99,6 @@ export default async (context: GeneratorContext, generator: GeneratorCore) => {
|
|
|
111
99
|
if (!(await appApi.checkEnvironment())) {
|
|
112
100
|
process.exit(1);
|
|
113
101
|
}
|
|
114
|
-
|
|
115
102
|
generator.logger.debug(`🚀 [Start Run Repo Generator]`);
|
|
116
103
|
generator.logger.debug(
|
|
117
104
|
'💡 [Current Config]:',
|