@qwikdev/create-astro
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Create @qwikdev/astro 🎉

Scaffolding for QwikDev/astro projects

🛠️ CLI

  • With NPM:

    npm create @qwikdev/astro@latest [project] [adapter] [...options]
  • With Yarn:

    yarn create @qwikdev/astro [project] [adapter] [...options]
  • With PNPM:

    pnpm create @qwikdev/astro [project] [adapter] [...options]
  • With Bun:

    bun create @qwikdev/astro [project] [adapter] [...options]

The create @qwikdev/astro command runs interactively without any arguments or options.

However, it is possible to use the interactive mode as described below:

Types of arguments:

Name Type Default value Description
project String ./qwik-astro-app Directory of the project.
adapter "deno" or "node" node Server adapter.

Types of options:

Name Description
--help (-h) Display available flags.
--it Execute actions interactively.
--dry-run Walk through steps without executing.
--force / --no-force (-f / --no-f) Overwrite target directory if it exists.
--install / --no-install (-i / --no-i) Install dependencies.
--biome / --no-biome Prefer Biome to ESLint/Prettier.
--git / --no-git Initialize Git repository.
--ci / --no-ci Add CI workflow.
--yes (-y) Skip all prompts by accepting defaults.
--no (-n) Skip all prompts by declining defaults.

📦 API

  • Use the arguments provided in the command line:

    import createQwikAstro from '@qwikdev/create-astro';
    
    createQwikAstro();
  • Specify the command line arguments to use:

    import { runCreate } from '@qwikdev/create-astro';
    
    runCreate("./qwik-astro-app", "node", "--it");
  • Pass the arguments to create a new project:

    import { createProject } from '@qwikdev/create-astro';
    
    const config = {
      project: "./qwik-astro-app",
      starter: "node",
      it: false,
    };
    
    createProject(config);

Project configuration type:

export type ProjectConfig = {
  project: string;
  adapter?: "deno" | "node";
  force?: boolean;
  install?: boolean;
  biome?: boolean;
  git?: boolean;
  ci?: boolean;
  yes: boolean;
  no: boolean;
  it: boolean;
  dryRun: boolean;
};

🌍 Community

🔗 Related

Package Sidebar

Install

npm i @qwikdev/create-astro

Weekly Downloads

12

Version

0.0.5

License

MIT

Unpacked Size

260 kB

Total Files

80

Last publish

Collaborators

  • hirez.io
  • shairez
  • aslemammad
  • gioboa
  • jackshelton
  • heinthanth
  • mhevery