Before developing or building for deployment run:
> dotnet tool restore
> dotnet paket install
Work on the stylesheet site.sass
with:
> cd src
> sass --watch site.sass:site.css --load-path ../node_modules
Install 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 -- --open
Build the stylesheet site.css
with:
> cd src
> sass site.sass:site.css --load-path ../node_modules
Build for deployment with:
npm run build
You 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/ .