diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-11-16 12:25:21 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2013-11-16 12:25:21 +0100 |
commit | 43772f3e5bb531d917bec884bfbd0be196110fd8 (patch) | |
tree | d60d96a569eb47f901b8a800a8fc0f0f95e6c70e /Gruntfile.js | |
parent | 0be76bbcfd7a2092aca1b4b01b90dab4e4fe00da (diff) | |
parent | 9fd0e86820dcea532d5357e0b814653746d62889 (diff) | |
download | jquery-ui-43772f3e5bb531d917bec884bfbd0be196110fd8.tar.gz jquery-ui-43772f3e5bb531d917bec884bfbd0be196110fd8.zip |
Merge branch 'master' 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" ] ); |