mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
parent
3188e1c40c
commit
8d4157f4e3
45
Gruntfile.js
45
Gruntfile.js
@ -55,19 +55,6 @@ var
|
||||
},
|
||||
component = grunt.option( "component" ) || "**",
|
||||
|
||||
jscsBad = [
|
||||
"ui/button.js",
|
||||
"ui/datepicker.js",
|
||||
"ui/draggable.js",
|
||||
"ui/droppable.js",
|
||||
"ui/effect.js",
|
||||
"ui/mouse.js",
|
||||
"ui/resizable.js",
|
||||
"ui/selectable.js",
|
||||
"ui/slider.js",
|
||||
"ui/sortable.js"
|
||||
],
|
||||
|
||||
htmllintBad = [
|
||||
"demos/tabs/ajax/content*.html",
|
||||
"demos/tooltip/ajax/content*.html",
|
||||
@ -150,35 +137,13 @@ grunt.initConfig({
|
||||
|
||||
// Remove the requireSpacesInsideParentheses override once everything is fixed
|
||||
jscs: {
|
||||
"ui-good": [ "ui/*.js" ].concat( jscsBad.map( function( file ) {
|
||||
return "!" + file;
|
||||
} ) ),
|
||||
"ui-bad": {
|
||||
all: {
|
||||
options: {
|
||||
requireSpacesInsideParentheses: null
|
||||
requireCapitalizedComments: null
|
||||
},
|
||||
src: jscsBad
|
||||
},
|
||||
tests: {
|
||||
options: {
|
||||
requireSpacesInsideParentheses: null
|
||||
},
|
||||
src: "tests/unit/**/*.js"
|
||||
},
|
||||
grunt: {
|
||||
options: {
|
||||
requireSpacesInsideParentheses: null
|
||||
},
|
||||
src: [ "Gruntfile.js", "build/tasks/*.js" ]
|
||||
},
|
||||
demos: {
|
||||
options: {
|
||||
|
||||
// While the style guide removed onevar upgrading jscs to allow it causes too many
|
||||
// errors right now
|
||||
disallowMultipleVarDecl: null
|
||||
},
|
||||
src: "demos/**/*.js"
|
||||
files: {
|
||||
src: [ "demos/**/*.js", "build/**/*.js", "tests/**/*.js", "ui/**/*.js" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
uglify: minify,
|
||||
|
Loading…
Reference in New Issue
Block a user