/angular-boilerplate

Lightweight boilerplate with Angular 1.5.0, SASS, Grunt and Karma (headless with Phantom)

Primary LanguageJavaScript

A basic AngularJS boilerplate Build Status npm installs Code Climate

A basic template with (now updated to Angular 1.5.0)

  • Different folders for staging and production
  • grunt compile for one minified JavaScript file for production
  • ImmutableJS library for immutable data
  • Headless browser testing with PhantomJS
  • Jasmine testing framework
  • AngularJS inoffical style guide and patterns implemented
  • Multiple language support

Install either via

  1. git clone git@github.com:gruberb/angular-boilerplate.git
  2. cd angular-boilerplate
  3. npm -g install grunt-cli karma
  4. gem install sass
  5. npm install

Run

grunt serve

Open a browser and navigate to localhost:9001

Coverage

To see the coverage report navigate to coverage folder created by grunt serve, build or compile, and locate index.html file.

Build process

Staging

grunt build for not minified version to debug in the browser

Production

grunt compile for creating a bin folder with one minified JavaScript file for production

For compiling the langauge files you need to add them to list in Gruntfile config under jsonmin->locale->files