Create a new DOMStack app.
npm create @domstack/app@latest my-appThe 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-installThen start the development server:
cd my-app
npm run devmy-app/
├── src/
│ ├── page.md
│ └── style.css
├── .gitignore
├── package.json
└── README.md
The generated scripts are:
npm run devstarts DOMStack in watch mode.npm run buildbuilds the site intopublic/.npm run previewserves the production build.
The generated project currently follows the beta release of @domstack/static.
pnpm create @domstack/app@latest my-app
yarn create @domstack/app my-app
bun create @domstack/app@latest my-appimport { createApp } from '@domstack/create-app'
createApp({
targetDirectory: 'my-app',
install: false,
})MIT