A base for front-end development with AngularJS.
- Application
- RequireJS - JavaScript file and module loader
- Sass - CSS extension language
- Bourbon - Mixin library for Sass
- Neat - Grid framework for Sass and Bourbon
- Bitters - Scaffold styles for Bourbon projects
- Refills - Prepackaged patterns built on top of Bourbon
- Bower - Front-end package manager
- Gulp - Streaming build system
- Testing
- angular-mocks - Mocking for AngularJS
- Karma - JavaScript unit test runner
- Mocha - Testing framework
- Chai - Super-flexible assertion library
- Protractor - End-to-end test runner
- Style
- airbnb/javascript - JavaScript Style Guide
- Install bower using
sudo npm install bower -g
. Then run bower in the ng-boilerplate directory to install front-end dependencies:bower install
. - Install gulp using
sudo npm install gulp -g
. Then install the gulp plugins:npm install
. - Run
gulp
to compile, minify, lint and test front-end assets. - Run
gulp debug default
while you are developing so that you can use the unminified version of your assets. - Run
gulp server
orgulp debug server
if you want the default task run and your files served by a development HTTP server (includes livereload!) - Run
gulp test
to execute a single run of tests.
I hope you find this useful!
«–– Ian