Getting started
To get started with your Staart Site, add @staart/site as a dev dependency to your project:
yarn add -D @staart/siteYou can also use the npm client instead:
npm install @staart/site --save-devThen, use the site command to generate your static site:
yarn siteOr, if you’re using the default npm client:
npm run siteYou should see something like the following output in your terminal:
✔ success Start Site built in 0.39sQuickstart
If you don’t want to add the dependency, the easiest way is to use npx to generate a static site in your current working directory:
npx @staart/siteProgrammatically generating websites
import { generate } from "@staart/site";
generate({ /* options */ })
.then(() => console.log("Completed"))
.catch(error => console.error(error));