create-uni-app-tailwindcss 0.1.7 → 0.3.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/cli.js CHANGED
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  import path from "node:path";
5
5
  import process from "node:process";
6
6
  import prompts from "prompts";
7
- //#region src/cli.ts
7
+ // src/cli.ts
8
8
  const templatesRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "templates");
9
9
  const options = parseArgs(process.argv.slice(2));
10
10
  const targetArg = options.target;
@@ -146,5 +146,4 @@ main().catch((error) => {
146
146
  console.error(error instanceof Error ? error.message : String(error));
147
147
  process.exitCode = 1;
148
148
  });
149
- //#endregion
150
149
  export {};
@@ -15,7 +15,7 @@
15
15
  - `Vue 3`
16
16
  - `Tailwind CSS v4`
17
17
  - `weapp-tailwindcss`
18
- - `pnpm 12.14.0`
18
+ - `pnpm 12.18.0`
19
19
 
20
20
  > 当前主分支是 `tailwindcss@4` 版本;如果需要 `tailwindcss@3` 版本,请切换到 `tailwindcss@3` 分支。
21
21
 
@@ -32,8 +32,8 @@
32
32
 
33
33
  ## 使用前提
34
34
 
35
- - Node.js `^22.18.0 || >=24.11.0`
36
- - `pnpm 12.14.0`
35
+ - Node.js `^22.23.4 || ^24.22.1 || >=26.12.1`
36
+ - `pnpm 12.18.0`
37
37
  - 微信开发者工具,用于微信小程序
38
38
  - HBuilderX `5.0+`,用于 Android 和 iOS App 调试
39
39
  - Android SDK、模拟器或已开启调试的 Android 设备
@@ -140,7 +140,9 @@ uni-app 的兼容性集合不仅包括 `@dcloudio/*`,还包括 `vue`、`vue-i1
140
140
 
141
141
  当前正式版 uni-app 为 `3.0.0-5030420261029002`。Vue、`@vue/runtime-core` 和 `@vue/shared` 固定为 `3.4.21`,与 DCloud 内置编译器及 `@vue/server-renderer` 保持一致;Vite `5.2.8`、Rollup `4.14.3` 沿用官方 UVM 配置。Pinia 保留 `2.2.4`,因为 Pinia 4 要求 Vue `^3.5.11`,高于当前跨端运行时版本。
142
142
 
143
- TypeScript 保留 `6.0.3`,仓库发布工具 repoctl 当前声明支持 TypeScript 5/6。Node.js 要求 `^22.18.0 || >=24.11.0`,与 weapp-tailwindcss 5.7.0 的运行要求一致。升级时先通过 `pnpm dlx @dcloudio/uvm@latest latest --manager manual` 查看正式版组合,再执行 `pnpm update:uni-app` 并核对这些兼容约束。
143
+ `@dcloudio/types` 保留 `3.4.31`,满足当前 `@dcloudio/uni-app` 的精确 peer 版本要求。pnpm 工作区统一使用 `allowBuilds` 管理安装脚本,并通过仅针对 `oxfmt>tinypool` 的 `2.1.2` 补丁覆盖修复格式化工具链的原型污染漏洞。
144
+
145
+ TypeScript 使用 `7.0.2`,仓库发布工具 repoctl 6 与 tsdown 0.23 均声明支持 TypeScript 7。Node.js 要求 `^22.23.4 || ^24.22.1 || >=26.12.1`,以满足 repoctl 6、代码规范工具和 weapp-ide-cli 6.4 的运行要求。升级时先通过 `pnpm dlx @dcloudio/uvm@latest latest --manager manual` 查看正式版组合,再执行 `pnpm update:uni-app` 并核对这些兼容约束。
144
146
 
145
147
  ## 项目级技能
146
148
 
@@ -3,4 +3,3 @@
3
3
  registry=https://registry.npmjs.org/
4
4
  # 这个是给 pnpm 用的
5
5
  shamefully-hoist=true
6
- minimum-release-age=0
@@ -2,12 +2,12 @@
2
2
  "name": "uni-app-tailwindcss-template-default",
3
3
  "version": "0.0.0",
4
4
  "private": true,
5
- "packageManager": "pnpm@12.14.0",
5
+ "packageManager": "pnpm@12.25.1",
6
6
  "imports": {
7
7
  "#tailwind.css": "./src/tailwind.css"
8
8
  },
9
9
  "engines": {
10
- "node": "^22.18.0 || >=24.11.0"
10
+ "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
11
11
  },
12
12
  "scripts": {
13
13
  "dev": "uni -p mp-weixin",
@@ -81,24 +81,24 @@
81
81
  "@dcloudio/uni-cli-shared": "3.0.0-5030420261029002",
82
82
  "@dcloudio/uni-stacktracey": "3.0.0-5030420261029002",
83
83
  "@dcloudio/vite-plugin-uni": "3.0.0-5030420261029002",
84
- "@icebreakers/eslint-config": "^8.0.6",
85
- "@icebreakers/stylelint-config": "^5.1.3",
84
+ "@icebreakers/eslint-config": "^8.0.24",
85
+ "@icebreakers/stylelint-config": "^6.0.9",
86
86
  "@iconify-json/mdi": "^1.2.3",
87
87
  "@iconify-json/svg-spinners": "^1.2.4",
88
88
  "@iconify/tailwind4": "^1.2.3",
89
- "@types/node": "^26.6.6",
89
+ "@types/node": "^26.6.11",
90
90
  "@vue/runtime-core": "3.4.21",
91
- "autoprefixer": "^10.6.2",
92
- "eslint": "^10.14.0",
93
- "postcss": "^8.5.32",
91
+ "autoprefixer": "^10.7.1",
92
+ "eslint": "^10.16.0",
93
+ "postcss": "^8.5.34",
94
94
  "rollup": "4.14.3",
95
- "sass": "^1.108.0",
96
- "stylelint": "^17.16.0",
97
- "tailwindcss": "^4.3.4",
98
- "typescript": "^6.0.3",
95
+ "sass": "^1.108.2",
96
+ "stylelint": "^18.1.0",
97
+ "tailwindcss": "^4.3.5",
98
+ "typescript": "^7.0.2",
99
99
  "unplugin-auto-import": "^21.1.0",
100
100
  "vite": "5.2.8",
101
- "weapp-ide-cli": "^6.2.0",
102
- "weapp-tailwindcss": "^5.7.2"
101
+ "weapp-ide-cli": "^6.4.7",
102
+ "weapp-tailwindcss": "^5.8.0"
103
103
  }
104
104
  }
@@ -4,29 +4,17 @@ packages:
4
4
  allowBuilds:
5
5
  '@dcloudio/hbuilderx-cli': false
6
6
  '@parcel/watcher': true
7
+ '@weapp-tailwindcss/merge': true
7
8
  core-js: true
8
9
  core-js-pure: true
9
10
  esbuild: true
10
11
  vue-demi: true
11
12
 
12
- onlyBuiltDependencies:
13
- - '@weapp-tailwindcss/merge'
14
-
15
13
  minimumReleaseAge: 0
16
14
 
17
15
  overrides:
16
+ proxy-addr: 2.0.8
18
17
  '@intlify/core-base': 9.14.5
19
18
  '@intlify/message-resolver': 9.1.11
20
-
21
- minimumReleaseAgeExclude:
22
- - '@weapp-tailwindcss/engine@0.1.8'
23
- - '@weapp-tailwindcss/native-darwin-arm64@5.7.2'
24
- - '@weapp-tailwindcss/native-darwin-x64@5.7.2'
25
- - '@weapp-tailwindcss/native-linux-arm64-gnu@5.7.2'
26
- - '@weapp-tailwindcss/native-linux-arm64-musl@5.7.2'
27
- - '@weapp-tailwindcss/native-linux-x64-gnu@5.7.2'
28
- - '@weapp-tailwindcss/native-linux-x64-musl@5.7.2'
29
- - '@weapp-tailwindcss/native-win32-arm64-msvc@5.7.2'
30
- - '@weapp-tailwindcss/native-win32-x64-msvc@5.7.2'
31
- - '@weapp-tailwindcss/postcss@4.0.2'
32
- - weapp-tailwindcss@5.7.2
19
+ # oxfmt pins an affected tinypool patch; keep its worker API on the same minor.
20
+ oxfmt>tinypool: 2.1.2
@@ -306,16 +306,16 @@ function copy(data: string) {
306
306
 
307
307
  <style scoped>
308
308
  .test {
309
+ box-sizing: border-box;
309
310
  display: flex !important;
310
311
  align-items: center;
311
312
  justify-content: center;
312
313
  width: 222.222px;
313
314
  max-width: 100%;
314
315
  height: 100px;
315
- box-sizing: border-box;
316
- border-radius: 40px;
317
- background-color: rgb(18 52 86 / 0.54);
318
- color: #ffffff;
316
+ color: #fff;
319
317
  text-align: center;
318
+ background-color: rgb(18 52 86 / 54%);
319
+ border-radius: 40px;
320
320
  }
321
321
  </style>
@@ -0,0 +1 @@
1
+ // Add project-wide SCSS variables here.
@@ -1,3 +1,7 @@
1
1
  import { icebreaker } from '@icebreakers/stylelint-config'
2
2
 
3
- export default icebreaker()
3
+ export default icebreaker({
4
+ ignores: {
5
+ addTypes: ['uni-view'],
6
+ },
7
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-uni-app-tailwindcss",
3
- "version": "0.1.7",
3
+ "version": "0.3.0",
4
4
  "description": "Create a uni-app project with Vite, Vue 3, Tailwind CSS, and weapp-tailwindcss.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "create-app"
25
25
  ],
26
26
  "engines": {
27
- "node": "^22.18.0 || >=24.11.0"
27
+ "node": "^22.23.4 || ^24.22.1 || >=26.12.1"
28
28
  },
29
29
  "bin": {
30
30
  "create-uni-app-tailwindcss": "./dist/cli.js"
@@ -41,11 +41,11 @@
41
41
  "prompts": "^2.4.2"
42
42
  },
43
43
  "devDependencies": {
44
- "@playwright/test": "^1.65.0",
45
- "@types/node": "^26.6.6",
44
+ "@playwright/test": "^1.65.2",
45
+ "@types/node": "^26.6.11",
46
46
  "@types/prompts": "^2.4.9",
47
- "tsdown": "^0.23.1",
48
- "typescript": "^6.0.3"
47
+ "tsdown": "^0.23.7",
48
+ "typescript": "^7.0.2"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "pnpm run typecheck && node scripts/build-package.mjs",