An opinionated starter template for vite or rollup with a cli to generate template project.
First install the package as a global dependency:
npm i @sky-fly/template -g
Then generate a project:
create
Also directly use npx tool to generate a project without globally install it is available:
npx @sky-fly/template init
Can pass one CLI option as the project name, which will be used to decide the folder name where the generated project template will be placed.
create project-name
Can also pass another CLI option as the package name, which will be used to overwrite the default in the project. If not specified, the project name will be used as the package name.
create project-name package-name
Other available CLI options are shown below:
Name | Default | Type | Description |
---|---|---|---|
--template -t | - | 'vite-vue'|'vite-react'|'rollup' |
decide the template the project is intended to use |
--package-manager -p | - | 'npm'|'yarn'|'pnpm' |
decide the package manager the project is going to use |
MIT © skyclouds2001