You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
421 B
JavaScript

9 years ago
'use strict';
var gulp = require('gulp');
var browserSync = require('browser-sync');
var $ = require('gulp-load-plugins')();
module.exports = function(options) {
gulp.task('scripts', function () {
return gulp.src(options.src + '/{app,components}/**/*.js')
.pipe($.jshint())
.pipe($.jshint.reporter('jshint-stylish'))
.pipe(browserSync.reload({ stream: true }))
.pipe($.size());
});
};