add style check to gruntfile PR: #326 PR-URL: https://github.com/apache/couchdb-fauxton/pull/326 Reviewed-By: garren smith <garren.sm...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/9343084a Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/9343084a Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/9343084a Branch: refs/heads/master Commit: 9343084ace991386fab014529efdfdc67e10f389 Parents: ae16ad9 Author: Robert Kowalski <r...@kowalski.gd> Authored: Mon Mar 23 02:30:10 2015 +0100 Committer: Robert Kowalski <robertkowal...@apache.org> Committed: Wed Mar 25 11:12:07 2015 +0100 ---------------------------------------------------------------------- Gruntfile.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9343084a/Gruntfile.js ---------------------------------------------------------------------- diff --git a/Gruntfile.js b/Gruntfile.js index 1bbcd94..781d97d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -409,6 +409,10 @@ module.exports = function (grunt) { command: 'node ./node_modules/react-tools/bin/jsx -x jsx app/addons/ app/addons/', stdout: true, failOnError: true + }, + + 'stylecheck': { + command: 'npm run stylecheck', } }, @@ -508,7 +512,7 @@ module.exports = function (grunt) { */ // clean out previous build artifacts and lint grunt.registerTask('lint', ['clean', 'jshint']); - grunt.registerTask('test', ['jsx', 'lint', 'dependencies', 'gen_initialize:development', 'test_inline']); + grunt.registerTask('test', ['jsx', 'lint', 'shell:stylecheck', 'dependencies', 'gen_initialize:development', 'test_inline']); // lighter weight test task for use inside dev/watch grunt.registerTask('test_inline', ['mochaSetup', 'jst', 'concat:test_config_js', 'mocha_phantomjs']); // Fetch dependencies (from git or local dir), lint them and make load_addons @@ -528,9 +532,9 @@ module.exports = function (grunt) { // build a debug release grunt.registerTask('debug', ['lint', 'dependencies', "gen_initialize:development", 'jsx', 'concat:requirejs', 'less', 'concat:index_css', 'template:development', 'copy:debug']); - grunt.registerTask('debugDev', ['clean', 'dependencies', "gen_initialize:development", 'jsx', 'jshint', 'less', 'concat:index_css', 'template:development', 'copy:debug']); + grunt.registerTask('debugDev', ['clean', 'dependencies', "gen_initialize:development", 'jsx', 'jshint', 'shell:stylecheck', 'less', 'concat:index_css', 'template:development', 'copy:debug']); - grunt.registerTask('watchRun', ['clean:watch', 'dependencies', 'jshint']); + grunt.registerTask('watchRun', ['clean:watch', 'dependencies', 'jshint', 'shell:stylecheck']); // build a release grunt.registerTask('release_commons_prefix', ['clean', 'dependencies']);