LandRover/YowJS

View on GitHub
gulp/tasks/jscpd.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

/**
 * jscpd, finds duplicate code
 */
const gulp = require('gulp'),
      jscpd = require('gulp-jscpd'),
      config = require('./../config');

gulp.task('jscpd', () => {
    return gulp.src([config.path.js.files])
        .pipe(jscpd(config.jscpd));
});