portails/content/docs/prologue/commands.md

1.1 KiB

title description lead date lastmod draft images menu weight toc
Commands Doks comes with commands for most used tasks. Doks comes with commands for most used tasks. 2020-10-13T15:21:01+02:00 2020-10-13T15:21:01+02:00 false
docs
parent
prologue
030 true

{{< alert icon="💡" text="You can change the commands in the scripts section of ./package.json." >}}

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

functions

Build Lambda functions:

npm run build:functions

preview

Build production website including draft and future content:

npm run build:preview