Skip to content

open-reblock/openreblock

Repository files navigation

Development

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 directory
  • npm install && bower install will install all the node and bower modules needed locally for development.
  • gulp serve to view website locally

Editing HTML

The html templates use nunjucks. The main html file is layouts/default.html. The example pages use the project.html layout template.

Gulp Tasks

  • gulp serve to develop locally
  • gulp build to build the production site
  • gulp --tasks to see all gulp tasks

Deployment

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)