gulp-ng-annotate ![Build Status](https://camo.githubusercontent.com/19ad83b53bbf2f3096838c82d4e621432e4ccefa62a3ebdd6becdcbb36a47ac2/68747470733a2f2f7472617669732d63692e6f72672f4b6167616d692f67756c702d6e672d616e6e6f746174652e7376673f6272616e63683d6d6173746572)
Add angularjs dependency injection annotations with ng-annotate
$ npm install --save-dev gulp-ng-annotate
var gulp = require('gulp');
var ngAnnotate = require('gulp-ng-annotate');
gulp.task('default', function () {
return gulp.src('src/app.js')
.pipe(ngAnnotate())
.pipe(gulp.dest('dist'));
});
You can pass any of the ng-annotate options as an object:
{
remove: true,
add: true,
single_quotes: true
}
If no options provided, plugin will be executed with {add: true}
gulp-ng-annotate - Add angularjs dependency injection annotations with ng-annotate
Written in 2014 by Kagami Hiiragi kagami@genshiken.org
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.