aboutsummaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorMicah Miller <mikhey@runbox.com>2020-10-14 17:54:09 -0400
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-10-14 23:55:35 +0200
commita22361dbe491c494a87f38600d9c1f91aa07d3e0 (patch)
tree0a6d0f0f74010be6e164158804fde8d388a704fa /Gruntfile.js
parentf5d38e2e05bd54073c2bf8e8210b78b2cf2637d8 (diff)
downloadjquery-ui-a22361dbe491c494a87f38600d9c1f91aa07d3e0.tar.gz
jquery-ui-a22361dbe491c494a87f38600d9c1f91aa07d3e0.zip
Build: Update to the latest version of Grunt & many other packages
JSHint, JSCS & QUnit-related packages are not updated as they need more code adjustments. Fixes #15112 Closes gh-1882
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 75004eb58..d472eaeef 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -3,6 +3,7 @@ module.exports = function( grunt ) {
"use strict";
var
+ glob = require( "glob" ),
// files
coreFiles = [
@@ -93,7 +94,7 @@ function mapMinFile( file ) {
}
function expandFiles( files ) {
- return grunt.util._.pluck( grunt.file.expandMapping( files ), "src" ).map( function( values ) {
+ return grunt.util._.map( grunt.file.expandMapping( files ), "src" ).map( function( values ) {
return values[ 0 ];
} );
}
@@ -133,7 +134,7 @@ function createBanner( files ) {
"<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" +
( files ? "* Includes: " + fileNames.join( ", " ) + "\n" : "" ) +
"* Copyright <%= pkg.author.name %>;" +
- " Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */\n";
+ " Licensed <%= _.map(pkg.licenses, 'type').join(', ') %> */\n";
}
grunt.initConfig( {
@@ -202,9 +203,9 @@ grunt.initConfig( {
ignore: [
/The text content of element “script” was not in the required format: Expected space, tab, newline, or slash but found “.” instead/
] },
- src: [ "demos/**/*.html", "tests/**/*.html" ].concat( htmllintBad.map( function( file ) {
- return "!" + file;
- } ) )
+ src: glob.sync("{demos,tests}/**/*.html", {
+ ignore: htmllintBad
+ } )
},
bad: {
options: {
@@ -212,7 +213,8 @@ grunt.initConfig( {
/Start tag seen without seeing a doctype first/,
/Element “head” is missing a required instance of child element “title”/,
/Element “object” is missing one or more of the following/,
- /The “codebase” attribute on the “object” element is obsolete/
+ /The “codebase” attribute on the “object” element is obsolete/,
+ /Consider adding a “lang” attribute to the “html” start tag/
]
},
src: htmllintBad