A basic AngularJS boilerplate
A basic template with
- 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 style guide and patterns implemented
- Multiple language support
Install either via
git clone git@github.com:gruberb/angular-boilerplate.git
cd angular-boilerplate
sudo npm -g install grunt-cli karma
npm install
or via
npm install angular-karma-boilerplate
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