Просмотр исходного кода

[create]将 create-stdf 版本更新至 0.2.6,并在文档中统一更新创建命令为使用最新版本的 stdf。

dufu1991 1 год назад
Родитель
Сommit
40a74dcb73

+ 12 - 12
packages/create-stdf/README.md

@@ -39,7 +39,7 @@ You can also directly specify the project name and the template you want to use
 <!-- :::code-groups -->
 <!-- pnpm -->
 ```sh
-pnpm create stdf my-app
+pnpm create stdf@latest my-app
 ```
 <!-- :: -->
 <!-- npm -->
@@ -49,12 +49,12 @@ npm create stdf@latest my-app
 <!-- :: -->
 <!-- bun -->
 ```sh
-bun create stdf my-app
+bun create stdf@latest my-app
 ```
 <!-- :: -->
 <!-- yarn -->
 ```sh
-yarn create stdf my-app
+yarn create stdf@latest my-app
 ```
 <!-- ::: -->
 
@@ -63,9 +63,9 @@ If you want to use the **SvelteKit & Tailwind & STDF** template, run:
 <!-- :::code-groups -->
 <!-- pnpm -->
 ```sh
-pnpm create stdf my-app --template skt
+pnpm create stdf@latest my-app --template skt
 # or
-pnpm create stdf my-app -t skt
+pnpm create stdf@latest my-app -t skt
 ```
 <!-- :: -->
 <!-- npm -->
@@ -77,16 +77,16 @@ npm create stdf@latest my-app -t skt
 <!-- :: -->
 <!-- bun -->
 ```sh
-bun create stdf my-app --template skt
+bun create stdf@latest my-app --template skt
 # or
-bun create stdf my-app -t skt
+bun create stdf@latest my-app -t skt
 ```
 <!-- :: -->
 <!-- yarn -->
 ```sh
-yarn create stdf my-app --template skt
+yarn create stdf@latest my-app --template skt
 # or
-yarn create stdf my-app -t skt
+yarn create stdf@latest my-app -t skt
 ```
 <!-- ::: -->
 
@@ -137,7 +137,7 @@ For example:
 <!-- :::code-groups -->
 <!-- pnpm -->
 ```sh
-pnpm create stdf my-app -l zh_CN
+pnpm create stdf@latest my-app -l zh_CN
 ```
 <!-- :: -->
 <!-- npm -->
@@ -147,12 +147,12 @@ npm create stdf@latest my-app -l zh_CN
 <!-- :: -->
 <!-- bun -->
 ```sh
-bun create stdf my-app -l zh_CN
+bun create stdf@latest my-app -l zh_CN
 ```
 <!-- :: -->
 <!-- yarn -->
 ```sh
-yarn create stdf my-app -l zh_CN
+yarn create stdf@latest my-app -l zh_CN
 ```
 <!-- ::: -->
 

+ 12 - 12
packages/create-stdf/README_CN.md

@@ -39,7 +39,7 @@ yarn create stdf@latest
 <!-- :::code-groups -->
 <!-- pnpm -->
 ```sh
-pnpm create stdf my-app
+pnpm create stdf@latest my-app
 ```
 <!-- :: -->
 <!-- npm -->
@@ -49,12 +49,12 @@ npm create stdf@latest my-app
 <!-- :: -->
 <!-- bun -->
 ```sh
-bun create stdf my-app
+bun create stdf@latest my-app
 ```
 <!-- :: -->
 <!-- yarn -->
 ```sh
-yarn create stdf my-app
+yarn create stdf@latest my-app
 ```
 <!-- ::: -->
 
@@ -63,9 +63,9 @@ yarn create stdf my-app
 <!-- :::code-groups -->
 <!-- pnpm -->
 ```sh
-pnpm create stdf my-app --template skt
+pnpm create stdf@latest my-app --template skt
 # 或
-pnpm create stdf my-app -t skt
+pnpm create stdf@latest my-app -t skt
 ```
 <!-- :: -->
 <!-- npm -->
@@ -77,16 +77,16 @@ npm create stdf@latest my-app -t skt
 <!-- :: -->
 <!-- bun -->
 ```sh
-bun create stdf my-app --template skt
+bun create stdf@latest my-app --template skt
 # 或
-bun create stdf my-app -t skt
+bun create stdf@latest my-app -t skt
 ```
 <!-- :: -->
 <!-- yarn -->
 ```sh
-yarn create stdf my-app --template skt
+yarn create stdf@latest my-app --template skt
 # 或
-yarn create stdf my-app -t skt
+yarn create stdf@latest my-app -t skt
 ```
 <!-- ::: -->
 
@@ -137,7 +137,7 @@ yarn create stdf my-app -t skt
 <!-- :::code-groups -->
 <!-- pnpm -->
 ```sh
-pnpm create stdf my-app -l zh_CN
+pnpm create stdf@latest my-app -l zh_CN
 ```
 <!-- :: -->
 <!-- npm -->
@@ -147,12 +147,12 @@ npm create stdf@latest my-app -l zh_CN
 <!-- :: -->
 <!-- bun -->
 ```sh
-bun create stdf my-app -l zh_CN
+bun create stdf@latest my-app -l zh_CN
 ```
 <!-- :: -->
 <!-- yarn -->
 ```sh
-yarn create stdf my-app -l zh_CN
+yarn create stdf@latest my-app -l zh_CN
 ```
 <!-- ::: -->
 

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

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

+ 1 - 3
packages/create-stdf/templates/sktt/vite.config.ts

@@ -2,6 +2,4 @@ import tailwindcss from '@tailwindcss/vite';
 import { sveltekit } from '@sveltejs/kit/vite';
 import { defineConfig } from 'vite';
 
-export default defineConfig({
-	plugins: [tailwindcss(), sveltekit()]
-});
+export default defineConfig({ plugins: [tailwindcss(), sveltekit()] });