dufu1991 847619d7c2 [create]update rollup config 3 лет назад
..
src c7bf27415d [create]Support command parameters to quickly create projects 3 лет назад
templates 1804d2572f [create]fix UnoCSS template readme 3 лет назад
README.md c7bf27415d [create]Support command parameters to quickly create projects 3 лет назад
README_CN.md c7bf27415d [create]Support command parameters to quickly create projects 3 лет назад
index.js f42d6dcf65 Update cerate-stdf pack 3 лет назад
package.json c7bf27415d [create]Support command parameters to quickly create projects 3 лет назад
rollup.config.js 847619d7c2 [create]update rollup config 3 лет назад

README.md

简体中文

create-stdf

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

With PNPM:

pnpm create stdf

With NPM:

npm create stdf@latest
# or
npm init stdf@latest
# or
npx 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, to create a new project named my-app using the Vite + Svelte + Tailwind + STDF template, run:

# pnpm
pnpm create stdf my-app

# npm
npm create stdf@latest my-app

If you want to use the Vite + UnoCSS + Svelte + STDF template, run:

# pnpm
pnpm create stdf my-app --template vu
# or
pnpm create stdf my-app -t vu

# npm
npm create stdf@latest my-app --template vu
# or
npm create stdf@latest my-app -t vu

Template presets include:

abbreviation template description
vt Vite + Tailwind + Svelte + STDF default
vu Vite + UnoCSS + Svelte + STDF -
skt SvelteKit + Tailwind + STDF Has not adapted yet
sku SvelteKit + UnoCSS + STDF Has not adapted yet
vtt Vite + Tailwind + TypeScript + Svelte + STDF Has not adapted yet
vut Vite + UnoCSS + TypeScript + Svelte + STDF Has not adapted yet
sktt SvelteKit + Tailwind + TypeScript + STDF Has not adapted yet
skut SvelteKit + UnoCSS + TypeScript + STDF Has not adapted yet

Options

Option Type Default Description
- string - The name of the project, you can direct input.
-t / --template string vt The template to use. Available templates are: vt, vu, skt, sku, vtt, vut, sktt, skut.
-l / --language string en_US The language of the prompts. Available languages are: en_US, zh_CN.

License

This project is licensed under the MIT License. Feel free to enjoy and contribute to this open-source project.