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.
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.dist
on the qwik monorepo, thenpnpm link --global @builder.io/qwik
on the consumer project, and finally run the cli from there.
The starter cli is published at the same time as @builder.io/qwik
. 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": {
"@builder.io/qwik": "<QWIK_VERSION_BEING_PUBLISHED>",
"typescript": "<SAME_AS_ROOT_PACKAGE>",
"vite": "<SAME_AS_ROOT_PACKAGE>"
}
}