added unit testing, and started implementing unit tests...phew
This commit is contained in:
23
node_modules/yaeti/gulpfile.js
generated
vendored
Normal file
23
node_modules/yaeti/gulpfile.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
var
|
||||
/**
|
||||
* Dependencies.
|
||||
*/
|
||||
gulp = require('gulp'),
|
||||
jscs = require('gulp-jscs'),
|
||||
jshint = require('gulp-jshint'),
|
||||
stylish = require('gulp-jscs-stylish');
|
||||
|
||||
|
||||
gulp.task('lint', function () {
|
||||
var src = ['gulpfile.js', 'index.js', 'lib/**/*.js'];
|
||||
|
||||
return gulp.src(src)
|
||||
.pipe(jshint('.jshintrc')) // Enforce good practics.
|
||||
.pipe(jscs('.jscsrc')) // Enforce style guide.
|
||||
.pipe(stylish.combineWithHintResults())
|
||||
.pipe(jshint.reporter('jshint-stylish', {verbose: true}))
|
||||
.pipe(jshint.reporter('fail'));
|
||||
});
|
||||
|
||||
|
||||
gulp.task('default', gulp.task('lint'));
|
Reference in New Issue
Block a user