Starters
March 20, 2025 ยท View on GitHub
This folder stores "starter" projects for the CLI. The idea is that during the CLI execution, the developer can choose a particular starter app and combine it with a specific server and features.
All starters are based on starters/apps/base, including the package.json and tsconfig.json. Depending on the options the user selects, their starter merges into the base app.
Developer
Here are steps to try out the CLI in a local environment.
- Build the CLI:
pnpm build.cli
- Run the CLI:
pnpm cli.qwik
If you want to test the CLI on consumer repository, you can
pnpm link.diston the qwik monorepo, thenpnpm link --global @qwik.dev/coreon the consumer project, and finally run the CLI from there.
Publishing create-qwik CLI Package
The starter CLI is published at the same time as @qwik.dev/core. When published, the CLI will update the base app's package.json to point to the published version of Qwik.
The base app's package.json's devDependencies are updated with:
{
"devDependencies": {
"@qwik.dev/core": "<QWIK_VERSION_BEING_PUBLISHED>",
"typescript": "<SAME_AS_ROOT_PACKAGE>",
"vite": "<SAME_AS_ROOT_PACKAGE>"
}
}