- Run
nvm installto install the appropriate version of Node.js. - Run
nvm useto install the appropriate version of Node.js. - Run
npm ito install relevant packages.
| Command | Description |
|---|---|
npm run dev |
Start a local developer server that is accessible from http://localhost:4321/. |
npm run start |
Start a local production server that is accessible from http://localhost:4321/. |
npm run build |
Build the site for production and place it in a build folder in the root directory. |
npm run lint |
Runs all lint commands in sequence: CSS, TS, JS. |
npm run lint:css |
Alert you of any CSS linter errors and will automatically fix them. |
npm run lint:js |
Alert you of any JS linter errors and will automatically fix them. |
npm run lint:ts |
Alert you of any TypeScript errors and will automatically fix them. |
npm run pretty |
Will run through all compatible files and format them based on Prettier's configuration. |