Created
March 1, 2014 07:50
-
-
Save orhanveli/9286671 to your computer and use it in GitHub Desktop.
closure linter with Grunt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell: { | |
closure_linter: '../tools/js/gjslinter/closure_linter', | |
src: ['app/scripts/controllers', | |
'app/scripts/services app/scripts/app.js'], | |
clean_deps: { | |
command: 'rm -f <%= closureDepsWriter.zwoup.dest %>', | |
options: { | |
stdout: true | |
} | |
}, | |
fixstyle: { | |
command: '<%= shell.closure_linter %>/fixjsstyle.py -r' + | |
'<%= shell.src.join(\' \') %> --strict', | |
options: { | |
stdout: true | |
} | |
}, | |
checkstyle: { | |
command: '<%= shell.closure_linter %>/gjslint.py -r '+ | |
'<%= shell.src.join(\' \') %> --strict', | |
options: { | |
stdout: true | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment