Description: fix build Author: Yadd Forwarded: not-needed Last-Update: 2021-11-08 Index: jqueryui/Gruntfile.js =================================================================== --- jqueryui.orig/Gruntfile.js +++ jqueryui/Gruntfile.js @@ -154,8 +154,8 @@ grunt.initConfig( { options: { baseUrl: "./", paths: { - jquery: "./external/jquery/jquery", - external: "./external/" + jquery: "/usr/share/nodejs/jquery/dist/jquery", + external: "/usr/share/nodejs/" }, preserveLicenseComments: false, optimize: "none", @@ -172,167 +172,6 @@ grunt.initConfig( { }, minify, - htmllint: { - good: { - options: { - ignore: [ - /The text content of element “script” was not in the required format: Expected space, tab, newline, or slash but found “.” instead/, - /This document appears to be written in .*. Consider using “lang=".*"” \(or variant\) instead/ - ] - }, - src: [ - "{demos,tests}/**/*.html", - ...htmllintBad.map( pattern => `!${ pattern }` ) - ] - }, - bad: { - options: { - ignore: [ - /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/, - /Consider adding a “lang” attribute to the “html” start tag/, - /This document appears to be written in .*. Consider (?:adding|using) “lang=".*"” \(or variant\)/ - ] - }, - src: htmllintBad - } - }, - eslint: { - all: [ - "ui/**/*.js", - "!ui/vendor/**/*.js", - "Gruntfile.js", - "dist/jquery-ui.js", - "dist/jquery-ui.min.js", - "build/**/*.js", - "tests/unit/**/*.js", - "tests/lib/**/*.js", - "!tests/lib/vendor/**/*.js", - "demos/**/*.js" - ] - }, - csslint: { - base_theme: { - src: "themes/base/*.css", - options: { - csslintrc: ".csslintrc" - } - } - }, - - bowercopy: { - inlineVendors: { - options: { - clean: true, - destPrefix: "ui/vendor" - }, - files: { - "jquery-color/jquery.color.js": "jquery-color/dist/jquery.color.js", - "jquery-color/LICENSE.txt": "jquery-color/LICENSE.txt" - } - }, - - all: { - options: { - clean: true, - ignore: [ "jquery" ], - destPrefix: "external" - }, - files: { - "qunit/qunit.js": "qunit/qunit/qunit.js", - "qunit/qunit.css": "qunit/qunit/qunit.css", - "qunit/LICENSE.txt": "qunit/LICENSE.txt", - - "requirejs/require.js": "requirejs/require.js", - - "jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js", - "jquery-mousewheel/LICENSE.txt": "jquery-mousewheel/LICENSE.txt", - - "jquery-simulate/jquery.simulate.js": "jquery-simulate/jquery.simulate.js", - "jquery-simulate/LICENSE.txt": "jquery-simulate/LICENSE.txt", - - "jquery/jquery.js": "jquery-3.x/dist/jquery.js", - "jquery/LICENSE.txt": "jquery-3.x/LICENSE.txt", - - "jquery-1.12.4/jquery.js": "jquery-1.12.4/dist/jquery.js", - "jquery-1.12.4/LICENSE.txt": "jquery-1.12.4/LICENSE.txt", - - "jquery-2.2.4/jquery.js": "jquery-2.2.4/dist/jquery.js", - "jquery-2.2.4/LICENSE.txt": "jquery-2.2.4/LICENSE.txt", - - "jquery-3.0.0/jquery.js": "jquery-3.0.0/dist/jquery.js", - "jquery-3.0.0/LICENSE.txt": "jquery-3.0.0/LICENSE.txt", - - "jquery-3.1.0/jquery.js": "jquery-3.1.0/dist/jquery.js", - "jquery-3.1.0/LICENSE.txt": "jquery-3.1.0/LICENSE.txt", - - "jquery-3.1.1/jquery.js": "jquery-3.1.1/dist/jquery.js", - "jquery-3.1.1/LICENSE.txt": "jquery-3.1.1/LICENSE.txt", - - "jquery-3.2.0/jquery.js": "jquery-3.2.0/dist/jquery.js", - "jquery-3.2.0/LICENSE.txt": "jquery-3.2.0/LICENSE.txt", - - "jquery-3.2.1/jquery.js": "jquery-3.2.1/dist/jquery.js", - "jquery-3.2.1/LICENSE.txt": "jquery-3.2.1/LICENSE.txt", - - "jquery-3.3.0/jquery.js": "jquery-3.3.0/dist/jquery.js", - "jquery-3.3.0/LICENSE.txt": "jquery-3.3.0/LICENSE.txt", - - "jquery-3.3.1/jquery.js": "jquery-3.3.1/dist/jquery.js", - "jquery-3.3.1/LICENSE.txt": "jquery-3.3.1/LICENSE.txt", - - "jquery-3.4.0/jquery.js": "jquery-3.4.0/dist/jquery.js", - "jquery-3.4.0/LICENSE.txt": "jquery-3.4.0/LICENSE.txt", - - "jquery-3.4.1/jquery.js": "jquery-3.4.1/dist/jquery.js", - "jquery-3.4.1/LICENSE.txt": "jquery-3.4.1/LICENSE.txt", - - "jquery-3.5.0/jquery.js": "jquery-3.5.0/dist/jquery.js", - "jquery-3.5.0/LICENSE.txt": "jquery-3.5.0/LICENSE.txt", - - "jquery-3.5.1/jquery.js": "jquery-3.5.1/dist/jquery.js", - "jquery-3.5.1/LICENSE.txt": "jquery-3.5.1/LICENSE.txt", - - "jquery-3.6.0/jquery.js": "jquery-3.6.0/dist/jquery.js", - "jquery-3.6.0/LICENSE.txt": "jquery-3.6.0/LICENSE.txt", - - "jquery-3.6.1/jquery.js": "jquery-3.6.1/dist/jquery.js", - "jquery-3.6.1/LICENSE.txt": "jquery-3.6.1/LICENSE.txt", - - "jquery-3.6.2/jquery.js": "jquery-3.6.2/dist/jquery.js", - "jquery-3.6.2/LICENSE.txt": "jquery-3.6.2/LICENSE.txt", - - "jquery-3.6.3/jquery.js": "jquery-3.6.3/dist/jquery.js", - "jquery-3.6.3/LICENSE.txt": "jquery-3.6.3/LICENSE.txt", - - "jquery-3.6.4/jquery.js": "jquery-3.6.4/dist/jquery.js", - "jquery-3.6.4/LICENSE.txt": "jquery-3.6.4/LICENSE.txt", - - "jquery-3.7.0/jquery.js": "jquery-3.7.0/dist/jquery.js", - "jquery-3.7.0/LICENSE.txt": "jquery-3.7.0/LICENSE.txt", - - "jquery-3.7.1/jquery.js": "jquery-3.7.1/dist/jquery.js", - "jquery-3.7.1/LICENSE.txt": "jquery-3.7.1/LICENSE.txt", - - "jquery-4.0.0/jquery.js": "jquery-4.0.0/dist/jquery.js", - "jquery-4.0.0/LICENSE.txt": "jquery-4.0.0/LICENSE.txt", - - "jquery-migrate-1.x/jquery-migrate.js": - "jquery-migrate-1.x/dist/jquery-migrate.js", - "jquery-migrate-1.x/LICENSE.txt": "jquery-migrate-1.x/LICENSE.txt", - - "jquery-migrate-3.x/jquery-migrate.js": - "jquery-migrate-3.x/dist/jquery-migrate.js", - "jquery-migrate-3.x/LICENSE.txt": "jquery-migrate-3.x/LICENSE.txt", - - "jquery-migrate-4.x/jquery-migrate.js": - "jquery-migrate-4.x/dist/jquery-migrate.js", - "jquery-migrate-4.x/LICENSE.txt": "jquery-migrate-4.x/LICENSE.txt" - } - } - }, authors: { prior: [ @@ -404,15 +243,5 @@ grunt.registerTask( "print_old_node_mess } ); // Keep this task list in sync with the testing steps in our GitHub action test workflow file! -grunt.registerTask( "lint", [ - "asciilint", - "eslint", - "csslint", - "htmllint" -] ); -grunt.registerTask( "build", [ "requirejs", "concat", "minify:main" ] ); -grunt.registerTask( "default", [ "build", "lint" ] ); -grunt.registerTask( "sizer", [ "requirejs:js", "minify:main", "compare_size:all" ] ); -grunt.registerTask( "sizer_all", [ "requirejs:js", "minify", "compare_size" ] ); };