All you need to design, build and run great digital services in Defence.
Install the long-term support (LTS) version of Node.js, which includes npm.
git clone https://github.com/defencedigital/moduk-service-toolkit.git moduk-service-toolkit
cd moduk-service-toolkit
npm install
Watch for changes to CSS
, JS
, Images
, Nunjucks
or Markdown
. Automatically update the browser, without the need for a manual refresh.
npm run dev
Visit: http://localhost:8080
Render CSS
, JS
, Images
, Nunjucks
. Compress files and generates HTML
pages, ready for production. It also performs a W3C validation on HTML
, to ensure everything is valid.
npm run prod