dufu1991 00aaa68cf1 [create]更新 create-stdf 版本至 0.2.9,修正文件路径读取方式,优化项目名称存在性提示信息的注释格式。 1 年間 前
..
snippet cf6b03f162 【create】更新 create-stdf 模板,添加新的 SVG 图标和代码文件,同时删除不再使用的模板文件,优化项目结构。 1 年間 前
src 00aaa68cf1 [create]更新 create-stdf 版本至 0.2.9,修正文件路径读取方式,优化项目名称存在性提示信息的注释格式。 1 年間 前
templates 40a74dcb73 [create]将 create-stdf 版本更新至 0.2.6,并在文档中统一更新创建命令为使用最新版本的 stdf。 1 年間 前
README.md 13fa95f9d3 [create]将 create-stdf 版本更新至 0.2.8,优化 README 文件中的命令选项格式,增加项目名称已存在的提示信息。 1 年間 前
README_CN.md 13fa95f9d3 [create]将 create-stdf 版本更新至 0.2.8,优化 README 文件中的命令选项格式,增加项目名称已存在的提示信息。 1 年間 前
index.js f42d6dcf65 Update cerate-stdf pack 3 年 前
package.json 00aaa68cf1 [create]更新 create-stdf 版本至 0.2.9,修正文件路径读取方式,优化项目名称存在性提示信息的注释格式。 1 年間 前
rollup.config.js 11e6ae2726 [create]更新 create-stdf 版本至 0.2.7,优化 README 文件中的命令示例,修正命令行参数描述,添加获取最新版本号的功能。 1 年間 前

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@latest
npm create stdf@latest
# or
npm init stdf@latest
# or
npx create-stdf@latest
bun create stdf@latest
yarn create stdf@latest

...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: create a new project named my-app using the SvelteKit & Tailwind & TypeScript & STDF template, run:

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

Prompt language is Simplified Chinese, use SvelteKit & Tailwind & STDF template, use Iconify to manage icons, create a new project named my-app, run:

pnpm create stdf@latest my-app --template skt --language zh_CN --icon-usage iconify
# or
pnpm create stdf@latest my-app --t skt --l zh_CN --i iconify
npm create stdf@latest my-app --template skt --language zh_CN --icon-usage iconify
# or
npm create stdf@latest my-app --t skt --l zh_CN --i iconify
bun create stdf@latest my-app --template skt --language zh_CN --icon-usage iconify
# or
bun create stdf@latest my-app --t skt --l zh_CN --i iconify
yarn create stdf@latest my-app --template skt --language zh_CN --icon-usage iconify
# or
yarn create stdf@latest my-app --t skt --l zh_CN --i iconify

Options

Option Default Description
- - The name of the project, you can direct input.
--t / --template sktt The template to use.
--l / --language en_US The language of the prompts.
--i / --icon-usage stdf-icon The icon usage method.

Template presets

Abbreviation Template Description
sktt SvelteKit & Tailwind & TypeScript Default
skt SvelteKit & Tailwind -
skut SvelteKit & UnoCSS & TypeScript Not adapted yet
sku SvelteKit & UnoCSS Not adapted yet

Language presets

Abbreviation 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

Icon usage presets

Abbreviation Description
stdf-icon Use rollup-plugin-stdf-icon to manage icons.
iconify Use iconify to manage icons.
both Use both rollup-plugin-stdf-icon and iconify to manage icons.
none Do not use any tool to manage icons.

License

This project is licensed under the MIT License.