1.0.3 • Published 11 years ago
ib-web-boilerplate v1.0.3
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-boilerplateNow 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 installWork (Build/Watch)
$ npm run gulpThis also spawns a livereload enabled server on http://localhost:8080
===
Other Tasks:
Add a new package
$ npm install -S PACKAGE_NAME
$ npm run gulpProduction (minified with no sourcemaps) build
$ npm run prod_buildQuick Heroku deployment
1) Commit your changes to a repo or make a new one:
$ git init
$ git add -A
$ git commit -m "Initial commit"2) Ensure you have the heroku toolbelt or:
$ brew install heroku3) Create a new heroku app:
$ heroku login
$ heroku create the-subdomain-you-want3) Deploy from your master branch:
$ git push heroku master4) Check it out:
$ heroku open5) Repeat step 3 as needed.