Skip to content

Commit

Permalink
Revert "node 版本规范为 18 以上"
Browse files Browse the repository at this point in the history
This reverts commit ebc30dd.
  • Loading branch information
TaiAiAc committed Jan 30, 2024
1 parent ebc30dd commit c4c8ca8
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion docs/introduce/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: 快速上手
## 创建模板

::: tip 基本要求
在使用 `Electron` 进行开发之前,您需要安装 `Node.js` , 并确认 `node` 版本>=18 。 建议您使用最新的 `LTS` 版本或官网当前长期维护版。
在使用 `Electron` 进行开发之前,您需要安装 `Node.js`。 建议您使用最新的 `LTS` 版本或官网当前长期维护版。
本地环境需要安装 [`npm` | `yarn 1.x` | `pnpm`]`Git`
:::

Expand Down
2 changes: 1 addition & 1 deletion packages/create-electronup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dist"
],
"engines": {
"node": ">= 18"
"node": "^14.18.0 || >=16.0.0"
},
"scripts": {
"dev": "unbuild --stub",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-electronup/template/base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

前提条件
> 熟悉命令行
> 已安装 18 或更高版本的 Node.js
> 已安装 16.0 或更高版本的 Node.js

因为使用了 tsup 构建主进程代码,所以该命令行及脚手架只支持 TypeScript ,不支持 JavaScript。
Expand Down
2 changes: 1 addition & 1 deletion packages/electronup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pnpm add electronup -D

前提条件
> 熟悉命令行
> 已安装 18.0 或更高版本的 Node.js
> 已安装 16.0 或更高版本的 Node.js

因为使用了 tsup 构建主进程代码,所以该命令行及脚手架只支持 TypeScript ,不支持 JavaScript。
Expand Down
4 changes: 2 additions & 2 deletions packages/electronup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"update-version": "bumpp package.json"
},
"peerDependencies": {
"@types/node": ">= 18",
"node": ">= 18",
"@types/node": ">= 16",
"node": ">= 16",
"vue": ">= 3"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion template/react-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

前提条件
> 熟悉命令行
> 已安装 18 或更高版本的 Node.js
> 已安装 16.0 或更高版本的 Node.js

因为使用了 tsup 构建主进程代码,所以该命令行及脚手架只支持 TypeScript ,不支持 JavaScript。
Expand Down
14 changes: 7 additions & 7 deletions template/react-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
"devDependencies": {
"@quiteer/eslint-config": "^0.0.3",
"@types/node": "^20.4.6",
"electron": "22.3.6",
"electron-builder": "^24.6.3",
"electronup": "^0.1.0",
"eslint": "^8.43.0",
"sass": "^1.65.1",
"typescript": "^5.1.6",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"electron": "22.3.6",
"electron-builder": "^24.6.3",
"electronup": "workspace:^",
"eslint": "^8.43.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3"
"eslint-plugin-react-refresh": "^0.4.3",
"sass": "^1.65.1",
"typescript": "^5.1.6"
}
}
2 changes: 1 addition & 1 deletion template/react-swc-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

前提条件
> 熟悉命令行
> 已安装 18 或更高版本的 Node.js
> 已安装 16.0 或更高版本的 Node.js

因为使用了 tsup 构建主进程代码,所以该命令行及脚手架只支持 TypeScript ,不支持 JavaScript。
Expand Down
14 changes: 7 additions & 7 deletions template/react-swc-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
"devDependencies": {
"@quiteer/eslint-config": "^0.0.3",
"@types/node": "^20.4.6",
"electron": "22.3.6",
"electron-builder": "^24.6.3",
"electronup": "^0.1.0",
"eslint": "^8.43.0",
"sass": "^1.65.1",
"typescript": "^5.1.6",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react-swc": "^3.3.2",
"electron": "22.3.6",
"electron-builder": "^24.6.3",
"electronup": "workspace:^",
"eslint": "^8.43.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3"
"eslint-plugin-react-refresh": "^0.4.3",
"sass": "^1.65.1",
"typescript": "^5.1.6"
}
}
2 changes: 1 addition & 1 deletion template/solid-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

前提条件
> 熟悉命令行
> 已安装 18 或更高版本的 Node.js
> 已安装 16.0 或更高版本的 Node.js

因为使用了 tsup 构建主进程代码,所以该命令行及脚手架只支持 TypeScript ,不支持 JavaScript。
Expand Down
2 changes: 1 addition & 1 deletion template/solid-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@types/node": "^20.4.6",
"electron": "22.3.6",
"electron-builder": "^24.6.3",
"electronup": "^0.1.0",
"electronup": "workspace:^",
"eslint": "^8.43.0",
"sass": "^1.65.1",
"typescript": "^5.1.6",
Expand Down
2 changes: 1 addition & 1 deletion template/vanilla-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

前提条件
> 熟悉命令行
> 已安装 18 或更高版本的 Node.js
> 已安装 16.0 或更高版本的 Node.js

因为使用了 tsup 构建主进程代码,所以该命令行及脚手架只支持 TypeScript ,不支持 JavaScript。
Expand Down
2 changes: 1 addition & 1 deletion template/vanilla-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@types/node": "^20.4.6",
"electron": "22.3.6",
"electron-builder": "^24.6.3",
"electronup": "^0.1.0",
"electronup": "workspace:^",
"eslint": "^8.43.0",
"sass": "^1.65.1",
"typescript": "^5.1.6"
Expand Down
2 changes: 1 addition & 1 deletion template/vue-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

前提条件
> 熟悉命令行
> 已安装 18 或更高版本的 Node.js
> 已安装 16.0 或更高版本的 Node.js

因为使用了 tsup 构建主进程代码,所以该命令行及脚手架只支持 TypeScript ,不支持 JavaScript。
Expand Down
6 changes: 3 additions & 3 deletions template/vue-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"devDependencies": {
"@quiteer/eslint-config": "^0.0.3",
"@types/node": "^20.4.6",
"@vitejs/plugin-vue": "^5.0.3",
"electron": "22.3.6",
"electron-builder": "^24.6.3",
"electronup": "^0.1.0",
"electronup": "workspace:^",
"eslint": "^8.43.0",
"pinia": "^2.1.7",
"sass": "^1.65.1",
"typescript": "^5.1.6",
"@vitejs/plugin-vue": "^5.0.3",
"pinia": "^2.1.7",
"vue": "^3.4.15",
"vue-router": "^4.2.5",
"vue-tsc": "^1.8.1"
Expand Down

0 comments on commit c4c8ca8

Please sign in to comment.