paper.js/gulp/tasks/jshint.js
2016-01-25 11:35:15 +01:00

22 lines
619 B
JavaScript

/*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2016, Juerg Lehni & Jonathan Puckey
* http://scratchdisk.com/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
cache = require('gulp-cached');
gulp.task('jshint', function () {
return gulp.src('src/**/*.js')
.pipe(cache('jshint', { optimizeMemory: true }))
.pipe(jshint())
.pipe(jshint.reporter('jshint-summary'));
});