Skip to content

filso/gulp-ng-dependency-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gulp wrapper for Angular Dependency Injection linter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages