]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Update to the latest version of Grunt & many other packages
authorMicah Miller <mikhey@runbox.com>
Wed, 14 Oct 2020 21:54:09 +0000 (17:54 -0400)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 14 Oct 2020 21:55:35 +0000 (23:55 +0200)
JSHint, JSCS & QUnit-related packages are not updated as they need more code
adjustments.

Fixes #15112
Closes gh-1882

.csslintrc
Gruntfile.js
package.json
tests/visual/menu/menu.html
tests/visual/selectmenu/selectmenu.html
tests/visual/slider/range_slider.html

index 4273f5cc65fc07c1a38c80e14de72f0f3543151a..227cda5158b4f6d75ae6a6349aa1440a2fc1ac1f 100644 (file)
@@ -7,6 +7,7 @@
        "import": false,
        "important": false,
        "outline-none": false,
+       "order-alphabetical": false,
        "overqualified-elements": false,
        "text-indent": false
 }
index 75004eb5862a702fa39cf67e430fd6d0bfe8d6c1..d472eaeef3814105ec774db320d8bf1f86ebf6e9 100644 (file)
@@ -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
index 5a801a84888d2664c24bf0836ed4b2650945981e..079500db6e5fc3068d229fdd2f64c255d66d5649 100644 (file)
                "jquery": ">=1.8.0 <4.0.0"
        },
        "devDependencies": {
-               "commitplease": "2.3.0",
-               "grunt": "0.4.5",
-               "grunt-bowercopy": "1.2.4",
-               "grunt-cli": "0.1.13",
-               "grunt-compare-size": "0.4.0",
-               "grunt-contrib-concat": "0.5.1",
-               "grunt-contrib-csslint": "0.5.0",
+               "commitplease": "3.2.0",
+               "glob": "7.1.6",
+               "grunt": "1.3.0",
+               "grunt-bowercopy": "1.2.5",
+               "grunt-cli": "1.3.2",
+               "grunt-compare-size": "0.4.2",
+               "grunt-contrib-concat": "1.0.1",
+               "grunt-contrib-csslint": "2.0.0",
                "grunt-contrib-jshint": "0.12.0",
                "grunt-contrib-qunit": "1.0.1",
-               "grunt-contrib-requirejs": "0.4.4",
-               "grunt-contrib-uglify": "0.11.1",
-               "grunt-git-authors": "3.1.0",
-               "grunt-html": "6.0.0",
+               "grunt-contrib-requirejs": "1.0.0",
+               "grunt-contrib-uglify": "5.0.0",
+               "grunt-git-authors": "3.2.0",
+               "grunt-html": "14.2.0",
                "grunt-jscs": "2.1.0",
-               "load-grunt-tasks": "3.4.0",
-               "rimraf": "2.5.1",
-               "testswarm": "1.1.0"
+               "load-grunt-tasks": "5.1.0",
+               "rimraf": "3.0.2",
+               "testswarm": "1.1.2"
        },
        "keywords": []
 }
index 9bbaa95e1f4731ed394c8123b5941c74c88e09ab..97ecdb4dfbb90ffeb66c1f8ad63fc8f7b68621fd 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
 <head>
        <meta charset="utf-8">
        <title>Menu Visual Test: Default</title>
index 0dbfc3882ad747cbed830d99abad972c5a3d55e8..1e67beeb9c2e0320459b9a07d2f20ef6c7af3322 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
 <head>
        <meta charset="utf-8">
        <title>Selectmenu Visual Test: Default</title>
index 64152a9ff3d40f30e73edea741801cb95b3e1918..ad756ffde80f04f36607bf96ae67dedcdd9d5746 100644 (file)
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
-<html>
-<head lang="en">
+<html lang="en">
+<head>
        <meta charset="UTF-8">
        <title>jQuery UI Slider - Range slider</title>
        <link rel="stylesheet" href="../../../themes/base/all.css">