ib-web-boilerplate
v1.0.3
Published
Web app boilerplate
Downloads
10
Readme
A web boilerplate using:
- sass - Precompiled alternative to plain CSS
- autoprefixer - Automatically add vendor prefixes using values from Can I Use
- livereload - Grab the Chrome extension for auto-updating styles
- gulp-connect - Launches a webserver
- browserify - CommonJS dependency management
- jquery - Javascript library for common tasks
- underscore - Javascript helper functions and templating
- gulp - Javascript build tool
- npm - Node package manager
Dependencies: node/npm
===
Install
You'll want to install the boilerplate globally to act as a generator:
$ npm install -g ib-web-boilerplate
Now you should have ib-web-boilerplate
available on your path you can make a new project with:
$ ib-web-boilerplate path/to/project
$ cd path/to/project
$ npm install
Work (Build/Watch)
$ npm run gulp
This also spawns a livereload enabled server on http://localhost:8080
===
Other Tasks:
Add a new package
$ npm install -S PACKAGE_NAME
$ npm run gulp
Production (minified with no sourcemaps) build
$ npm run prod_build
Quick Heroku deployment
Commit your changes to a repo or make a new one:
$ git init $ git add -A $ git commit -m "Initial commit"
Ensure you have the heroku toolbelt or:
$ brew install heroku
Create a new heroku app:
$ heroku login $ heroku create the-subdomain-you-want
Deploy from your master branch:
$ git push heroku master
Check it out:
$ heroku open
Repeat step 3 as needed.