@kaho122/create-template
v0.0.2
Published
CLI to scaffold frontend projects from KaHo templates
Readme
@kaho122/create-template
CLI tool to scaffold frontend projects from KaHo templates. Supported frameworks: Vue 2, Vue 3, React, React Native.
Installation
You can use this package directly with npx (or pnpm dlx, yarn create):
npx @kaho122/create-template
# or
npm init @kaho122/templateUsage
Interactive Mode
Simply run the command and follow the prompts:
npx @kaho122/create-templateYou will be asked to:
- Enter a project name.
- Select a framework (Vue2 / Vue3 / React / RN).
- Select a variant (JavaScript / TypeScript).
Command Line Arguments
You can also specify the project name and template via arguments to skip prompts:
npx @kaho122/create-template <project-name> --template <template-name>Example:
npx @kaho122/create-template my-vue-app --template vue3-tsSupported Templates
vue2-jsvue3-jsvue3-tsreact-jsreact-tsrn-jsrn-ts
Development
This CLI downloads templates from Gitee: kaho_zZ/template-set.
To build locally:
pnpm install
pnpm buildLicense
MIT
