joshfry / assemble-bp

Renamed "boilerplate" to "assemble-bp" to keep consistent with Yeoman generator.

Home Page:https://github.com/joshfry/generator-assemble-bp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boilerplate

A front-end tool for generating static sites with Grunt, Assemble, Bower, Sass, Bourbon, Bourbon Neat and Bourbon Bitters.

This is my personal starting point for new projects... totally meant to be customized.

Requirements

Ubuntu Users

One-time Setup

$ rake init
  • Installs Grunt CLI
  • Installs Bower CLI

Install

$ rake
  • Installs Ruby Gems to /vendor/ruby
  • Installs Bower packages to /vendor/bower
  • Installs npm modules to /node_modules

Grunt commands

Development

$ grunt dev

Production

$ grunt build

To view production build:

$ grunt p

If you get an error after running $ grunt dev that says EMFILE: too many open files,
add ulimit -n 9999 to your .bash_profile.


What's goin' on here?

Grunt: Automation

Development tasks

  • Local server @ http://localhost:8000
  • Watch task
  • Livereload (without browser extension)
  • Sass compiling
  • JS concatenation
  • JS hinting
  • Assemble, for static site generation
  • Clean and Copy commands
  • Outputs to dist/ directory

Production tasks

  • Image compression
  • Concatenate and minify linked files
  • Outputs to build/ directory

Bower: Package manager

Default packages

Install new packages

$ bower install <git repo> --save

--save adds the package to bower.json so that when $ bower install is run, the package will be installed.

About

Renamed "boilerplate" to "assemble-bp" to keep consistent with Yeoman generator.

https://github.com/joshfry/generator-assemble-bp


Languages

Language:CSS 53.9%Language:JavaScript 30.1%Language:Handlebars 14.8%Language:Ruby 1.3%