Skip to content

Commit

Permalink
Merge pull request #32 from varya/features/jscs
Browse files Browse the repository at this point in the history
Features/jscs
  • Loading branch information
hannu committed Oct 7, 2014
2 parents 7c81411 + 45fe8ca commit 499c6bb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"preset": "airbnb",

"validateIndentation": 2
}
6 changes: 6 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var gulp = require('gulp'),
bower = require('gulp-bower'),
mainBowerFiles = require('main-bower-files'),
path = require('path'),
jscs = require('gulp-jscs'),
styleguide = require('./lib/styleguide'),
distPath = './lib/dist',
configPath = util.env.config ? util.env.config.replace(/\/$/, '') : null,
Expand Down Expand Up @@ -50,6 +51,11 @@ gulp.task('serve', function() {
});
});

gulp.task('jscs', function(){
return gulp.src(['lib/*.js'])
.pipe(jscs());
});

gulp.task('styleguide', function() {
return createStyleguide();
});
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"repository": {
"type": "git",
"url" : "https://github.com/SC5/sc5-styleguide.git"
"url": "https://github.com/SC5/sc5-styleguide.git"
},
"main": "./lib/styleguide.js",
"dependencies": {
Expand Down Expand Up @@ -52,8 +52,10 @@
"yargs": "^1.3.1"
},
"devDependencies": {
"gulp-jscs": "^1.1.2",
"gulp-jshint": "^1.8.4",
"gulp-livereload": "^2.1.1",
"jscs": "^1.6.2",
"tiny-lr": "^0.1.4"
},
"scripts": {
Expand Down

0 comments on commit 499c6bb

Please sign in to comment.