Package Exports
- gulp-ng-annotate-check
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-ng-annotate-check) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-ng-annotate-check
Check if any angularJS annotations is not missing. Plugin is comparing source file with it's ng-annotate version and if they are not same it returns missing annotations.
Usage
npm install --save-dev gulp-ng-annotate-check
var ngAnnotateCheck = require("gulp-ng-annotate-check");
gulp.src("./src/*.js")
.pipe(ngAnnotateCheck({
options: {"single_quotes": true},
callback: function (diff, fileName) {
console.log(fileName);
console.log(diff);
}
}));
API
ngAnnotateCheck(options)
options.callback
Type: Function
Required
Parameters: 1. diff
String and 2.fileName
options.options
Type: Object
Default: {}
Options passed to ng-annotate module.
options.options.single_quotes
Type: Boolean
Default: false
Set to true if you are using single quotes in your angular app.
It prevent from unnecessary differences.