Skip to content

Commit

Permalink
Adds jscs task & .jscsrc
Browse files Browse the repository at this point in the history
  • Loading branch information
John F. Mercer committed Oct 20, 2015
1 parent 2250be9 commit d305c9b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"preset" : "google",
"maximumLineLength" : 120
}
9 changes: 7 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var gulp = require('gulp');
var Server = require('karma').Server;
var coveralls = require('gulp-coveralls');
var jshint = require('gulp-jshint');
// var jscs = require('gulp-jscs');
var jscs = require('gulp-jscs');

var paths = {
'spec': 'spec/**/*.js',
Expand Down Expand Up @@ -33,4 +33,9 @@ gulp.task('lint', function() {
.pipe(jshint.reporter('fail'));
});

gulp.task('default', ['test', 'coveralls', 'lint']);
gulp.task('style', function() {
return gulp.src([paths.src, paths.spec])
.pipe(jscs());
});

gulp.task('default', ['test', 'coveralls', 'lint', 'style']);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"devDependencies": {
"gulp": "^3.9.0",
"gulp-coveralls": "^0.1.4",
"gulp-jscs": "^3.0.1",
"gulp-jshint": "^1.11.2",
"jasmine-core": "^2.3.4",
"karma": "^0.13.11",
Expand Down

0 comments on commit d305c9b

Please sign in to comment.