cap means create awesome project, it has some common engineering configurations built in. You can create a project with one line of command.
# npm
npm create cap my-cap-app
# yarn
yarn create cap my-cap-app
# pnpm
pnpm create cap my-cap-appYou can also directly specify the template:
# 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-tsSupported templates: ts, react-ts, vue-ts, svelte-ts, astro-ts
TypeScriptESLintPrettierHuskyLint-StagedVitestGithub Workflow
We have the following templates:
Use tsup to build project using only TypeScript
Use vite to build project using React18 and TypeScript
Use vite to build project using Vue3 and TypeScript
Use vite to build project using Svelte4 and TypeScript
First run install
pnpm installLink cli after build
pnpm build && pnpm --dir ./packages/create-cap link --globalMake changes, run build or watch mode
# run build
pnpm build-create
# run dev watch
pnpm dev-createRun all test
pnpm test && pnpm test:templatepnpm -F=<pkg> publishpnpm -F=<pkg> publish --tag beta