Static front-end development workflow featuring Gulp, ES6, Sass, and Nunjucks templates. The intention is to precompile written templates of components, inject them with data, and generate corresponding pages.
- Install Node.js
- Install Bower
npm i bower -g
- Install Yarn
npm i yarn -g
- run
yarn
in project root to install Node dependencies - run
bower install
in project root to install Bower dependencies
- run
npm start
orgulp serve
to watch changes inapp
(changes toapp/data
needs a whole restart) - run
npm run build
to build static assets indist
directory - run
gulp wiredep
if ever adding bower dependencies, it'll update the_layout
partial - run
npm run build; npm run deploy
to deploy generated static pages to Github repository's gh-pages branch
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D