This site used the yeoman gulp-webapp generator. It uses bootstrap-sass for css and nunjucks for html templating.
- Install node & npm
- Install bower
cd
into the webapp directorynpm install && bower install
will install all the node and bower modules needed locally for development.gulp serve
to view website locally
The html templates use nunjucks. The main html file is layouts/default.html
. The example pages use the project.html layout template.
gulp serve
to develop locallygulp build
to build the production sitegulp --tasks
to see all gulp tasks
Site is deployed via Github pages. The gh-pages branch contains the live site. To push to the live site:
gulp build
(this will create dist folder with site contents)git add *
(need to commit dist folder changes to master)git commit -m 'update dist'
git subtree push --prefix dist origin gh-pages
(push dist folder to gh-pages)