dufu1991 3 лет назад
Родитель
Сommit
cc098ef428

+ 15 - 1
packages/create-stdf/README.md

@@ -4,6 +4,12 @@
 
 A CLI for creating new [STDF](https://stdf.design) projects. Just run...
 
+With BUN:
+
+```bash
+bun create stdf
+```
+
 With PNPM:
 
 ```bash
@@ -25,6 +31,9 @@ npx create-stdf@latest
 You can also directly specify the project name and the template you want to use via additional command line options. For example, to create a new project named `my-app` using the **Vite + Svelte + Tailwind + STDF** template, run:
 
 ```bash
+# bun
+bun create stdf my-app
+
 # pnpm
 pnpm create stdf my-app
 
@@ -35,6 +44,11 @@ npm create stdf@latest my-app
 If you want to use the **Vite + UnoCSS + Svelte + STDF** template, run:
 
 ```bash
+# bun
+bun create stdf my-app -template vu
+# or
+bun create stdf my-app -t vu
+
 # pnpm
 pnpm create stdf my-app --template vu
 # or
@@ -85,7 +99,7 @@ Template presets include:
 For example:
 
 ```bash
-pnpm create stdf my-app -l zh_CN
+bun create stdf my-app -l zh_CN
 ```
 
 # License

+ 15 - 1
packages/create-stdf/README_CN.md

@@ -4,6 +4,12 @@
 
 一个用于创建新的 [STDF](https://stdf.design) 项目的命令行工具。只需运行以下命令...
 
+使用 BUN:
+
+```bash
+bun create stdf
+```
+
 使用 PNPM:
 
 ```bash
@@ -25,6 +31,9 @@ npx create-stdf@latest
 你也可以通过额外的命令行选项直接指定项目名称和要使用的模板。例如,如果要使用 **Vite + Svelte + Tailwind + STDF** 模板创建一个名为 `my-app` 的新项目,请运行:
 
 ```bash
+# bun
+bun create stdf my-app
+
 # pnpm
 pnpm create stdf my-app
 
@@ -35,6 +44,11 @@ npm create stdf@latest my-app
 如果要使用 **Vite + UnoCSS + Svelte + STDF** 模板,请运行:
 
 ```bash
+# bun
+bun create stdf my-app -template vu
+# 或者
+bun create stdf my-app -t vu
+
 # pnpm
 pnpm create stdf my-app --template vu
 # 或者
@@ -85,7 +99,7 @@ npm create stdf@latest my-app -t vu
 例如:
 
 ```bash
-pnpm create stdf my-app -l zh_CN
+bun create stdf my-app -l zh_CN
 ```
 
 # 许可证

+ 1 - 1
packages/create-stdf/package.json

@@ -1,6 +1,6 @@
 {
 	"name": "create-stdf",
-	"version": "0.0.48",
+	"version": "0.0.49",
 	"description": "A CLI for creating new STDF projects",
 	"bin": {
 		"create-stdf": "index.js"

+ 2 - 2
packages/create-stdf/src/index.js

@@ -243,8 +243,8 @@ function createFunc(projectName, item) {
 				`👉 ${bold(lang.tgs)}
 
     ${blue(`cd ${projectName}`)}
-    ${blue('pnpm i / npm i / yarn')}
-    ${blue('npm run dev')}
+    ${blue('bun i / pnpm i / npm i / yarn')}
+    ${blue('bun dev / npm run dev')}
     `,
 			);
 			// 显示配置主题色