Skip to content

Commit

Permalink
feat(app): add grunt jscs task for maintaining consistent code style
Browse files Browse the repository at this point in the history
  • Loading branch information
DaftMonk committed Sep 28, 2014
1 parent 283d493 commit 8a1a245
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/templates/.jscs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"preset": "google"
}
15 changes: 15 additions & 0 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,21 @@ module.exports = function (grunt) {
}
},

jscs: {
options: {
config: ".jscs.json"
},
main: {
files: {
src: [
'<%%= yeoman.client %>/app/**/*.js',
'<%%= yeoman.client %>/app/**/*.js',
'server/**/*.js'
]
}
}
},

// Empties folders to start fresh
clean: {
dist: {
Expand Down
1 change: 1 addition & 0 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"grunt-contrib-jade": "^0.11.0",<% } %><% if(filters.less) { %>
"grunt-contrib-less": "^0.11.4",<% } %>
"grunt-google-cdn": "~0.4.0",
"grunt-jscs": "~0.7.1",
"grunt-newer": "~0.7.0",
"grunt-ng-annotate": "^0.2.3",
"grunt-rev": "~0.1.0",
Expand Down

0 comments on commit 8a1a245

Please sign in to comment.