This boilerplate runs on Gulp and Nunjucks.
- Install npm packages:
npm install
- Install gulp:
npm install --global gulp-cli
All pages can be found under src > template > pages
which use the default layout template found under src > template > layouts > default.njk
.
You can also find all partials under src > template > partials > *.njk
.
All CSS dependencies are imported at src > css > main.scss
.
All JS files are part of the scriptFiles
array in the gulpfile.js
.
When working locally, running the local build command gulp
will start a local server of the site and will automatically open your browser. Whenever changes are saved, the site will automaticaly regenerate your files and update your browser.
Running gulp production
will build and compress your pages for production.