create-kosmo
v0.6.3
Published
Project scaffolder for KosmoJS - `npm create kosmo`
Downloads
660
Readme
create-kosmo
Creates a KosmoJS project and its first source folder.
Usage
npm create kosmo my-app
npm create kosmo . # in the current folderRun without arguments for an interactive prompt, or pass flags to skip it:
npm create kosmo my-app -- --frontend react --backend hono --ssrpnpm and yarn do not need the extra --:
pnpm create kosmo my-app --frontend react --backend hono| Flag | Values |
|---|---|
| --frontend | react, vue, solid, svelte, mdx, or --no-frontend for an API-only folder |
| --backend | hono, h3, koa, or --no-backend for a client-only folder |
| --ssr | enable server-side rendering |
| --ssg | enable static site generation (implies --ssr) |
| --tsq | enable TanStack Query |
| --overwrite | overwrite existing files |
| -q, --quiet | suppress output, errors still shown |
This installs @kosmojs/core, @kosmojs/cli and
@kosmojs/dev into the new project, so you never add them by hand.
To add further source folders to an existing project, use kosmo folder rather than running the scaffolder again.
Documentation
Full documentation at kosmojs.dev.
License
MIT
