create-weapp-vite 2.0.67 → 2.0.68
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-D5i9wzVM.js → src-DmN_mq6C.js} +2 -2
- package/package.json +1 -1
- package/templates/default/.vscode/extensions.json +6 -0
- package/templates/default/.vscode/settings.json +8 -2
- package/templates/default/eslint.config.js +6 -0
- package/templates/default/package.json +8 -0
- package/templates/default/stylelint.config.js +5 -0
- package/templates/lib/.vscode/extensions.json +6 -0
- package/templates/lib/.vscode/settings.json +8 -2
- package/templates/lib/eslint.config.js +7 -0
- package/templates/lib/package.json +9 -1
- package/templates/lib/stylelint.config.js +5 -0
- package/templates/tailwindcss/.vscode/extensions.json +6 -0
- package/templates/tailwindcss/.vscode/settings.json +8 -2
- package/templates/tailwindcss/eslint.config.js +6 -0
- package/templates/tailwindcss/package.json +8 -0
- package/templates/tailwindcss/stylelint.config.js +5 -0
- package/templates/tdesign/.vscode/extensions.json +6 -0
- package/templates/tdesign/.vscode/settings.json +8 -2
- package/templates/tdesign/eslint.config.js +6 -0
- package/templates/tdesign/package.json +8 -0
- package/templates/tdesign/stylelint.config.js +5 -0
- package/templates/vant/.vscode/extensions.json +6 -0
- package/templates/vant/.vscode/settings.json +8 -2
- package/templates/vant/eslint.config.js +6 -0
- package/templates/vant/package.json +8 -0
- package/templates/vant/stylelint.config.js +5 -0
- package/templates/wevu/.vscode/extensions.json +6 -0
- package/templates/wevu/.vscode/settings.json +8 -2
- package/templates/wevu/eslint.config.js +7 -0
- package/templates/wevu/package.json +8 -0
- package/templates/wevu/stylelint.config.js +5 -0
- package/templates/wevu-tdesign/.vscode/extensions.json +6 -0
- package/templates/wevu-tdesign/.vscode/settings.json +8 -2
- package/templates/wevu-tdesign/eslint.config.js +7 -0
- package/templates/wevu-tdesign/package.json +8 -0
- package/templates/wevu-tdesign/stylelint.config.js +5 -0
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as TemplateName, t as createProject } from "./src-
|
|
1
|
+
import { n as TemplateName, t as createProject } from "./src-DmN_mq6C.js";
|
|
2
2
|
export { TemplateName, createProject };
|
|
@@ -4,10 +4,10 @@ import fs from "fs-extra";
|
|
|
4
4
|
import path from "pathe";
|
|
5
5
|
import https from "node:https";
|
|
6
6
|
//#region ../weapp-vite/package.json
|
|
7
|
-
var version$1 = "6.
|
|
7
|
+
var version$1 = "6.12.0";
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region ../wevu/package.json
|
|
10
|
-
var version = "6.
|
|
10
|
+
var version = "6.12.0";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/enums.ts
|
|
13
13
|
let TemplateName = /* @__PURE__ */ function(TemplateName) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
|
-
"*.wxml": "html"
|
|
3
|
+
"*.wxml": "html",
|
|
4
|
+
"*.wxss": "css"
|
|
4
5
|
},
|
|
5
6
|
"html.customData": [
|
|
6
7
|
"./.weapp-vite/mini-program.html-data.json"
|
|
7
8
|
],
|
|
8
9
|
"tailwindCSS.includeLanguages": {
|
|
9
10
|
"wxml": "html"
|
|
10
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"stylelint.validate": [
|
|
13
|
+
"css",
|
|
14
|
+
"scss",
|
|
15
|
+
"vue"
|
|
16
|
+
]
|
|
11
17
|
}
|
|
@@ -19,13 +19,21 @@
|
|
|
19
19
|
"dev": "weapp-vite dev",
|
|
20
20
|
"dev:open": "weapp-vite dev -o",
|
|
21
21
|
"build": "weapp-vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
22
24
|
"open": "weapp-vite open",
|
|
25
|
+
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
|
+
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
23
27
|
"g": "weapp-vite generate",
|
|
24
28
|
"postinstall": "weapp-vite prepare"
|
|
25
29
|
},
|
|
26
30
|
"devDependencies": {
|
|
31
|
+
"@icebreakers/eslint-config": "^2.1.0",
|
|
32
|
+
"@icebreakers/stylelint-config": "^2.2.0",
|
|
33
|
+
"eslint": "^10.1.0",
|
|
27
34
|
"miniprogram-api-typings": "catalog:",
|
|
28
35
|
"sass": "catalog:",
|
|
36
|
+
"stylelint": "^17.6.0",
|
|
29
37
|
"typescript": "catalog:",
|
|
30
38
|
"weapp-vite": "workspace:*"
|
|
31
39
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
|
-
"*.wxml": "html"
|
|
3
|
+
"*.wxml": "html",
|
|
4
|
+
"*.wxss": "css"
|
|
4
5
|
},
|
|
5
6
|
"html.customData": [
|
|
6
7
|
"./.weapp-vite/mini-program.html-data.json"
|
|
7
8
|
],
|
|
8
9
|
"tailwindCSS.includeLanguages": {
|
|
9
10
|
"wxml": "html"
|
|
10
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"stylelint.validate": [
|
|
13
|
+
"css",
|
|
14
|
+
"scss",
|
|
15
|
+
"vue"
|
|
16
|
+
]
|
|
11
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite-lib-template",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"description": "weapp-vite 组件库(lib 模式)模板",
|
|
7
7
|
"author": "ice breaker <1324318532@qq.com>",
|
|
@@ -20,7 +20,11 @@
|
|
|
20
20
|
"dev:open": "weapp-vite dev -o",
|
|
21
21
|
"build": "weapp-vite build",
|
|
22
22
|
"build:lib": "weapp-vite build --config weapp-vite.lib.config.ts",
|
|
23
|
+
"lint": "eslint .",
|
|
24
|
+
"lint:fix": "eslint . --fix",
|
|
23
25
|
"open": "weapp-vite open",
|
|
26
|
+
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
27
|
+
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
24
28
|
"g": "weapp-vite generate",
|
|
25
29
|
"postinstall": "weapp-vite prepare"
|
|
26
30
|
},
|
|
@@ -28,8 +32,12 @@
|
|
|
28
32
|
"wevu": "workspace:*"
|
|
29
33
|
},
|
|
30
34
|
"devDependencies": {
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.0",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.0",
|
|
37
|
+
"eslint": "^10.1.0",
|
|
31
38
|
"miniprogram-api-typings": "catalog:",
|
|
32
39
|
"sass": "catalog:",
|
|
40
|
+
"stylelint": "^17.6.0",
|
|
33
41
|
"typescript": "catalog:",
|
|
34
42
|
"weapp-vite": "workspace:*",
|
|
35
43
|
"wevu": "workspace:*"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
|
-
"*.wxml": "html"
|
|
3
|
+
"*.wxml": "html",
|
|
4
|
+
"*.wxss": "css"
|
|
4
5
|
},
|
|
5
6
|
"html.customData": [
|
|
6
7
|
"./.weapp-vite/mini-program.html-data.json"
|
|
@@ -32,5 +33,10 @@
|
|
|
32
33
|
],
|
|
33
34
|
"tailwindCSS.includeLanguages": {
|
|
34
35
|
"wxml": "html"
|
|
35
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"stylelint.validate": [
|
|
38
|
+
"css",
|
|
39
|
+
"scss",
|
|
40
|
+
"vue"
|
|
41
|
+
]
|
|
36
42
|
}
|
|
@@ -19,17 +19,25 @@
|
|
|
19
19
|
"dev": "weapp-vite dev",
|
|
20
20
|
"dev:open": "weapp-vite dev -o",
|
|
21
21
|
"build": "weapp-vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
22
24
|
"open": "weapp-vite open",
|
|
25
|
+
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
|
+
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
23
27
|
"g": "weapp-vite generate",
|
|
24
28
|
"postinstall": "weapp-tw patch && weapp-vite prepare"
|
|
25
29
|
},
|
|
26
30
|
"devDependencies": {
|
|
27
31
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
32
|
+
"@icebreakers/eslint-config": "^2.1.0",
|
|
33
|
+
"@icebreakers/stylelint-config": "^2.2.0",
|
|
28
34
|
"@iconify-json/mdi": "catalog:",
|
|
29
35
|
"autoprefixer": "catalog:",
|
|
36
|
+
"eslint": "^10.1.0",
|
|
30
37
|
"miniprogram-api-typings": "catalog:",
|
|
31
38
|
"postcss": "catalog:",
|
|
32
39
|
"sass": "catalog:",
|
|
40
|
+
"stylelint": "^17.6.0",
|
|
33
41
|
"tailwindcss": "catalog:tailwind3",
|
|
34
42
|
"typescript": "catalog:",
|
|
35
43
|
"weapp-tailwindcss": "catalog:",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
|
-
"*.wxml": "html"
|
|
3
|
+
"*.wxml": "html",
|
|
4
|
+
"*.wxss": "css"
|
|
4
5
|
},
|
|
5
6
|
"html.customData": [
|
|
6
7
|
"./.weapp-vite/mini-program.html-data.json"
|
|
@@ -32,5 +33,10 @@
|
|
|
32
33
|
],
|
|
33
34
|
"tailwindCSS.includeLanguages": {
|
|
34
35
|
"wxml": "html"
|
|
35
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"stylelint.validate": [
|
|
38
|
+
"css",
|
|
39
|
+
"scss",
|
|
40
|
+
"vue"
|
|
41
|
+
]
|
|
36
42
|
}
|
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
"dev": "weapp-vite dev",
|
|
20
20
|
"dev:open": "weapp-vite dev -o",
|
|
21
21
|
"build": "weapp-vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
22
24
|
"open": "weapp-vite open",
|
|
25
|
+
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
|
+
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
23
27
|
"g": "weapp-vite generate",
|
|
24
28
|
"postinstall": "weapp-tw patch && weapp-vite prepare"
|
|
25
29
|
},
|
|
@@ -28,11 +32,15 @@
|
|
|
28
32
|
},
|
|
29
33
|
"devDependencies": {
|
|
30
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.0",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.0",
|
|
31
37
|
"@iconify-json/mdi": "catalog:",
|
|
32
38
|
"autoprefixer": "catalog:",
|
|
39
|
+
"eslint": "^10.1.0",
|
|
33
40
|
"miniprogram-api-typings": "catalog:",
|
|
34
41
|
"postcss": "catalog:",
|
|
35
42
|
"sass": "catalog:",
|
|
43
|
+
"stylelint": "^17.6.0",
|
|
36
44
|
"tailwindcss": "catalog:tailwind3",
|
|
37
45
|
"typescript": "catalog:",
|
|
38
46
|
"weapp-tailwindcss": "catalog:",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
|
-
"*.wxml": "html"
|
|
3
|
+
"*.wxml": "html",
|
|
4
|
+
"*.wxss": "css"
|
|
4
5
|
},
|
|
5
6
|
"html.customData": [
|
|
6
7
|
"./.weapp-vite/mini-program.html-data.json"
|
|
@@ -32,5 +33,10 @@
|
|
|
32
33
|
],
|
|
33
34
|
"tailwindCSS.includeLanguages": {
|
|
34
35
|
"wxml": "html"
|
|
35
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"stylelint.validate": [
|
|
38
|
+
"css",
|
|
39
|
+
"scss",
|
|
40
|
+
"vue"
|
|
41
|
+
]
|
|
36
42
|
}
|
|
@@ -19,7 +19,11 @@
|
|
|
19
19
|
"dev": "weapp-vite dev",
|
|
20
20
|
"dev:open": "weapp-vite dev -o",
|
|
21
21
|
"build": "weapp-vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
22
24
|
"open": "weapp-vite open",
|
|
25
|
+
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
26
|
+
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
23
27
|
"g": "weapp-vite generate",
|
|
24
28
|
"postinstall": "weapp-tw patch && weapp-vite prepare"
|
|
25
29
|
},
|
|
@@ -28,11 +32,15 @@
|
|
|
28
32
|
},
|
|
29
33
|
"devDependencies": {
|
|
30
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.0",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.0",
|
|
31
37
|
"@iconify-json/mdi": "catalog:",
|
|
32
38
|
"autoprefixer": "catalog:",
|
|
39
|
+
"eslint": "^10.1.0",
|
|
33
40
|
"miniprogram-api-typings": "catalog:",
|
|
34
41
|
"postcss": "catalog:",
|
|
35
42
|
"sass": "catalog:",
|
|
43
|
+
"stylelint": "^17.6.0",
|
|
36
44
|
"tailwindcss": "catalog:tailwind3",
|
|
37
45
|
"typescript": "catalog:",
|
|
38
46
|
"weapp-tailwindcss": "catalog:",
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
|
-
"*.wxml": "html"
|
|
3
|
+
"*.wxml": "html",
|
|
4
|
+
"*.wxss": "css"
|
|
4
5
|
},
|
|
5
6
|
"html.customData": [
|
|
6
7
|
"./.weapp-vite/mini-program.html-data.json"
|
|
7
8
|
],
|
|
8
9
|
"tailwindCSS.includeLanguages": {
|
|
9
10
|
"wxml": "html"
|
|
10
|
-
}
|
|
11
|
+
},
|
|
12
|
+
"stylelint.validate": [
|
|
13
|
+
"css",
|
|
14
|
+
"scss",
|
|
15
|
+
"vue"
|
|
16
|
+
]
|
|
11
17
|
}
|
|
@@ -19,12 +19,20 @@
|
|
|
19
19
|
"dev": "weapp-vite dev",
|
|
20
20
|
"dev:open": "weapp-vite dev -o",
|
|
21
21
|
"build": "weapp-vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
22
24
|
"typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
|
|
23
25
|
"open": "weapp-vite open",
|
|
26
|
+
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
27
|
+
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
24
28
|
"postinstall": "weapp-vite prepare"
|
|
25
29
|
},
|
|
26
30
|
"devDependencies": {
|
|
31
|
+
"@icebreakers/eslint-config": "^2.1.0",
|
|
32
|
+
"@icebreakers/stylelint-config": "^2.2.0",
|
|
33
|
+
"eslint": "^10.1.0",
|
|
27
34
|
"miniprogram-api-typings": "catalog:",
|
|
35
|
+
"stylelint": "^17.6.0",
|
|
28
36
|
"typescript": "catalog:",
|
|
29
37
|
"vue-tsc": "catalog:",
|
|
30
38
|
"weapp-vite": "workspace:*",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files.associations": {
|
|
3
|
-
"*.wxml": "html"
|
|
3
|
+
"*.wxml": "html",
|
|
4
|
+
"*.wxss": "css"
|
|
4
5
|
},
|
|
5
6
|
"html.customData": [
|
|
6
7
|
"./.weapp-vite/mini-program.html-data.json"
|
|
@@ -32,5 +33,10 @@
|
|
|
32
33
|
],
|
|
33
34
|
"tailwindCSS.includeLanguages": {
|
|
34
35
|
"wxml": "html"
|
|
35
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"stylelint.validate": [
|
|
38
|
+
"css",
|
|
39
|
+
"scss",
|
|
40
|
+
"vue"
|
|
41
|
+
]
|
|
36
42
|
}
|
|
@@ -19,8 +19,12 @@
|
|
|
19
19
|
"dev": "weapp-vite dev",
|
|
20
20
|
"dev:open": "weapp-vite dev -o",
|
|
21
21
|
"build": "weapp-vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
22
24
|
"typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
|
|
23
25
|
"open": "weapp-vite open",
|
|
26
|
+
"stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
|
|
27
|
+
"stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
|
|
24
28
|
"postinstall": "weapp-tw patch && weapp-vite prepare"
|
|
25
29
|
},
|
|
26
30
|
"dependencies": {
|
|
@@ -28,11 +32,15 @@
|
|
|
28
32
|
},
|
|
29
33
|
"devDependencies": {
|
|
30
34
|
"@egoist/tailwindcss-icons": "catalog:",
|
|
35
|
+
"@icebreakers/eslint-config": "^2.1.0",
|
|
36
|
+
"@icebreakers/stylelint-config": "^2.2.0",
|
|
31
37
|
"@iconify-json/mdi": "catalog:",
|
|
32
38
|
"autoprefixer": "catalog:",
|
|
39
|
+
"eslint": "^10.1.0",
|
|
33
40
|
"miniprogram-api-typings": "catalog:",
|
|
34
41
|
"postcss": "catalog:",
|
|
35
42
|
"sass": "catalog:",
|
|
43
|
+
"stylelint": "^17.6.0",
|
|
36
44
|
"tailwindcss": "catalog:tailwind3",
|
|
37
45
|
"typescript": "catalog:",
|
|
38
46
|
"vue-tsc": "catalog:",
|