Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ updates:
ignore:
- dependency-name: "@types/node"
versions:
- ">= 13.13.a, < 13.14"
- ">= 20.0.0, < 23.0.0"
- dependency-name: mini-css-extract-plugin
versions:
- 1.3.5
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-rust-binding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
node-version: [22.x]
settings:
- host: macos-13
target: x86_64-apple-darwin
Expand Down Expand Up @@ -47,9 +47,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
if: ${{ !matrix.settings.docker }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
node-version: [22.x, 20.x]
host: [macos-13, windows-latest, ubuntu-latest]
include:
- host: macos-13
Expand All @@ -48,9 +48,9 @@ jobs:
- host: ubuntu-latest
target: x86_64-unknown-linux-musl
exclude:
- node-version: 18.x
- node-version: 22.x
host: macos-13
- node-version: 18.x
- node-version: 22.x
host: windows-latest
- node-version: 20.x
host: macos-13
Expand All @@ -62,9 +62,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node 18
version: 10
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!
- name: Git Identity
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/sync-components-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,17 @@ jobs:
${{ runner.os }}-

- name: install
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- args: [--filter @tarojs/components, -D, miniapp-types@latest]
# Note: 当前同步脚本使用 ts-node 与 node20 存在兼容问题,修复后解除版本限制
- name: Setup Node 18
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!

Expand All @@ -69,4 +68,3 @@ jobs:
labels: |
A-typings
A-components

6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### 1. 环境准备

> 需要安装 [Node.js 16](https://nodejs.org/en/)(建议安装 `16.20.0` 及以上版本)及 [pnpm 7](https://pnpm.io/zh/installation)
> 需要安装 [Node.js 20](https://nodejs.org/en/)(建议安装 `v20.19.1` 及以上版本)及 [pnpm 10](https://pnpm.io/zh/installation)

首先把 Taro 仓库 fork 一份到自己的 Github,然后从个人仓库把项目 clone 到本地,项目默认是 `main` 分支。

Expand All @@ -36,7 +36,7 @@ Taro 由一系列子 npm 包组成,整体项目组织基于 **pnpm workspace**
$ pnpm --filter [package-name] run dev
```

开发过程中,一般会使用 **link** 的方式把需要调试的包软链到一个测试项目中,然后便可进行断点调试。开发者可以根据测试项目的包管理器以及自己的喜好选择使用 [npm link](https://docs.npmjs.com/cli/v7/commands/npm-link) 或 [yarn link](https://yarnpkg.com/cli/link)(推荐)或 [pnpm link](https://pnpm.io/zh/cli/link) 。
开发过程中,一般会使用 **link** 的方式把需要调试的包软链到一个测试项目中,然后便可进行断点调试。开发者可以根据测试项目的包管理器以及自己的喜好选择使用 [npm link](https://docs.npmjs.com/cli/v11/commands/npm-link) 或 [yarn link](https://yarnpkg.com/cli/link)(推荐)或 [pnpm link](https://pnpm.io/zh/cli/link) 。

**使用 `yarn link` 的具体示例如下:**

Expand Down Expand Up @@ -209,7 +209,7 @@ Cargo workspace 会把编译产物输出到根目录的 `target` 文件夹中。

如对 `@taorjs/helper` 进行集成测试时,会把 `target/wasm32-wasip1/release/swc_plugin_xxx.wasm` 文件的软链到 `packages/taro-helper/swc/swc_plugin_xxx.wasm`。

####
####

## Credits

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@tarojs/test-utils-vue3": "^0.1.1",
"@tarojs/webpack5-runner": "3.6.24",
"@types/jest": "^29.3.1",
"@types/node": "^18.15.11",
"@types/node": "^20",
"@types/webpack-env": "^1.13.6",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/mini-program-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mini-program-example",
"version": "1.0.0",
"private": true,
"description": "小程序demo",
"description": "小程序 demo",
"templateInfo": {
"name": "default",
"typescript": true,
Expand Down Expand Up @@ -81,6 +81,6 @@
"typescript": "^4.1.0",
"postcss": "^8.4.38",
"ts-node": "^10.9.1",
"@types/node": "^18.15.11"
"@types/node": "^20"
}
}
2 changes: 1 addition & 1 deletion examples/swiper-effect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@tarojs/cli": "4.0.7",
"@tarojs/taro-loader": "4.0.7",
"@tarojs/webpack5-runner": "4.0.7",
"@types/node": "^18",
"@types/node": "^20",
"@types/react": "^18.0.0",
"@types/webpack-env": "^1.13.6",
"babel-preset-taro": "4.0.7",
Expand Down
2 changes: 1 addition & 1 deletion examples/taro-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"tsconfig-paths-webpack-plugin": "^4.1.0",
"postcss": "^8.4.38",
"ts-node": "^10.9.1",
"@types/node": "^18.15.11",
"@types/node": "^20",
"@types/jest": "^29.3.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.5.0"
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"license": "MIT",
"engines": {
"node": ">= 18"
"node": ">=20"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"license": "MIT",
"engines": {
"node": ">= 18"
"node": ">=20"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"license": "MIT",
"engines": {
"node": ">= 18"
"node": ">=20"
},
"libc": [
"glibc"
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"license": "MIT",
"engines": {
"node": ">= 18"
"node": ">=20"
},
"libc": [
"musl"
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"license": "MIT",
"engines": {
"node": ">= 18"
"node": ">=20"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"@types/inquirer": "^8.2.1",
"@types/jest": "^29.5.0",
"@types/less": "^3.0.2",
"@types/node": "^18",
"@types/node": "^20",
"@types/postcss-import": "^14.0.0",
"@types/postcss-url": "^10.0.0",
"@types/resolve": "^1.20.6",
Expand Down Expand Up @@ -183,5 +183,15 @@
"overrides": {
"browserslist": "^4.23.0"
}
},
"devEngines": {
"runtime": {
"name": "node",
"version": ">= 20.19.1"
},
"packageManager": {
"name": "pnpm",
"version": ">= 10.10.0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"homepage": "https://github.com/NervJS/taro#readme",
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"camelize": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-taroapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"updateSnapshot": "cross-env NODE_ENV=jest jest --updateSnapshot"
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"lodash": "^4.17.21"
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-taro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/NervJS/taro/issues"
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"@babel/plugin-proposal-decorators": "^7.24.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"cli"
],
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"@tarojs/cli": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-to-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
]
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"camelize": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-taro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"jsx"
],
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"@babel/eslint-parser": "^7.24.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"keywords": [],
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"@jest/test-sequencer": "^29.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-html-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/NervJS/taro/issues"
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"peerDependencies": {
"postcss": "^8"
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-plugin-constparse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "index.js",
"engines": {
"node": ">= 18"
"node": ">=20"
},
"peerDependencies": {
"postcss": "^8"
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-pxtransform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"testEnvironmentOptions": {}
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"peerDependencies": {
"postcss": "^8"
Expand Down
2 changes: 1 addition & 1 deletion packages/rollup-plugin-copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"keywords": [],
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"@tarojs/helper": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"url": "https://github.com/NervJS/taro/issues"
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"devDependencies": {
"lodash": "^4.17.21"
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config-taro-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"stylelint-taro-rn": "workspace:*"
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-taro-rn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"url": "git+https://github.com/NervJS/taro.git"
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"react-native-known-styling-properties": "^1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-taro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"stylelint-plugin"
],
"engines": {
"node": ">= 18"
"node": ">=20"
},
"dependencies": {
"lodash": "^4.17.21"
Expand Down
2 changes: 1 addition & 1 deletion packages/taro-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"url": "https://github.com/NervJS/taro/issues"
},
"engines": {
"node": ">= 18"
"node": ">=20"
},
"devDependencies": {
"@tarojs/runtime": "workspace:*",
Expand Down
Loading
Loading