Angular Library Boilerplate
A great boilerplate for making and publishing an Angular library
What is Angular Library Boilerplate?
Angular library boilerplate is an opinionated starter project that contains the build process you need but don't want to deal with.
Quick start
git clone https://github.com/rbalicki2/angular-library-boilerplate
cd angular-library-boilerplate
npm install
npm install -g gulp
bower install
gulp
And once it starts watching, in another terminal tab:
cat angular-library-boilerplate.js
Quick reference: command line
gulp
gulp lint
gulp test
gulp build
gulp watch
Basics
- Rename your project in package.json and bower.json
- Put your source code into src/
- All your source code is concatenated and minified and put into .js and .min.js
- See gulp-tasks/config.json for options passed to jshint, spec, etc. as well as command line options
Choices
- jshint for linting
- karma and jasmine for unit testing
- Spec files are of the form *.spec.js
Future
- Order the files so *.module.js files get included first
Contact
Robert Balicki, robert.balicki@gmail.com