https://github.com/lvqq/cap
⚡ A command-line tool to help you initialize projects
https://github.com/lvqq/cap
command-line-tool create-app template tsup typescript vite vitest
Last synced: 21 days ago
JSON representation
⚡ A command-line tool to help you initialize projects
- Host: GitHub
- URL: https://github.com/lvqq/cap
- Owner: lvqq
- License: mit
- Created: 2022-09-02T15:10:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-06-22T14:52:08.000Z (24 days ago)
- Last Synced: 2025-06-22T15:41:28.358Z (24 days ago)
- Topics: command-line-tool, create-app, template, tsup, typescript, vite, vitest
- Language: TypeScript
- Homepage:
- Size: 1.74 MB
- Stars: 19
- Watchers: 0
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cap
[](https://www.npmjs.com/package/create-cap)  [](https://coveralls.io/github/lvqq/cap?branch=main)  
cap means **create awesome project**, it has some common engineering configurations built in. You can create a project with one line of command.
## Usage
```bash
# npm
npm create cap my-cap-app
# yarn
yarn create cap my-cap-app
# pnpm
pnpm create cap my-cap-app
```You can also directly specify the template:
```bash
# npm
npm create cap my-cap-app --template react-ts
# yarn
yarn create cap my-cap-app --template react-ts
# pnpm
pnpm create cap my-cap-app --template react-ts
```Supported templates: `ts`, `react-ts`, `vue-ts`, `svelte-ts`, `astro-ts`
## Common configurations
- `TypeScript`
- `ESLint`
- `Prettier`
- `Husky`
- `Lint-Staged`
- `Vitest`
- `Github Workflow`## Templates
We have the following templates:### ts
Use `tsup` to build project using only `TypeScript`### react-ts
Use `vite` to build project using `React18` and `TypeScript`### vue-ts
Use `vite` to build project using `Vue3` and `TypeScript`### svelte-ts
Use `vite` to build project using `Svelte4` and `TypeScript`# Development
First run install
```bash
pnpm install
```Link cli after build
```bash
pnpm build && pnpm --dir ./packages/create-cap link --global
```Make changes, run build or watch mode
```bash
# run build
pnpm build-create# run dev watch
pnpm dev-create
```Run all test
```bash
pnpm test && pnpm test:template
```# Publish
## latest
```bash
pnpm -F= publish
```## beta
```bash
pnpm -F= publish --tag beta
```# License
[MIT](https://github.com/lvqq/cap/blob/main/LICENSE)