dufu1991 cf6b03f162 【create】更新 create-stdf 模板,添加新的 SVG 图标和代码文件,同时删除不再使用的模板文件,优化项目结构。 1 year ago
..
snippet cf6b03f162 【create】更新 create-stdf 模板,添加新的 SVG 图标和代码文件,同时删除不再使用的模板文件,优化项目结构。 1 year ago
src cf6b03f162 【create】更新 create-stdf 模板,添加新的 SVG 图标和代码文件,同时删除不再使用的模板文件,优化项目结构。 1 year ago
templates cf6b03f162 【create】更新 create-stdf 模板,添加新的 SVG 图标和代码文件,同时删除不再使用的模板文件,优化项目结构。 1 year ago
README.md 9faf6720ef [create]更新中文和英文的 README 文件,移除多余的换行符,优化代码块格式。 1 year ago
README_CN.md 9faf6720ef [create]更新中文和英文的 README 文件,移除多余的换行符,优化代码块格式。 1 year ago
index.js f42d6dcf65 Update cerate-stdf pack 3 years ago
package.json cf6b03f162 【create】更新 create-stdf 模板,添加新的 SVG 图标和代码文件,同时删除不再使用的模板文件,优化项目结构。 1 year ago
rollup.config.js bcf2ad31cb [create]Format code 3 years ago

README.md

简体中文

Since v0.2.2, you can choose to use stdf-icon or iconify for icons.

create-stdf

A CLI for creating new STDF projects. Just run...

pnpm create stdf
npm create stdf@latest
# or
npm init stdf@latest
# or
npx create-stdf@latest
bun create stdf
yarn create stdf

...and follow the prompts.

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 SvelteKit & Tailwind & TypeScript & STDF & stdf-icon template, run:

pnpm create stdf my-app
npm create stdf@latest my-app
bun create stdf my-app
yarn create stdf my-app

If you want to use the SvelteKit & Tailwind & STDF & stdf-icon template, run:

pnpm create stdf my-app --template skts
# or
pnpm create stdf my-app -t skts
npm create stdf@latest my-app --template skts
# or
npm create stdf@latest my-app -t skts
bun create stdf my-app --template skts
# or
bun create stdf my-app -t skts
yarn create stdf my-app --template skts
# or
yarn create stdf my-app -t skts

Template presets include:

Abbreviation Template Description
sktts SvelteKit & Tailwind & TypeScript & stdf-icon Default
skts SvelteKit & Tailwind & stdf-icon -
sktti SvelteKit & Tailwind & TypeScript & iconify -
skti SvelteKit & Tailwind & iconify -
skttsi SvelteKit & Tailwind & TypeScript & stdf-icon & iconify -
sktsi SvelteKit & Tailwind & stdf-icon & iconify -
skuts SvelteKit & UnoCSS & TypeScript & stdf-icon Not adapted yet
skus SvelteKit & UnoCSS & stdf-icon Not adapted yet
skuti SvelteKit & UnoCSS & TypeScript & iconify Not adapted yet
skui SvelteKit & UnoCSS & iconify Not adapted yet
skutsi SvelteKit & UnoCSS & TypeScript & stdf-icon & iconify Not adapted yet
skusi SvelteKit & UnoCSS & stdf-icon & iconify Not adapted yet

Options

Option Type Default Description
- string - The name of the project, you can direct input.
-t / --template string sktts The template to use.
-l / --language string en_US The language of the prompts.

Supported Languages

Code Language
en_US English (US)
zh_CN Chinese (Simplified)
zh_TW Chinese (Traditional)
ja_JP Japanese
ko_KR Korean
es_ES Spanish
ru_RU Russian
fr_FR French
de_DE German
it_IT Italian

For example:

pnpm create stdf my-app -l zh_CN
npm create stdf@latest my-app -l zh_CN
bun create stdf my-app -l zh_CN
yarn create stdf my-app -l zh_CN

License

This project is licensed under the MIT License.