gulp-ng-dependency-lint

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i gulp-ng-dependency-lint

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • noahpryor