Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit 96f4ca2

Browse files
author
Hacxy
committed
fix(template): 更新模板
1 parent 0e8c986 commit 96f4ca2

8 files changed

Lines changed: 17 additions & 60 deletions

File tree

templates/cli-tsup/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,6 @@ When you no longer need this global link, you can manually remove it by executin
7474
npm unlink -g
7575
```
7676

77-
## Solutions
78-
79-
To facilitate smooth development of scaffold applications for you, I have thoughtfully supplemented some solutions that may be needed during scaffold application development. These third-party libraries can help you achieve more powerful and practical scaffold applications with better appearance. They have been practically applied and tested in this project template so feel free to use them:
80-
81-
- [commander.js](https://github.com/tj/commander.js) - A complete node.js command line solution.
82-
83-
- [kolorist](https://github.com/marvinhagemeister/kolorist) - A micro-library adding colors to standard input/output.
84-
85-
- [prompts](https://github.com/terkelg/prompts) - Lightweight, beautiful and friendly interactive prompt tool.
86-
87-
- [ora](https://github.com/sindresorhus/ora) - Provides friendly loading animation effects (requires installation as dependencies).
88-
89-
- [citty](https://github.com/unjs/citty) - Elegant CLI builder.
90-
9177
### Dependency Description
9278

9379
If your third-party library is installed with DevDependencies during development time,executing `npm run build` will pack these dependencies into production environment codes.If program works abnormally after installing via this method,you should try installing them as production environment dependencies(Dependencies). When they are installed as production environment dependencies ,they won't be packed into production environment codes .

templates/cli-tsup/README_zh.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,6 @@ npm link
7979
npm unlink -g
8080
```
8181

82-
## 解决方案
83-
84-
为了方便您顺利的开发脚手架应用程序, 我还贴心的为您补充了一些在脚手架应用程序开发中, 您可能需要的解决方案, 这些第三方库可以帮助您实现更强大更实用更美观的脚手架应用程序, 它们都经过了此项目模板的实际应用和测试, 您可以放心的使用:
85-
86-
- [commander.js](https://github.com/tj/commander.js) - 完整的 node.js 命令行解决方案。
87-
88-
- [kolorist](https://github.com/marvinhagemeister/kolorist) - 将颜色添加到标准输入/输出的微型库
89-
90-
- [prompts](https://github.com/terkelg/prompts) - 轻巧、美观且友好的交互提示工具
91-
92-
- [ora](https://github.com/sindresorhus/ora) - 提供友好的 loading 动画效果 (需要以 Dependencies 安装)
93-
94-
- [citty](https://github.com/unjs/citty) - 优雅的 CLI 构建器
95-
9682
### 依赖性说明
9783

9884
当您的第三方库以开发时依赖 (DevDependencies) 进行安装时, 执行`npm run build` 会将这些依赖打包进生产环境代码中, 如果您使用此方式安装并构建完成后, 发现程序工作异常, 则应该尝试将其作为生产环境依赖 (Dependencies) 进行安装, 当作为生产环境依赖进行安装时, 它们不会被打包进生产环境代码中.

templates/cli-tsup/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"author": "",
1818
"license": "MIT",
1919
"devDependencies": {
20-
"@eslint/js": "^9.0.0",
20+
"@eslint/js": "^9.1.1",
2121
"@types/node": "^20.12.5",
22-
"eslint": "^9.0.0",
22+
"eslint": "^8.57.0",
2323
"globals": "^15.0.0",
2424
"tsup": "^8.0.2",
2525
"typescript": "^5.4.4",
26-
"typescript-eslint": "^7.5.0"
26+
"typescript-eslint": "^7.7.1"
2727
}
2828
}

templates/cli-unbuild/README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,6 @@ When you no longer need this global link anymore, manually remove it by executin
8989
npm unlink -g
9090
```
9191

92-
## Solutions
93-
94-
In order to facilitate smooth development of scaffold applications , I have thoughtfully supplemented some solutions that may be needed during scaffold application development . These third-party libraries can help achieve more powerful , practical and beautiful scaffold applications . They have been practically applied and tested in this project template , so feel free  to use them :
95-
96-
- [commander.js](https://github.com/tj/commander.js) - Complete node.js command line solution .
97-
98-
- [kolorist](https://github.com/marvinhagemeister/kolorist) - A micro-library that adds color support on standard input/output .
99-
100-
- [prompts](https://github.com/terkelg/prompts) - Lightweight , beautiful and friendly interactive prompt tool .
101-
102-
- [ora](https://github.com/sindresorhus/ora) - Provides friendly loading animation effects (requires installation as Dependencies)
103-
104-
- [citty](https://github.com/unjs/citty) - Elegant CLI builder.
105-
10692
### Dependency Description
10793

10894
When your third-party library is installed as DevDependencies during development , these dependencies will be packaged into production environment codes after executing ' npm run build '. If program works abnormally after installing via such way and building completed afterwards , try installing them as production environment dependencies(Dependencies). They won't be packaged into production environment codes when installed as production environment dependencies.

templates/cli-unbuild/README_zh.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,6 @@ npm link
8888
npm unlink -g
8989
```
9090

91-
## 解决方案
92-
93-
为了方便您顺利的开发脚手架应用程序, 我还贴心的为您补充了一些在脚手架应用程序开发中, 您可能需要的解决方案, 这些第三方库可以帮助您实现更强大更实用更美观的脚手架应用程序, 它们都经过了此项目模板的实际应用和测试, 您可以放心的使用:
94-
95-
- [commander.js](https://github.com/tj/commander.js) - 完整的 node.js 命令行解决方案。
96-
97-
- [kolorist](https://github.com/marvinhagemeister/kolorist) - 将颜色添加到标准输入/输出的微型库
98-
99-
- [prompts](https://github.com/terkelg/prompts) - 轻巧、美观且友好的交互提示工具
100-
101-
- [ora](https://github.com/sindresorhus/ora) - 提供友好的 loading 动画效果 (需要以 Dependencies 安装)
102-
103-
- [citty](https://github.com/unjs/citty) - 优雅的 CLI 构建器
104-
10591
### 依赖性说明
10692

10793
当您的第三方库以开发时依赖 (DevDependencies) 进行安装时, 执行`npm run build` 会将这些依赖打包进生产环境代码中, 如果您使用此方式安装并构建完成后, 发现程序工作异常, 则应该尝试将其作为生产环境依赖 (Dependencies) 进行安装, 当作为生产环境依赖进行安装时, 它们不会被打包进生产环境代码中.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
6+
export default [
7+
{languageOptions: { globals: globals.node }},
8+
pluginJs.configs.recommended,
9+
...tseslint.configs.recommended,
10+
];

templates/cli-unbuild/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
"cli"
2525
],
2626
"devDependencies": {
27+
"@eslint/js": "^9.1.1",
2728
"@types/node": "^20.12.5",
28-
"@types/prompts": "^2.4.9",
29+
"eslint": "^8.57.0",
30+
"globals": "^15.0.0",
2931
"typescript": "^5.4.2",
32+
"typescript-eslint": "^7.7.1",
3033
"unbuild": "^2.0.0"
3134
}
3235
}

0 commit comments

Comments
 (0)