@modern-js/repo-generator 0.0.0-canary-20230303090508 → 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.
Files changed (4) hide show
  1. package/README.md +18 -14
  2. package/dist/index.js +140587 -137384
  3. package/package.json +51 -17
  4. package/src/index.ts +4 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/repo-generator",
3
- "description": "A Progressive React Framework for modern web development.",
3
+ "description": "The meta-framework suite designed from scratch for frontend-focused modern web development.",
4
4
  "homepage": "https://modernjs.dev",
5
5
  "bugs": "https://github.com/modern-js-dev/modern.js/issues",
6
6
  "repository": "modern-js-dev/modern.js",
@@ -11,41 +11,75 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20230303090508",
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": "2.0.4",
24
- "@modern-js/codesmith-api-app": "2.0.4",
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-20230303090508",
30
- "@modern-js/generator-common": "0.0.0-canary-20230303090508",
31
- "@modern-js/generator-plugin": "0.0.0-canary-20230303090508",
32
- "@modern-js/generator-utils": "0.0.0-canary-20230303090508",
33
- "@modern-js/module-generator": "0.0.0-canary-20230303090508",
34
- "@modern-js/monorepo-generator": "0.0.0-canary-20230303090508",
35
- "@modern-js/mwa-generator": "0.0.0-canary-20230303090508",
36
- "@modern-js/utils": "0.0.0-canary-20230303090508",
37
- "@scripts/build": "0.0.0-canary-20230303090508",
38
- "@scripts/jest-config": "0.0.0-canary-20230303090508"
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-lib new",
48
- "build": "modern-lib build",
49
- "test": "jest --passWithNoTests"
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
- getSolutionSchema,
7
+ SolutionSchema,
8
8
  SolutionGenerator,
9
9
  Solution,
10
10
  SolutionDefaultConfig,
11
11
  BaseGenerator,
12
- getMonorepoNewActionSchema,
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.getInputBySchemaFunc(
73
- isMonorepo ? getMonorepoNewActionSchema : getSolutionSchema,
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'