Skip to content

Commit 4476838

Browse files
committed
docs: update
1 parent d186ff2 commit 4476838

File tree

91 files changed

+1736
-784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1736
-784
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
"@weapp-tailwindcss/cva": major
3+
"@weapp-tailwindcss/debug-uni-app-x": major
4+
"@weapp-tailwindcss/experimental": major
5+
"@weapp-tailwindcss/init": major
6+
"@weapp-tailwindcss/logger": major
7+
"@weapp-tailwindcss/merge": major
8+
"@weapp-tailwindcss/merge-v3": major
9+
"@weapp-tailwindcss/postcss": major
10+
"@weapp-tailwindcss/runtime": major
11+
"@weapp-tailwindcss/shared": major
12+
"@weapp-tailwindcss/test-helper": major
13+
"@weapp-tailwindcss/typography": major
14+
"@weapp-tailwindcss/ui": major
15+
"@weapp-tailwindcss/variants": major
16+
"@weapp-tailwindcss/variants-v3": major
17+
"tailwind-variant-v3": major
18+
"tailwindcss-config": major
19+
"tailwindcss-core-plugins-extractor": major
20+
"tailwindcss-injector": major
21+
"theme-transition": major
22+
"weapp-style-injector": major
23+
"weapp-tailwindcss": major
24+
"weapp-tw": major
25+
"wetw": major
26+
---
27+
28+
要求 Node.js 版本为 `^20.19.0 || >=22.12.0`

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
- [特性](#特性)
3232
- [版本对应](#版本对应)
33+
- [环境要求](#环境要求)
3334
- [安装与使用方式](#安装与使用方式)
3435
- [生态和解决方案](#生态和解决方案)
3536
- [常见问题](#常见问题)
@@ -61,7 +62,11 @@
6162
- 支持最新版本的 `tailwindcss v4``v3` 还有 `v2 jit` 版本。
6263
- 支持 `webpack5``webpack4`, `vite``gulp` 这些打包工具,也支持纯 `Nodejs` API 的方式,集成到你自己的构建工具中。
6364

64-
> 如果你还在使用 `tailwindcss@2` 版本,那你应该使用从 `weapp-tailwindcss/webpack4` 导出的本插件的 `postcss7` `webpack4` 版本。另外请确保你的 `nodejs` 版本 `>=16.6.0`。目前低于 `16` 的长期维护版本(`偶数版本`) 都已经结束了生命周期,建议安装 `nodejs``LTS` 版本,详见 [nodejs/release](https://github.com/nodejs/release)
65+
> 如果你还在使用 `tailwindcss@2` 版本,那你应该使用从 `weapp-tailwindcss/webpack4` 导出的本插件的 `postcss7` `webpack4` 版本。`weapp-tailwindcss@4` 需要 `nodejs` 版本 `^20.19.0 || >=22.12.0`,建议安装 `nodejs``LTS` 版本,详见 [nodejs/release](https://github.com/nodejs/release)
66+
67+
## 环境要求
68+
69+
- Node.js `^20.19.0``>=22.12.0`(建议 LTS)
6570

6671
## [安装与使用方式](https://tw.icebreaker.top/docs/quick-start/install)
6772

README_en.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
- [Features](#features)
2828
- [Plugin Introduction](#plugin-introduction)
29+
- [Requirements](#requirements)
2930
- [Installation and usage](#installation-and-usage)
3031
- [Migrating from v1 to v2](#migrating-from-v1-to-v2)
3132
- [Configuration reference](#configuration-reference)
@@ -71,7 +72,11 @@ And our `gulp` plugin method, can be exported from `weapp-tailwindcss/gulp`.
7172

7273
Currently, these plugins support the latest version of the `tailwindcss v3.x.x` version and `webpack5`, `vite`, and `gulp`.
7374

74-
> If you are still using the `tailwindcss@2` version, then you should use the `1.x` version of this plugin. Also, make sure your `nodejs` version `>=16`. At present, the long-term maintenance version (`even-numbered version`) below `16` has ended its life cycle. It is recommended to install the `LTS` version of `nodejs`, See [nodejs/release](<https://github.com/> nodejs/release)
75+
> If you are still using the `tailwindcss@2` version, then you should use the `1.x` version of this plugin. `weapp-tailwindcss@4` requires Node.js `^20.19.0 || >=22.12.0`. LTS is recommended. See [nodejs/release](https://github.com/nodejs/release).
76+
77+
## Requirements
78+
79+
- Node.js `^20.19.0` or `>=22.12.0` (LTS recommended)
7580

7681
## [Installation and usage](https://tw.icebreaker.top/docs/quick-start/install)
7782

apps/react-app/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"type": "module",
44
"version": "0.0.0",
55
"private": true,
6+
"engines": {
7+
"node": "^20.19.0 || >=22.12.0"
8+
},
69
"scripts": {
710
"dev": "vite --host",
811
"build": "tsc -b && vite build",

apps/react-app/tsconfig.app.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22
"compilerOptions": {
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
44
"target": "ES2022",
5-
"useDefineForClassFields": true,
5+
"jsx": "react-jsx",
66
"lib": [
77
"ES2022",
88
"DOM",
99
"DOM.Iterable"
1010
],
11+
"moduleDetection": "force",
12+
"useDefineForClassFields": true,
13+
"baseUrl": ".",
1114
"module": "ESNext",
15+
/* Bundler mode */
16+
"moduleResolution": "bundler",
17+
"paths": {
18+
"@/*": [
19+
"./src/*"
20+
]
21+
},
1222
"types": [
1323
"vite/client"
1424
],
15-
"skipLibCheck": true,
16-
/* Bundler mode */
17-
"moduleResolution": "bundler",
1825
"allowImportingTsExtensions": true,
19-
"verbatimModuleSyntax": true,
20-
"moduleDetection": "force",
21-
"noEmit": true,
22-
"jsx": "react-jsx",
2326
/* Linting */
2427
"strict": true,
28+
"noFallthroughCasesInSwitch": true,
2529
"noUnusedLocals": true,
2630
"noUnusedParameters": true,
31+
"noEmit": true,
32+
"verbatimModuleSyntax": true,
2733
"erasableSyntaxOnly": true,
28-
"noFallthroughCasesInSwitch": true,
29-
"noUncheckedSideEffectImports": true,
30-
"baseUrl": ".",
31-
"paths": {
32-
"@/*": [
33-
"./src/*"
34-
]
35-
}
34+
"skipLibCheck": true,
35+
"noUncheckedSideEffectImports": true
3636
},
3737
"include": [
3838
"src"
3939
]
40-
}
40+
}

apps/react-app/tsconfig.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"files": [],
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"@/*": [
6+
"./src/*"
7+
]
8+
}
9+
},
310
"references": [
411
{
512
"path": "./tsconfig.app.json"
@@ -8,12 +15,5 @@
815
"path": "./tsconfig.node.json"
916
}
1017
],
11-
"compilerOptions": {
12-
"baseUrl": ".",
13-
"paths": {
14-
"@/*": [
15-
"./src/*"
16-
]
17-
}
18-
}
19-
}
18+
"files": []
19+
}

apps/react-app/tsconfig.node.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
44
"target": "ES2023",
55
"lib": ["ES2023"],
6+
"moduleDetection": "force",
67
"module": "ESNext",
7-
"types": ["node"],
8-
"skipLibCheck": true,
98

109
/* Bundler mode */
1110
"moduleResolution": "bundler",
11+
"types": ["node"],
1212
"allowImportingTsExtensions": true,
13-
"verbatimModuleSyntax": true,
14-
"moduleDetection": "force",
15-
"noEmit": true,
1613

1714
/* Linting */
1815
"strict": true,
16+
"noFallthroughCasesInSwitch": true,
1917
"noUnusedLocals": true,
2018
"noUnusedParameters": true,
19+
"noEmit": true,
20+
"verbatimModuleSyntax": true,
2121
"erasableSyntaxOnly": true,
22-
"noFallthroughCasesInSwitch": true,
22+
"skipLibCheck": true,
2323
"noUncheckedSideEffectImports": true
2424
},
2525
"include": ["vite.config.ts"]

apps/rsmax-app-ts/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"license": "MIT",
88
"keywords": [],
99
"main": "index.js",
10+
"engines": {
11+
"node": "^20.19.0 || >=22.12.0"
12+
},
1013
"scripts": {
1114
"dev": "rsmax build -w -t wechat",
1215
"_build": "cross-env NODE_ENV=production rsmax build -t wechat",

apps/rsmax-app-ts/tsconfig.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
6-
"strict": true,
7-
"esModuleInterop": true,
84
"jsx": "preserve",
9-
"rootDir": "src",
5+
"lib": ["DOM", "ES2015"],
106
"baseUrl": "./",
7+
"rootDir": "src",
8+
"module": "ESNext",
9+
"moduleResolution": "node",
1110
"paths": {
1211
"@/*": ["./src/*"]
1312
},
14-
"lib": ["DOM", "ES2015"]
13+
"strict": true,
14+
"esModuleInterop": true
1515
},
1616
"include": ["src/**/*", "typings/**/*"]
1717
}

apps/tailwindcss-weapp/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"bugs": {
1212
"url": "https://github.com/sonofmagic/weapp-tailwindcss/issues"
1313
},
14+
"engines": {
15+
"node": "^20.19.0 || >=22.12.0"
16+
},
1417
"scripts": {
1518
"bootstrap": "pnpm i --ignore-workspace",
1619
"upgrade": "pnpm up -Li --ignore-workspace",
@@ -96,7 +99,7 @@
9699
"@vue/runtime-core": "^3.5.26",
97100
"autoprefixer": "^10.4.21",
98101
"indent-string": "^5.0.0",
99-
"miniprogram-api-typings": "^4.1.3",
102+
"miniprogram-api-typings": "^5.0.0",
100103
"postcss": "^8.5.3",
101104
"prettier": "^3.8.0",
102105
"prettier-plugin-tailwindcss": "^0.7.2",
@@ -105,8 +108,8 @@
105108
"tailwindcss": "^3.4.19",
106109
"unplugin-auto-import": "^19.1.1",
107110
"vite": "5.2.8",
108-
"vue-eslint-parser": "^9.4.3",
109-
"weapp-ide-cli": "^4.1.2",
111+
"vue-eslint-parser": "^10.2.0",
112+
"weapp-ide-cli": "^5.0.0",
110113
"weapp-tailwindcss": "workspace:*"
111114
}
112115
}

0 commit comments

Comments
 (0)