Skip to content

Add angularjs dependency injection annotations with ng-annotate

License

Notifications You must be signed in to change notification settings

kentcdodds/gulp-ng-annotate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-ng-annotate Build Status

Add angularjs dependency injection annotations with ng-annotate

Install

$ npm install --save-dev gulp-ng-annotate

Usage

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'));
});

Options

You can pass any of the ng-annotate options as an object:

{
	remove: true,
	add: true,
	single_quotes: true
}

add: true option is implied by default unless remove is set to true.

License

gulp-ng-annotate - Add angularjs dependency injection annotations with ng-annotate

Written in 2014 by Kagami Hiiragi [email protected]

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/.

About

Add angularjs dependency injection annotations with ng-annotate

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%