De Voorhoede Playbook
git clone email@example.com:voorhoede/playbook.git cd playbook npm ci
All needed environment variables are listed in the .env.example file. To automatically set them fill in a
.env file following the same structure as the example file.
cp .env.example .env
Fetch content and start local server to preview the website.
npm run docs:content npm run docs:build
srccontains the logic needed to fetch & transform content before building.
docs/.vuepresscontains Vuepress configuration and front-end assets.
Because Vuepress does not support asynchronous configuration the fetching content and building the website is seperated. Which means the needed sidebar data is written to a temporary file so it can be synchronously read from docs/.vuepress/config.js.
Unit tests are present in each file matching the implementation filename ending with
.test.js and are ran with:
The code is written in a functional style using Sanctuary to provide simple, pure functions with no need for