Skip to content

Commit

Permalink
Fix jscs config, add gulp rules
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 10, 2015
1 parent 5c93149 commit 9989abf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions gulpfile.js
@@ -0,0 +1,18 @@
var gulp = require('gulp');
var mocha = require('gulp-mocha');
var config = require('./package.json');
var jscs = require('gulp-jscs');

gulp.task('mocha', function() {
return gulp.src('./test/*').
pipe(mocha({ reporter: 'dot' }));
});

gulp.task('jscs', function() {
return gulp.src('./index.js').
pipe(jscs(config.jscsConfig));
});

gulp.task('watch', function() {
gulp.watch('./index.js', ['jscs', 'mocha']);
});
6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -13,13 +13,17 @@
},
"devDependencies": {
"acquit": "0.0.3",
"gulp": "3.8.10",
"gulp-mocha": "2.0.0",
"gulp-jscs": "1.4.0",
"istanbul": "0.3.5",
"jscs": "1.9.0",
"mocha": "2.0.0"
},
"jscsConfig": {
"preset": "airbnb",
"requireMultipleVarDecl": null
"requireMultipleVarDecl": null,
"disallowMultipleVarDecl": true
},
"author": "Valeri Karpov <val@karpov.io>",
"license": "Apache 2.0"
Expand Down

0 comments on commit 9989abf

Please sign in to comment.