lynndylanhurley / gulp-ng-base

Gulp, angular, jade, stylus, bootstrap project base.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

defsynth

About

This app uses the following:

Languages

Libraries

Testing


Requirements

  • nodejs
  • cairo

Installation

  1. brew install cairo - for sprites
  2. export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfig - still for sprites
  3. npm install - install all server-side deps
  4. bower install - install all client-side deps

Development

Start Dev Server

gulp dev - broadcast dev server to localhost:9000. use livereload for automatic refresh.


Testing

Unit Tests

Unit tests use karma + mocha.

karma start - runs all tests in test/unit/**/*.coffee

E2E Tests

E2E Tests use protractor + mocha.

gulp test:e2e - runs all tests in test/e2e/**/*.coffee


Deployment

This assumes the following, where ENV_NAME is the name of the target NODE_ENV (production, staging, etc.)

  1. An heroku app exists, and its git remote is named ENV_NAME
  2. The heroku app has its NODE_ENV set to ENV_NAME (using heroku config:set)
  3. there is an s3 bucket config defined in config/ENV_NAME.yml. see config/production.yml.example for an example configuration.

Push to heroku production env

NODE_ENV=production gulp deploy

Push to heroku staging env

NODE_ENV=staging gulp deploy

About

Gulp, angular, jade, stylus, bootstrap project base.


Languages

Language:CoffeeScript 69.8%Language:JavaScript 25.9%Language:CSS 4.3%