create-weapp-vite 2.3.49 → 2.3.51

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-BDVRIvry.js";
1
+ import { n as RECOMMENDED_SKILLS_INSTALL_COMMAND, t as createProject } from "./src-CeEwZYEI.js";
2
2
  import logger from "@weapp-core/logger";
3
3
  import { fs } from "@weapp-core/shared/fs";
4
4
  import process from "node:process";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { r as TemplateName, t as createProject } from "./src-BDVRIvry.js";
1
+ import { r as TemplateName, t as createProject } from "./src-CeEwZYEI.js";
2
2
  export { TemplateName, createProject };
@@ -6,13 +6,13 @@ import https from "node:https";
6
6
  import { spawn } from "node:child_process";
7
7
  import process from "node:process";
8
8
  //#region ../../packages-runtime/wevu/package.json
9
- var version$2 = "6.16.42";
9
+ var version$2 = "6.16.44";
10
10
  //#endregion
11
11
  //#region ../dashboard/package.json
12
- var version$1 = "6.16.42";
12
+ var version$1 = "6.16.44";
13
13
  //#endregion
14
14
  //#region ../weapp-vite/package.json
15
- var version = "6.16.42";
15
+ var version = "6.16.44";
16
16
  //#endregion
17
17
  //#region src/enums.ts
18
18
  let TemplateName = /* @__PURE__ */ function(TemplateName) {
@@ -108,15 +108,16 @@ const TEMPLATE_CATALOG = {
108
108
  "@icebreakers/eslint-config": "^5.0.4",
109
109
  "@icebreakers/stylelint-config": "^4.0.2",
110
110
  "@iconify-json/mdi": "^1.2.3",
111
+ "@iconify/tailwind4": "^1.2.3",
111
112
  "@mini-types/alipay": "^3.0.14",
112
- "@tailwindcss/vite": "^4.3.0",
113
- "@types/node": "^25.9.2",
113
+ "@tailwindcss/vite": "^4.3.1",
114
+ "@types/node": "^25.9.3",
114
115
  "@types/semver": "^7.7.1",
115
116
  "@vant/weapp": "^1.11.7",
116
117
  "@vitejs/plugin-vue": "^6.0.7",
117
- "@vue/compiler-core": "^3.5.35",
118
- "@vue/compiler-dom": "^3.5.35",
119
- "@vue/language-core": "^3.3.3",
118
+ "@vue/compiler-core": "^3.5.38",
119
+ "@vue/compiler-dom": "^3.5.38",
120
+ "@vue/language-core": "^3.3.5",
120
121
  "antd-mini": "^3.4.3",
121
122
  "bundle-require": "^5.1.0",
122
123
  "class-variance-authority": "^0.7.1",
@@ -126,7 +127,7 @@ const TEMPLATE_CATALOG = {
126
127
  "lru-cache": "^11.5.1",
127
128
  "magic-string": "^0.30.21",
128
129
  "miniprogram-api-typings": "^5.2.1",
129
- "oxc-parser": "^0.134.0",
130
+ "oxc-parser": "^0.135.0",
130
131
  "oxc-walker": "^1.0.0",
131
132
  "pkg-types": "^2.3.1",
132
133
  "sass-embedded": "^1.100.0",
@@ -135,40 +136,40 @@ const TEMPLATE_CATALOG = {
135
136
  "tdesign-miniprogram": "^1.15.1",
136
137
  "ts-morph": "^28.0.0",
137
138
  "vite-plugin-inspect": "^11.4.1",
138
- "vue-tsc": "^3.3.3",
139
- "weapp-tailwindcss": "^5.0.4",
139
+ "vue-tsc": "^3.3.5",
140
+ "weapp-tailwindcss": "^5.0.12",
140
141
  autoprefixer: "^10.5.0",
141
142
  clsx: "^2.1.1",
142
143
  dayjs: "^1.11.21",
143
144
  echarts: "^6.1.0",
144
- esbuild: "^0.28.0",
145
- eslint: "^10.4.1",
145
+ esbuild: "^0.28.1",
146
+ eslint: "^10.5.0",
146
147
  fdir: "^6.5.0",
147
148
  htmlparser2: "^12.0.0",
148
149
  lodash: "^4.18.1",
149
150
  merge: "^2.1.1",
150
- obug: "^2.1.2",
151
+ obug: "^2.1.3",
151
152
  pathe: "^2.0.3",
152
153
  postcss: "^8.5.15",
153
- rolldown: "1.1.0",
154
- sass: "^1.100.0",
154
+ rolldown: "1.1.1",
155
+ sass: "^1.101.0",
155
156
  stylelint: "^17.13.0",
156
- tailwindcss: "^4.3.0",
157
+ tailwindcss: "^4.3.1",
157
158
  tslib: "^2.8.1",
158
159
  typescript: "^6.0.3",
159
160
  vite: "8.0.16",
160
- vue: "^3.5.35",
161
+ vue: "^3.5.38",
161
162
  zod: "^4.4.3"
162
163
  };
163
164
  const TEMPLATE_NAMED_CATALOG = {
164
165
  "tdesign-miniprogram-fixed": { "tdesign-miniprogram": "1.15.1" },
165
- "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.0.4" },
166
+ "weapp-tailwindcss-fixed": { "weapp-tailwindcss": "5.0.12" },
166
167
  latest: {
167
168
  "miniprogram-api-typings": "^5.2.1",
168
169
  typescript: "^6.0.3"
169
170
  },
170
- tailwind3: { tailwindcss: "^4.3.0" },
171
- tailwind4: { tailwindcss: "^4.3.0" }
171
+ tailwind3: { tailwindcss: "^4.3.1" },
172
+ tailwind4: { tailwindcss: "^4.3.1" }
172
173
  };
173
174
  //#endregion
174
175
  //#region src/npm.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.3.49",
4
+ "version": "2.3.51",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -37,7 +37,6 @@
37
37
  "main": "./dist/index.js",
38
38
  "module": "./dist/index.js",
39
39
  "types": "./dist/index.d.ts",
40
- "bin": "./bin/create-weapp-vite.js",
41
40
  "files": [
42
41
  "bin",
43
42
  "dist",
@@ -66,5 +65,8 @@
66
65
  "release": "pnpm publish",
67
66
  "lint": "eslint .",
68
67
  "lint:fix": "eslint . --fix"
68
+ },
69
+ "bin": {
70
+ "create-weapp-vite": "./bin/create-weapp-vite.js"
69
71
  }
70
72
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "7.0.42",
4
+ "version": "7.0.44",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -30,10 +30,10 @@
30
30
  "postinstall": "wv prepare"
31
31
  },
32
32
  "devDependencies": {
33
- "@egoist/tailwindcss-icons": "catalog:",
34
33
  "@icebreakers/eslint-config": "catalog:",
35
34
  "@icebreakers/stylelint-config": "catalog:",
36
35
  "@iconify-json/mdi": "catalog:",
36
+ "@iconify/tailwind4": "catalog:",
37
37
  "@types/node": "catalog:",
38
38
  "@weapp-vite/dashboard": "workspace:*",
39
39
  "eslint": "catalog:",
@@ -1,2 +1,8 @@
1
1
  @import 'tailwindcss';
2
- @config "../tailwind.config.ts";
2
+
3
+ @plugin "@iconify/tailwind4" {
4
+ prefixes: mdi;
5
+ icon-selector: '.i-{prefix}-{name}';
6
+ }
7
+
8
+ @source "./**/*.{wxml,js,ts,vue}";
@@ -12,7 +12,7 @@
12
12
  </view>
13
13
  <view class="flex items-center">
14
14
  <text>切换模式</text>
15
- <view class="{{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-4xl" bind:tap="switchMode"></view>
15
+ <view class="iconify {{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-4xl" bind:tap="switchMode"></view>
16
16
  </view>
17
17
  <view class="underline" mark:url="https://vite.icebreaker.top" bind:tap="copy">
18
18
  https://vite.icebreaker.top
@@ -33,10 +33,10 @@
33
33
  "tdesign-miniprogram": "catalog:"
34
34
  },
35
35
  "devDependencies": {
36
- "@egoist/tailwindcss-icons": "catalog:",
37
36
  "@icebreakers/eslint-config": "catalog:",
38
37
  "@icebreakers/stylelint-config": "catalog:",
39
38
  "@iconify-json/mdi": "catalog:",
39
+ "@iconify/tailwind4": "catalog:",
40
40
  "@types/node": "catalog:",
41
41
  "@weapp-vite/dashboard": "workspace:*",
42
42
  "eslint": "catalog:",
@@ -1,2 +1,8 @@
1
1
  @import 'tailwindcss';
2
- @config "../tailwind.config.ts";
2
+
3
+ @plugin "@iconify/tailwind4" {
4
+ prefixes: mdi;
5
+ icon-selector: '.i-{prefix}-{name}';
6
+ }
7
+
8
+ @source "./**/*.{wxml,js,ts}";
@@ -8,7 +8,7 @@
8
8
  />
9
9
  <view bind:tap="switchMode" class="flex items-center">
10
10
  当前模式 {{mode}} 切换模式
11
- <view class="{{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-2xl"></view>
11
+ <view class="iconify {{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-2xl"></view>
12
12
  </view>
13
13
  <view class="underline" mark:url="https://vite.icebreaker.top" bind:tap="copy">
14
14
  https://vite.icebreaker.top
@@ -33,10 +33,10 @@
33
33
  "@vant/weapp": "catalog:"
34
34
  },
35
35
  "devDependencies": {
36
- "@egoist/tailwindcss-icons": "catalog:",
37
36
  "@icebreakers/eslint-config": "catalog:",
38
37
  "@icebreakers/stylelint-config": "catalog:",
39
38
  "@iconify-json/mdi": "catalog:",
39
+ "@iconify/tailwind4": "catalog:",
40
40
  "@types/node": "catalog:",
41
41
  "@weapp-vite/dashboard": "workspace:*",
42
42
  "eslint": "catalog:",
@@ -1,2 +1,8 @@
1
1
  @import 'tailwindcss';
2
- @config "../tailwind.config.ts";
2
+
3
+ @plugin "@iconify/tailwind4" {
4
+ prefixes: mdi;
5
+ icon-selector: '.i-{prefix}-{name}';
6
+ }
7
+
8
+ @source "./**/*.{wxml,js,ts,vue}";
@@ -13,7 +13,7 @@
13
13
  docs="{{hello.docs}}"
14
14
  links="{{hello.links}}"
15
15
  />
16
- <view class="{{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-8xl" bind:tap="switchMode"></view>
16
+ <view class="iconify {{ mode === 'light' ? 'i-mdi-moon-waxing-crescent':'i-mdi-weather-sunny text-white' }} text-8xl" bind:tap="switchMode"></view>
17
17
  <view class="underline" mark:url="https://vite.icebreaker.top" bind:tap="copy">
18
18
  https://vite.icebreaker.top
19
19
  </view>
@@ -77,43 +77,57 @@
77
77
  "html.customData": [
78
78
  "./.weapp-vite/mini-program.html-data.json"
79
79
  ],
80
- "tailwindCSS.experimental.classRegex": [
81
- [
82
- "clsx\\(([^)]*)\\)",
83
- "(?:'|\"|`)([^']*)(?:'|\"|`)"
84
- ],
85
- [
86
- "cn\\(([^)]*)\\)",
87
- "(?:'|\"|`)([^']*)(?:'|\"|`)"
88
- ],
89
- [
90
- "cva\\(([^)]*)\\)",
91
- "[\"'`]([^\"'`]*).*?[\"'`]"
92
- ],
93
- [
94
- "cx\\(([^)]*)\\)",
95
- "(?:'|\"|`)([^']*)(?:'|\"|`)"
96
- ]
97
- ],
98
- "tailwindCSS.classAttributes": [
99
- "class",
100
- "className",
101
- "ngClass",
102
- "class:list",
103
- "hover-class"
104
- ],
105
- "tailwindCSS.includeLanguages": {
106
- "wxml": "html"
107
- },
80
+ "tailwindCSS.suggestions": false,
81
+ "tailwindCSS.hovers": false,
82
+ "tailwindCSS.validate": false,
83
+ "tailwindCSS.codeActions": false,
84
+ "tailwindCSS.colorDecorators": false,
85
+ "tailwindCSS.experimental.configFile": null,
86
+ "stylelint.enable": false,
108
87
  "stylelint.validate": [
109
88
  "css",
110
89
  "scss",
111
90
  "vue"
112
91
  ],
113
92
  "vue.server.hybridMode": true,
93
+ "vue.server.includeLanguages": [
94
+ "vue"
95
+ ],
96
+ "typescript.tsserver.maxTsServerMemory": 3072,
97
+ "typescript.tsserver.useSyntaxServer": "auto",
98
+ "typescript.tsserver.watchOptions": {
99
+ "watchFile": "useFsEvents",
100
+ "watchDirectory": "useFsEvents",
101
+ "fallbackPolling": "dynamicPriorityPolling"
102
+ },
114
103
  "typescript.disableReferencedProjectLoad": true,
115
104
  "typescript.disableSolutionSearching": true,
116
105
  "typescript.disableAutomaticTypeAcquisition": true,
106
+ "typescript.preferences.autoImportFileExcludePatterns": [
107
+ "**/.cache/**",
108
+ "**/.codegraph/**",
109
+ "**/.codex-tmp/**",
110
+ "**/.minidev/**",
111
+ "**/.playwright/**",
112
+ "**/.playwright-cli/**",
113
+ "**/.playwright-mcp/**",
114
+ "**/.pnpm-store/**",
115
+ "**/.tmp/**",
116
+ "**/.turbo/**",
117
+ "**/.vite/**",
118
+ "**/.vite-inspect/**",
119
+ "**/.weapp-vite/**",
120
+ "**/.wevu-config/**",
121
+ "**/build/**",
122
+ "**/coverage/**",
123
+ "**/dist/**",
124
+ "**/dist-*/**",
125
+ "**/dist-plugin/**",
126
+ "**/dist-web/**",
127
+ "**/docs/reports/**",
128
+ "**/miniprogram_npm/**",
129
+ "**/node_modules/**"
130
+ ],
117
131
  "typescript.preferences.includePackageJsonAutoImports": "off",
118
132
  "javascript.preferences.includePackageJsonAutoImports": "off",
119
133
  "search.followSymlinks": false,
@@ -128,9 +142,11 @@
128
142
  "**/coverage/**": true,
129
143
  "**/miniprogram_npm/**": true,
130
144
  "**/.cache/**": true,
145
+ "**/.codegraph/**": true,
131
146
  "**/.smartapp-automator/**": true,
132
147
  "**/.minidev/**": true,
133
148
  "**/.playwright/**": true,
149
+ "**/.playwright-mcp/**": true,
134
150
  "**/.pnpm-store/**": true,
135
151
  "**/.tmp/**": true,
136
152
  "**/.turbo/**": true,
@@ -153,11 +169,13 @@
153
169
  "**/coverage": true,
154
170
  "**/miniprogram_npm": true,
155
171
  "**/.cache": true,
172
+ "**/.codegraph": true,
156
173
  "**/.smartapp-automator": true,
157
174
  "**/.codex-tmp": true,
158
175
  "**/.minidev": true,
159
176
  "**/.playwright": true,
160
177
  "**/.playwright-cli": true,
178
+ "**/.playwright-mcp": true,
161
179
  "**/.pnpm-store": true,
162
180
  "**/.tmp": true,
163
181
  "**/.turbo": true,
@@ -179,9 +197,11 @@
179
197
  "**/coverage/**": true,
180
198
  "**/miniprogram_npm/**": true,
181
199
  "**/.cache/**": true,
200
+ "**/.codegraph/**": true,
182
201
  "**/.smartapp-automator/**": true,
183
202
  "**/.minidev/**": true,
184
203
  "**/.playwright/**": true,
204
+ "**/.playwright-mcp/**": true,
185
205
  "**/.pnpm-store/**": true,
186
206
  "**/.tmp/**": true,
187
207
  "**/.turbo/**": true,
@@ -205,9 +225,11 @@
205
225
  "**/coverage/**",
206
226
  "**/miniprogram_npm/**",
207
227
  "**/.cache/**",
228
+ "**/.codegraph/**",
208
229
  "**/.smartapp-automator/**",
209
230
  "**/.minidev/**",
210
231
  "**/.playwright/**",
232
+ "**/.playwright-mcp/**",
211
233
  "**/.pnpm-store/**",
212
234
  "**/.tmp/**",
213
235
  "**/.turbo/**",
@@ -220,7 +242,6 @@
220
242
  "**/__temp__/**",
221
243
  "**/docs/reports/**"
222
244
  ],
223
- "tailwindCSS.codeActions": false,
224
245
  "i18n-ally.usage.scanningIgnore": [
225
246
  "**/.git/**",
226
247
  "**/node_modules/**",
@@ -232,9 +253,11 @@
232
253
  "**/coverage/**",
233
254
  "**/miniprogram_npm/**",
234
255
  "**/.cache/**",
256
+ "**/.codegraph/**",
235
257
  "**/.smartapp-automator/**",
236
258
  "**/.minidev/**",
237
259
  "**/.playwright/**",
260
+ "**/.playwright-mcp/**",
238
261
  "**/.pnpm-store/**",
239
262
  "**/.tmp/**",
240
263
  "**/.turbo/**",
@@ -248,5 +271,6 @@
248
271
  "**/docs/reports/**"
249
272
  ],
250
273
  "vue.tsserver.useWorkspaceTsdk": true,
251
- "typescript.tsdk": "node_modules/typescript/lib"
274
+ "typescript.tsdk": "node_modules/typescript/lib",
275
+ "vue3snippets.enable-compile-vue-file-on-did-save-code": false
252
276
  }
@@ -33,10 +33,10 @@
33
33
  "tdesign-miniprogram": "catalog:"
34
34
  },
35
35
  "devDependencies": {
36
- "@egoist/tailwindcss-icons": "catalog:",
37
36
  "@icebreakers/eslint-config": "catalog:",
38
37
  "@icebreakers/stylelint-config": "catalog:",
39
38
  "@iconify-json/mdi": "catalog:",
39
+ "@iconify/tailwind4": "catalog:",
40
40
  "@types/node": "catalog:",
41
41
  "@weapp-vite/dashboard": "workspace:*",
42
42
  "eslint": "catalog:",
@@ -1,5 +1,11 @@
1
1
  @import 'tailwindcss';
2
- @config "../tailwind.config.ts";
2
+
3
+ @plugin "@iconify/tailwind4" {
4
+ prefixes: mdi;
5
+ icon-selector: '.i-{prefix}-{name}';
6
+ }
7
+
8
+ @source "./**/*.{wxml,js,ts,vue}";
3
9
 
4
10
  page {
5
11
  font-family: 'HarmonyOS Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
@@ -1,17 +0,0 @@
1
- import type { Config } from 'tailwindcss'
2
- import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons'
3
-
4
- export default {
5
- content: [
6
- // 添加你需要提取的文件目录
7
- 'src/**/*.{wxml,js,ts}',
8
- ],
9
- theme: {
10
- extend: {},
11
- },
12
- plugins: [
13
- iconsPlugin({
14
- collections: getIconCollections(['mdi']),
15
- }),
16
- ],
17
- } satisfies Config
@@ -1,17 +0,0 @@
1
- import type { Config } from 'tailwindcss'
2
- import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons'
3
-
4
- export default {
5
- content: [
6
- // 添加你需要提取的文件目录
7
- 'src/**/*.{wxml,js,ts}',
8
- ],
9
- theme: {
10
- extend: {},
11
- },
12
- plugins: [
13
- iconsPlugin({
14
- collections: getIconCollections(['mdi']),
15
- }),
16
- ],
17
- } satisfies Config
@@ -1,17 +0,0 @@
1
- import type { Config } from 'tailwindcss'
2
- import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons'
3
-
4
- export default {
5
- content: [
6
- // 添加你需要提取的文件目录
7
- 'src/**/*.{wxml,js,ts}',
8
- ],
9
- theme: {
10
- extend: {},
11
- },
12
- plugins: [
13
- iconsPlugin({
14
- collections: getIconCollections(['mdi']),
15
- }),
16
- ],
17
- } satisfies Config
@@ -1,17 +0,0 @@
1
- import type { Config } from 'tailwindcss'
2
- import { getIconCollections, iconsPlugin } from '@egoist/tailwindcss-icons'
3
-
4
- export default {
5
- content: [
6
- // 添加你需要提取的文件目录
7
- 'src/**/*.{wxml,js,ts,vue}',
8
- ],
9
- theme: {
10
- extend: {},
11
- },
12
- plugins: [
13
- iconsPlugin({
14
- collections: getIconCollections(['mdi']),
15
- }),
16
- ],
17
- } satisfies Config