Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions walter_nicholas/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
50 changes: 50 additions & 0 deletions walter_nicholas/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');

var appFiles = ['lib/**/*.js', 'bin/**/*.js'];
var testFiles = ['test/**/*.js'];

gulp.watch(appFiles, ['mocha:test', 'jshint:app']);

gulp.task('jshint:test', function (){
return gulp.src(testFiles)
.pipe(jshint({

node: true,
globals: {
describe: true,
it: true,
}

}))
.pipe(jshint.reporter('default'));

});

gulp.task('jshint:app', function(){
return gulp.src(appFiles)
.pipe(jshint({
node: true
}))
.pipe(jshint.reporter('default'));
})

gulp.task('mocha:test', function (){
return gulp.src(testFiles)
.pipe(mocha({

node: true,
globals: {
describe: true,
it: true,
}

}))
// .pipe(mocha({reporter: 'spec'}));
// took out mocha reporter because mocha results appear in console after running gulp already so it seemed redundant
});

gulp.task('default', ['jshint', 'mocha']);
gulp.task('jshint', ['jshint:test', 'jshint:app']);
gulp.task('mocha', ['mocha:test']);
1 change: 1 addition & 0 deletions walter_nicholas/node_modules/.bin/jshint

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions walter_nicholas/node_modules/gulp-jshint/.npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions walter_nicholas/node_modules/gulp-jshint/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

218 changes: 218 additions & 0 deletions walter_nicholas/node_modules/gulp-jshint/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading