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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions adam_sulewski/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
10 changes: 10 additions & 0 deletions adam_sulewski/.jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"node": true,
"globals": {
"describe": true,
"it": true,
"before": true,
"beforeEach": true,
"after": true
}
}
33 changes: 33 additions & 0 deletions adam_sulewski/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
var gulp = require('gulp');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');

var appFiles = ['index.js', 'lib/**/*.js', 'gulpfile.js'];
var testFiles = ['test/**/*.js'];
var files = appFiles.concat(testFiles);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might be able to pass in multiple glob arrays.


gulp.task('mocha', ['jshint'], function() {
return gulp.src('test/greet_test.js', {read: false})
.pipe(mocha());
});

gulp.task('jshint:test', function() {
return gulp.src(testFiles)
.pipe(jshint())
.pipe(jshint.reporter('default'))
.pipe(jshint.reporter('fail'));
});

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

gulp.task('watch', function() {
gulp.watch(files, ['mocha']);
});

gulp.task('jshint', ['jshint:test', 'jshint:app']);
gulp.task('default', ['mocha']);
14 changes: 0 additions & 14 deletions adam_sulewski/node_modules/chai/.npmignore

This file was deleted.

217 changes: 0 additions & 217 deletions adam_sulewski/node_modules/chai/CONTRIBUTING.md

This file was deleted.

Loading