Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qwikdev/create-astro

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qwikdev/create-astro

Interactive CLI for create @QwikDev/astro projects.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-75%
Maintainers
0
Weekly downloads
 
Created
Source

Create @qwikdev/astro 🎉

Scaffolding for QwikDev/astro projects

🛠️ CLI

  • With NPM:

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

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

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

    bun create @qwikdev/astro [destination] [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:

NameTypeDefault valueDescription
destinationString.Directory of the project.
adapter"deno" or "node" or "none"noneServer adapter.

Types of options:

NameDescription
--help (-h)Display available flags.
--dry-runWalk through steps without executing.
--force / --no-force (-f / --no-f)Overwrite target directory if it exists.
--add / --no-add (-a / --no-a)Add QwikDev/astro to existing project.
--install / --no-install (-i / --no-i)Install dependencies.
--biome / --no-biomePrefer Biome to ESLint/Prettier.
--git / --no-gitInitialize Git repository.
--ci / --no-ciAdd 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 { run } from '@qwikdev/create-astro';
    
    run(["./qwik-astro-app", "node"]);
    

Definition type:

export type Definition = {
  destination: string;
  adapter?: "deno" | "node" | "none";
  force?: boolean;
  add?: boolean;
  install?: boolean;
  biome?: boolean;
  git?: boolean;
  ci?: boolean;
  yes?: boolean;
  no?: boolean;
  dryRun?: boolean;
};

Default definition:

export const defaultDefinition = {
  destination: ".",
  adapter: "none",
  force: undefined,
  add: undefined,
  install: undefined,
  biome: undefined,
  git: undefined,
  ci: undefined,
  yes: undefined,
  no: undefined,
  dryRun: undefined
} as const;

🌍 Community

Keywords

FAQs

Package last updated on 25 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc