Commands

Hyas comes with commands for common tasks.

check

Check local environment:

npm run check

create

Create new page:

npm run create [path]

start

Start local development server:

npm run start

lint

Check scripts, styles, and markdown for errors:

npm run lint

scripts

Check scripts for errors:

npm run lint:scripts [-- --fix]

styles

Check styles for errors:

npm run lint:styles [-- --fix]

markdown

Check markdown for errors:

npm run lint:markdown [-- --fix]

clean

Delete temporary directories:

npm run clean

build

Build production website:

npm run build

preview

Build production website including draft and future content:

npm run build:preview

Edit this page on GitHub