Skip to content

Commit cb3e58e

Browse files
committed
feat(grunt): Added JSCS syntax checker to the grunt task chain
1 parent 419af7f commit cb3e58e

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.jscsrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"preset": "airbnb"
3+
}

grunt/aliases.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ default:
3232
fast-build:
3333
- 'clean:dist'
3434
- 'jshint'
35+
- 'jscs'
3536
- 'concat:dist'
3637
- 'ngAnnotate'
3738
- 'uglify'
3839
- 'concat:license'
39-
- 'concat:license-minified'
40+
- 'concat:license-minified'
4041

4142
build:
4243
- 'fast-build'

grunt/jscs.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"src": ["src/directives/*.js", "src/services/**/*.js"],
3+
"options": {
4+
"config": ".jscsrc",
5+
"fix": true
6+
}
7+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"grunt-contrib-uglify": "^0.10.0",
2424
"grunt-contrib-watch": "^0.6.1",
2525
"grunt-graphviz": "^0.1.1",
26+
"grunt-jscs": "^2.3.0",
2627
"grunt-karma": "^0.12.1",
2728
"grunt-ng-annotate": "^1.0.1",
2829
"grunt-open": "^0.2.3",

0 commit comments

Comments
 (0)