diff options
author | Felix Nagel <info@felixnagel.com> | 2013-11-26 00:18:25 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-11-26 00:18:25 +0100 |
commit | 5bc7fc2b1a248063b4d52086dfc32fae8601680e (patch) | |
tree | 82c176a82f64ca3c1a26648b9e3bf0d2f7282dd8 /Gruntfile.js | |
parent | c20f1f8457802f90f8f06bcd2a33c340c2226b7c (diff) | |
parent | 9a5f20bc7d5218f864fb65d5d20775596065280d (diff) | |
download | jquery-ui-5bc7fc2b1a248063b4d52086dfc32fae8601680e.tar.gz jquery-ui-5bc7fc2b1a248063b4d52086dfc32fae8601680e.zip |
Merge branch 'selectmenu' of github.com:jquery/jquery-ui into selectmenu
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index c6fcd3095..24b9632f0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -106,6 +106,7 @@ grunt.loadNpmTasks( "grunt-contrib-uglify" ); grunt.loadNpmTasks( "grunt-contrib-concat" ); grunt.loadNpmTasks( "grunt-contrib-qunit" ); grunt.loadNpmTasks( "grunt-contrib-csslint" ); +grunt.loadNpmTasks( "grunt-jscs-checker" ); grunt.loadNpmTasks( "grunt-html" ); grunt.loadNpmTasks( "grunt-compare-size" ); grunt.loadNpmTasks( "grunt-git-authors" ); @@ -162,6 +163,13 @@ grunt.initConfig({ dest: "dist/jquery-ui.css" } }, + jscs: { + // datepicker, sortable, resizable and draggable are getting rewritten, ignore until that's done + ui: [ "ui/jquery.ui.*.js", "!ui/jquery.ui.datepicker.js", "!ui/jquery.ui.sortable.js", "!ui/jquery.ui.resizable.js", "!ui/jquery.ui.draggable.js" ], + // TODO enable this once we have a tool that can help with fixing formatting of existing files + // tests: "tests/unit/**/*.js", + grunt: "Gruntfile.js" + }, uglify: minify, htmllint: { // ignore files that contain invalid html, used only for ajax content testing @@ -198,7 +206,7 @@ grunt.initConfig({ }); grunt.registerTask( "default", [ "lint", "test" ] ); -grunt.registerTask( "lint", [ "asciilint", "jshint", "csslint", "htmllint" ] ); +grunt.registerTask( "lint", [ "asciilint", "jshint", "jscs", "csslint", "htmllint" ] ); grunt.registerTask( "test", [ "qunit" ] ); grunt.registerTask( "sizer", [ "concat:ui", "uglify:main", "compare_size:all" ] ); grunt.registerTask( "sizer_all", [ "concat:ui", "uglify", "compare_size" ] ); |