Before developing or building for deployment run:
> dotnet tool restore
> npm install
Work on the stylesheet site.sass with:
> cd src
> sass --watch site.sass:site.css --load-path ../node_modulesInstall dependencies with npm install (or pnpm install or yarn) and start a development server with:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --openBuild the stylesheet site.css with:
> cd src
> sass site.sass:site.css --load-path ../node_modulesBuild for deployment with:
npm run buildYou can preview the built app with
npm run preview. This should not be used to serve your app in production.
Build on branch develop, switch to branch main and then copy the build to the root, commit and push.
> cp -a build/ .