@modern-js/base-generator 3.5.0 → 3.6.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 +373 -380
- package/package.json +8 -8
- package/src/index.ts +0 -2
- package/templates/base-template/.gitignore.handlebars +0 -1
- package/templates/base-template/.vscode/extensions.json +2 -3
- package/templates/base-template/.vscode/settings.json +37 -26
- package/templates/base-template/biome.json +34 -0
- package/templates/base-template/.husky/pre-commit +0 -4
- package/templates/base-template/.prettierrc +0 -5
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.
|
|
18
|
+
"version": "3.6.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./src/index.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -24,19 +24,19 @@
|
|
|
24
24
|
"/dist/index.js"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@modern-js/utils": "2.
|
|
27
|
+
"@modern-js/utils": "2.60.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@modern-js/codesmith": "2.4.
|
|
31
|
-
"@modern-js/codesmith-api-app": "2.4.
|
|
30
|
+
"@modern-js/codesmith": "2.4.2",
|
|
31
|
+
"@modern-js/codesmith-api-app": "2.4.2",
|
|
32
32
|
"@types/jest": "^29",
|
|
33
33
|
"@types/node": "^14",
|
|
34
34
|
"jest": "^29",
|
|
35
35
|
"typescript": "^5",
|
|
36
|
-
"@modern-js/generator-common": "3.
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/jest-config": "2.
|
|
36
|
+
"@modern-js/generator-common": "3.6.0",
|
|
37
|
+
"@scripts/build": "2.60.0",
|
|
38
|
+
"@modern-js/generator-utils": "3.6.0",
|
|
39
|
+
"@scripts/jest-config": "2.60.0"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
"recommendations": [
|
|
3
3
|
"styled-components.vscode-styled-components",
|
|
4
4
|
"EditorConfig.editorconfig",
|
|
5
|
-
"dbaeumer.vscode-eslint",
|
|
6
|
-
"esbenp.prettier-vscode",
|
|
7
5
|
"streetsidesoftware.code-spell-checker",
|
|
8
6
|
"codezombiech.gitignore",
|
|
9
7
|
"aaron-bond.better-comments",
|
|
10
8
|
"jasonnutter.search-node-modules",
|
|
11
9
|
"jock.svg",
|
|
12
10
|
"mikestead.dotenv",
|
|
13
|
-
"vscode-icons-team.vscode-icons"
|
|
11
|
+
"vscode-icons-team.vscode-icons",
|
|
12
|
+
"biomejs.biome"
|
|
14
13
|
]
|
|
15
14
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
3
|
".code-workspace": "jsonc",
|
|
4
|
-
".eslintrc": "jsonc",
|
|
5
|
-
".eslintrc*.json": "jsonc",
|
|
6
4
|
".stylelintrc": "jsonc",
|
|
7
5
|
"stylelintrc": "jsonc",
|
|
8
6
|
"README": "markdown"
|
|
@@ -22,16 +20,6 @@
|
|
|
22
20
|
"files.insertFinalNewline": true,
|
|
23
21
|
//
|
|
24
22
|
"cSpell.diagnosticLevel": "Hint",
|
|
25
|
-
"eslint.run": "onType",
|
|
26
|
-
"eslint.probe": [
|
|
27
|
-
"javascript",
|
|
28
|
-
"javascriptreact",
|
|
29
|
-
"typescript",
|
|
30
|
-
"typescriptreact",
|
|
31
|
-
"vue"
|
|
32
|
-
],
|
|
33
|
-
"eslint.format.enable": true,
|
|
34
|
-
"eslint.lintTask.enable": true,
|
|
35
23
|
"javascript.validate.enable": false,
|
|
36
24
|
"typescript.validate.enable": true,
|
|
37
25
|
"css.validate": false,
|
|
@@ -53,24 +41,47 @@
|
|
|
53
41
|
"editor.formatOnSave": true
|
|
54
42
|
},
|
|
55
43
|
"editor.codeActionsOnSave": {
|
|
56
|
-
"
|
|
44
|
+
"quickfix.biome": "explicit"
|
|
45
|
+
},
|
|
46
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
47
|
+
"editor.formatOnSave": true,
|
|
48
|
+
"[typescript]": {
|
|
49
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
50
|
+
"editor.codeActionsOnSave": {
|
|
51
|
+
"quickfix.biome": "explicit",
|
|
52
|
+
"source.organizeImports": "never",
|
|
53
|
+
"source.organizeImports.biome": "explicit"
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
"[typescriptreact]": {
|
|
57
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
58
|
+
"editor.codeActionsOnSave": {
|
|
59
|
+
"quickfix.biome": "explicit",
|
|
60
|
+
"source.organizeImports": "never",
|
|
61
|
+
"source.organizeImports.biome": "explicit"
|
|
62
|
+
},
|
|
57
63
|
},
|
|
58
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
59
|
-
"javascript.format.enable": false,
|
|
60
|
-
"typescript.format.enable": false,
|
|
61
|
-
//
|
|
62
|
-
"json.format.enable": false,
|
|
63
64
|
"[json]": {
|
|
64
|
-
"editor.
|
|
65
|
-
"editor.formatOnType": true,
|
|
66
|
-
"editor.formatOnPaste": true,
|
|
67
|
-
"editor.formatOnSave": true
|
|
65
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
68
66
|
},
|
|
69
67
|
"[jsonc]": {
|
|
70
|
-
"editor.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"editor.
|
|
68
|
+
"editor.defaultFormatter": "biomejs.biome"
|
|
69
|
+
},
|
|
70
|
+
"[javascriptreact]": {
|
|
71
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
72
|
+
"editor.codeActionsOnSave": {
|
|
73
|
+
"quickfix.biome": "explicit",
|
|
74
|
+
"source.organizeImports": "never",
|
|
75
|
+
"source.organizeImports.biome": "explicit"
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
"[javascript]": {
|
|
79
|
+
"editor.defaultFormatter": "biomejs.biome",
|
|
80
|
+
"editor.codeActionsOnSave": {
|
|
81
|
+
"quickfix.biome": "explicit",
|
|
82
|
+
"source.organizeImports": "never",
|
|
83
|
+
"source.organizeImports.biome": "explicit"
|
|
84
|
+
},
|
|
74
85
|
},
|
|
75
86
|
"emmet.triggerExpansionOnTab": true,
|
|
76
87
|
"typescript.tsdk": "node_modules/typescript/lib"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
|
3
|
+
"vcs": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"defaultBranch": "main",
|
|
6
|
+
"clientKind": "git",
|
|
7
|
+
"useIgnoreFile": true
|
|
8
|
+
},
|
|
9
|
+
"formatter": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"indentStyle": "space"
|
|
12
|
+
},
|
|
13
|
+
"javascript": {
|
|
14
|
+
"formatter": {
|
|
15
|
+
"quoteStyle": "single",
|
|
16
|
+
"arrowParentheses": "asNeeded",
|
|
17
|
+
"jsxQuoteStyle": "double",
|
|
18
|
+
"lineWidth": 80
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"linter": {
|
|
22
|
+
"enabled": true,
|
|
23
|
+
"rules": {
|
|
24
|
+
"recommended": true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"organizeImports": {
|
|
28
|
+
"enabled": true
|
|
29
|
+
},
|
|
30
|
+
"files": {
|
|
31
|
+
"ignoreUnknown": true,
|
|
32
|
+
"ignore": [".vscode/**/*", "node_modules/**/*", "dist/**/*"]
|
|
33
|
+
}
|
|
34
|
+
}
|