open-index/open-npm huggingface dataset:
npm package: @kaho122/create-template
Description: CLI to scaffold frontend projects from KaHo templates
Latest version: 0.0.2

# @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`):

```bash
npx @kaho122/create-template
# or
npm init @kaho122/template
```

## Usage

### Interactive Mode

Simply run the command and follow the prompts:

```bash
npx @kaho122/create-template
```

You will be asked to:

1. Enter a project name.
2. Select a framework (Vue2 / Vue3 / React / RN).
3. Select a variant (JavaScript / TypeScript).

### Command Line Arguments

You can also specify the project name and template via arguments to skip prompts:

```bash
npx @kaho122/create-template <project-name> --template <template-name>
```

**Example:**

```bash
npx @kaho122/create-template my-vue-app --template vue3-ts
```

### Supported Templates

- `vue2-js`
- `vue3-js`
- `vue3-ts`
- `react-js`
- `react-ts`
- `rn-js`
- `rn-ts`

## Development

This CLI downloads templates from [Gitee: kaho_zZ/template-set](https://gitee.com/kaho_zZ/template-set).

To build locally:

```bash
pnpm install
pnpm build
```

## License

MIT