forked from smartsheet-platform/smartsheet-javascript-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (29 loc) · 816 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//var gulp = require('gulp');
//var mocha = require('gulp-mocha');
//
//gulp.task('default', function() {
// return gulp.src(['test/test-*.js'], { read: false })
// .pipe(mocha({
// reporter: 'spec',
// globals: {
// should: require('should')
// }
// }));
//
//});
/* File: gulpfile.js */
// grab our packages
var gulp = require('gulp'),
jshint = require('gulp-jshint');
// define the default task and add the watch task to it
gulp.task('default', ['watch']);
// configure the jshint task
gulp.task('jshint', function() {
return gulp.src('lib/**/*.js')
.pipe(jshint())
.pipe(jshint.reporter('jshint-stylish'));
});
// configure which files to watch and what tasks to use on file changes
gulp.task('watch', function() {
gulp.watch('lib/**/*.js', ['jshint']);
});