0.1.0 • Published 8 years ago

gulp-ng-dependency-lint v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

gulp-ng-dependency-lint

AngularJS Dependency Injection linter

Issues with the output should be reported on the ng-dependency-lint issue tracker.

Install

$ npm install --save-dev gulp-ng-dependency-lint

Usage

var gulp = require('gulp');
var dependencyLint = require('gulp-ng-dependency-lint');

// to automatically remove 
gulp.task('ng-dependency-lint', function () {
	return gulp.src('src/**/*.js')
		.pipe(dependencyLint({removeDependency: true}))
		.pipe(gulp.dest('dist'));
});

// this will only print unused dependency list
gulp.task('ng-dependency-lint', function () {
  return gulp.src('src/**/*.js')
    .pipe(dependencyLint());
});

API

diLint(options)

options.remove

Type: boolean
Default: false

Removes unused dependency injection from list of component arguments.

License

MIT © Filip Sobczak