A complete site boilerplate for @andismith's personal projects
To produce feature-full static HTML sites in next to no time.
This boilerplate requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide.
- Fork the repo
git clone https://github.com/andismith/site-boilerplate.git
cd site-boilerplate
- Install project dependencies with
npm install
- Make sure you have the Grunt command-line interface with
npm install -g grunt-cli
- Install SASS 3.3.0.alpha.198 with
gem install sass --pre
for Source Maps - Run Grunt with
grunt
for development build, watch and server - Run Grunt with
grunt
[dev
|prod
] for development/production build
- Seperate source
src
and distributiondist
folders - Watches files and runs a partial compliation on the files that have changed
- Runs on
localhost:3000
- Assemble Templating with Handlebars
- Styles - Normalize CSS resets, auto-prefixing, SASS compliation, Source Maps
- JavaScript - JSHint, Source Maps and Uglification
- JSON - Site Configuration and Linting
- Images - Image Minification
- Latest jQuery, Modernizr, RequireJS and Lo-Dash
- Version number incremental updates
- Gruntfile hinting
- Production build tasks with
grunt prod
- Ensure git subtree is installed.
$git clone https://github.com/apenwarr/git-subtree
andsh install.sh
- From the root run:
git subtree push --prefix dist origin gh-pages --force
You can edit files directly in the browser in Chrome Canary. Canary shows the dist folder, but you can edit the src folder. Grunt will auto rebuild and LiveReload will load your changes.
- Download Live Reload
- Go to Chrome Flags
- Enable Developer Tool Experiments, Restart
- Go to Settings, and enable Sass stylesheet debugging
- Restart developer tools
- Go to General and Enable Source Maps
- Go to Workspace and add the
src
folder - Go to Sources, right click a SASS or JS file and Enable Network Mapping
- Close the developer tools
- Start
grunt
- Turn on the Live Reload extension
- Refresh the page and open developer tools
- Edit CSS/JS to your hearts content
- 0.0.5
- Sourcemap support for SASS. Ensure you have run
gem install sass --pre
andnpm install
after this update to get latest changes - Removed over eager version number updater. Run with
version:dev
orversion:prod
to update version instead - Instructions for ultimate workflow in readme.md
- Editing the gruntfile rebuilds the project
- Sourcemap support for SASS. Ensure you have run
- 0.0.4
- Initial release to Github
- Add Common Styles
- Require JS
- Jasmine Testing
- Sitemap.xml using Assemble
Found an issue, have an idea? github.com/andismith/site-boilerplate/issues