Skip to content

Commit

Permalink
Adding depcheck task
Browse files Browse the repository at this point in the history
Adding depcheck (for specials) and gulp-depcheck deps
Removing unused dep (should)
Renaming gulp tasks slightly
  • Loading branch information
edj-boston committed Jun 24, 2017
1 parent c59d092 commit 67433b1
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 24 deletions.
17 changes: 12 additions & 5 deletions gulpfile.js
@@ -1,8 +1,9 @@
'use strict';

const g = require('gulp-load-plugins')(),
gulp = require('gulp'),
rules = require('@edjboston/eslint-rules');
const depcheck = require('depcheck'),
g = require('gulp-load-plugins')(),
gulp = require('gulp'),
rules = require('@edjboston/eslint-rules');


// Instrument the code
Expand Down Expand Up @@ -56,11 +57,17 @@ gulp.task('lint', () => {


// Check deps with David service
gulp.task('deps', () => {
gulp.task('david', () => {
return gulp.src('package.json')
.pipe(g.david());
});

// Check for unused deps
gulp.task('depcheck', g.depcheck({
specials : [
depcheck.special['gulp-load-plugins']
]
}));

// Build macro
gulp.task('build', done => {
Expand All @@ -74,7 +81,7 @@ gulp.task('travis', done => {


// Task for local development
gulp.task('default', [ 'deps', 'build' ], () => {
gulp.task('default', [ 'david', 'depcheck', 'build' ], () => {
return gulp.watch([
'lib/*',
'test/*'
Expand Down

0 comments on commit 67433b1

Please sign in to comment.