Skip to content

Repository files navigation

@domstack/create-app

npm version Actions Status neostandard JavaScript style

Create a new DOMStack app.

Usage

npm create @domstack/app@latest my-app

The npm create convention maps @domstack/app to this package, @domstack/create-app. The command creates the project and installs its dependencies.

To create the files without installing dependencies:

npm create @domstack/app@latest my-app -- --no-install

Then start the development server:

cd my-app
npm run dev

Generated project

my-app/
├── src/
│   ├── page.md
│   └── style.css
├── .gitignore
├── package.json
└── README.md

The generated scripts are:

  • npm run dev starts DOMStack in watch mode.
  • npm run build builds the site into public/.
  • npm run preview serves the production build.

The generated project currently follows the beta release of @domstack/static.

Other package managers

pnpm create @domstack/app@latest my-app
yarn create @domstack/app my-app
bun create @domstack/app@latest my-app

Programmatic API

import { createApp } from '@domstack/create-app'

createApp({
  targetDirectory: 'my-app',
  install: false,
})

License

MIT

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages