This repository is build on top of a fork of static-site-boilerplate by Adam Beres-Deak, with some modifications:
- Sass instead of Less
- different Javascript workflow
- adapted Gruntfile.js file
- Clone this repository
git clone https://github.com/atelierbram/build-boilerplate
- Install node dependencies
npm install
- Simply run
grunt build
to see that everything works
You can run grunt --dev
while developing. This starts a new web server on port 3000 (http://localhost:3000/).
After every change the affected files are regenerated.
grunt
- default task: build everything and then whatches for changes and regenerated the affected filesgrunt build
- builds everythinggrunt clean
- cleanupgrunt assemble
- generates html with Assemblegrunt sass
- generated css file(s) from Sass.scss filesgrunt concat
- concatenates JavaScript.js filesgrunt uglify
- minifies JavaScript.js filesgrunt cssmin
- minifies CSS.css filesgrunt hashres
- computes hash code for static resources (aka cachebusting)grunt connect
- starts web server and stops it automatically when all the other tasks finishedgrunt watch
- checks for file modifications and runs the appropriate tasks
All tasks accept a --dev
flag, which disables CPU intensive tasks like JS-optimization. This should only be used during development.
- Static site generation with Assemble
- Generating and minifying a single CSS file with Sass
- Concatanate and minify JavaScript
- Generating hash (cache buster) for JS and CSS files
- Automatic regeneration and Liverload during development
- static-site-boilerplate by Adam Beres-Deak
- grunt-assemble-boilerplate
- Effeckt.css
- article by Chis Coyier
For a more opinionated starter-theme and boilerplate for static site generation, one could consider Flex Starter - which uses, among other things grunt-gh-pages, to push to your gh-pages branch hosted on GitHub or any other branch anywhere else. Even better, when one likes parts of this thing, but other parts not so much, then maybe have flex-starter and this thing side by side, pick and choose, assemble your own starter-theme: make your own Bootstrap.
Released under MIT Licence