@modern-js/entry-generator 3.6.3 → 3.7.0
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 +508 -62149
- package/package.json +10 -12
- package/src/index.ts +1 -1
- package/templates/routes/index.css +2 -1
package/package.json
CHANGED
|
@@ -15,29 +15,27 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.
|
|
18
|
+
"version": "3.7.0",
|
|
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": "2.60.3"
|
|
27
|
-
},
|
|
28
25
|
"devDependencies": {
|
|
29
|
-
"@modern-js/codesmith": "2.
|
|
30
|
-
"@modern-js/codesmith-
|
|
31
|
-
"@modern-js/codesmith-api-
|
|
26
|
+
"@modern-js/codesmith": "2.6.4",
|
|
27
|
+
"@modern-js/codesmith-utils": "2.6.4",
|
|
28
|
+
"@modern-js/codesmith-api-app": "2.6.4",
|
|
29
|
+
"@modern-js/codesmith-api-handlebars": "2.6.4",
|
|
32
30
|
"@types/jest": "^29",
|
|
33
31
|
"@types/node": "^14",
|
|
34
32
|
"jest": "^29",
|
|
35
33
|
"typescript": "^5",
|
|
36
|
-
"@modern-js/generator-common": "3.
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/jest-config": "2.60.
|
|
40
|
-
"@
|
|
34
|
+
"@modern-js/generator-common": "3.7.0",
|
|
35
|
+
"@modern-js/plugin-i18n": "2.60.4",
|
|
36
|
+
"@modern-js/generator-utils": "3.7.0",
|
|
37
|
+
"@scripts/jest-config": "2.60.4",
|
|
38
|
+
"@scripts/build": "2.60.4"
|
|
41
39
|
},
|
|
42
40
|
"sideEffects": false,
|
|
43
41
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import type { GeneratorContext, GeneratorCore } from '@modern-js/codesmith';
|
|
3
3
|
import { AppAPI } from '@modern-js/codesmith-api-app';
|
|
4
|
+
import { merge } from '@modern-js/codesmith-utils/lodash';
|
|
4
5
|
import {
|
|
5
6
|
i18n as commonI18n,
|
|
6
7
|
getEntrySchema,
|
|
7
8
|
} from '@modern-js/generator-common';
|
|
8
9
|
import { fs, getPackageObj, isTsProject } from '@modern-js/generator-utils';
|
|
9
|
-
import { merge } from '@modern-js/utils/lodash';
|
|
10
10
|
import { i18n, localeKeys } from './locale';
|
|
11
11
|
import { isEmptySource, isSingleEntry } from './utils';
|
|
12
12
|
|
|
@@ -64,7 +64,8 @@ main {
|
|
|
64
64
|
border-radius: 12px;
|
|
65
65
|
padding: 0.6rem 0.9rem;
|
|
66
66
|
font-size: 1.05rem;
|
|
67
|
-
font-family:
|
|
67
|
+
font-family:
|
|
68
|
+
Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
|
68
69
|
Bitstream Vera Sans Mono, Courier New, monospace;
|
|
69
70
|
}
|
|
70
71
|
|