dufu1991 df5b73c1f8 [create]修正注释中的空格,优化代码可读性;更新布局和页面组件以支持客户端渲染。 1 anno fa
..
scripts 08c15fa6cf [create]更新脚本以使用node:child_process模块,调整命令输出信息格式,并简化模板路径更新逻辑 1 anno fa
src cc064a7f0e [create]update to 0.1.0 1 anno fa
templates df5b73c1f8 [create]修正注释中的空格,优化代码可读性;更新布局和页面组件以支持客户端渲染。 1 anno fa
README.md 79dcf590b5 更新.gitignore文件以忽略新的SVG字体文件,并修正多个README文档中的许可证描述,确保一致性。 1 anno fa
README_CN.md 79dcf590b5 更新.gitignore文件以忽略新的SVG字体文件,并修正多个README文档中的许可证描述,确保一致性。 1 anno fa
index.js f42d6dcf65 Update cerate-stdf pack 3 anni fa
package.json 450a0bf3e9 [create]删除SvelteKit Uno模板中的sveltekit-uno相关文件 1 anno fa
rollup.config.js bcf2ad31cb [create]Format code 3 anni fa

README.md

简体中文

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 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 template, run:

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

Template presets include:

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

Options

Option Type Default Description
- string - The name of the project, you can direct input.
-t / --template string sktt The template to use. Available templates are: skt, sku, sktt, skut.
-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.