2012-10-22 21:41:54 +00:00
|
|
|
"use strict";
|
|
|
|
|
2021-06-06 22:58:12 +00:00
|
|
|
module.exports = function( grunt ) {
|
|
|
|
|
2023-03-29 22:21:25 +00:00
|
|
|
// files
|
|
|
|
const coreFiles = [
|
|
|
|
"core.js",
|
|
|
|
"widget.js",
|
|
|
|
"widgets/mouse.js",
|
|
|
|
"widgets/draggable.js",
|
|
|
|
"widgets/droppable.js",
|
|
|
|
"widgets/resizable.js",
|
|
|
|
"widgets/selectable.js",
|
|
|
|
"widgets/sortable.js",
|
|
|
|
"effect.js"
|
|
|
|
];
|
|
|
|
|
|
|
|
const uiFiles = coreFiles.map( function( file ) {
|
|
|
|
return "ui/" + file;
|
|
|
|
} ).concat( expandFiles( "ui/**/*.js" ).filter( function( file ) {
|
|
|
|
return coreFiles.indexOf( file.substring( 3 ) ) === -1;
|
|
|
|
} ) );
|
|
|
|
|
|
|
|
const allI18nFiles = expandFiles( "ui/i18n/*.js" );
|
|
|
|
|
|
|
|
const cssFiles = [
|
|
|
|
"core",
|
|
|
|
"accordion",
|
|
|
|
"autocomplete",
|
|
|
|
"button",
|
|
|
|
"checkboxradio",
|
|
|
|
"controlgroup",
|
|
|
|
"datepicker",
|
|
|
|
"dialog",
|
|
|
|
"draggable",
|
|
|
|
"menu",
|
|
|
|
"progressbar",
|
|
|
|
"resizable",
|
|
|
|
"selectable",
|
|
|
|
"selectmenu",
|
|
|
|
"sortable",
|
|
|
|
"slider",
|
|
|
|
"spinner",
|
|
|
|
"tabs",
|
|
|
|
"tooltip",
|
|
|
|
"theme"
|
|
|
|
].map( function( component ) {
|
|
|
|
return "themes/base/" + component + ".css";
|
|
|
|
} );
|
|
|
|
|
|
|
|
// minified files
|
|
|
|
const minify = {
|
|
|
|
options: {
|
|
|
|
preserveComments: false
|
|
|
|
},
|
|
|
|
main: {
|
2012-12-21 17:26:56 +00:00
|
|
|
options: {
|
2023-03-29 22:21:25 +00:00
|
|
|
banner: createBanner( uiFiles )
|
2012-12-21 17:26:56 +00:00
|
|
|
},
|
2023-03-29 22:21:25 +00:00
|
|
|
files: {
|
|
|
|
"dist/jquery-ui.min.js": "dist/jquery-ui.js"
|
2012-12-21 17:26:56 +00:00
|
|
|
}
|
2012-03-30 17:32:23 +00:00
|
|
|
},
|
2023-03-29 22:21:25 +00:00
|
|
|
i18n: {
|
|
|
|
options: {
|
|
|
|
banner: createBanner( allI18nFiles )
|
|
|
|
},
|
|
|
|
files: {
|
|
|
|
"dist/i18n/jquery-ui-i18n.min.js": "dist/i18n/jquery-ui-i18n.js"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2012-03-30 17:32:23 +00:00
|
|
|
|
2023-03-29 22:21:25 +00:00
|
|
|
const compareFiles = {
|
|
|
|
all: [
|
|
|
|
"dist/jquery-ui.js",
|
|
|
|
"dist/jquery-ui.min.js"
|
|
|
|
]
|
|
|
|
};
|
|
|
|
const component = grunt.option( "component" ) || "**";
|
|
|
|
|
|
|
|
const htmllintBad = [
|
|
|
|
"demos/tabs/ajax/content*.html",
|
|
|
|
"demos/tooltip/ajax/content*.html",
|
|
|
|
"tests/unit/core/core.html",
|
|
|
|
"tests/unit/tabs/data/test.html"
|
|
|
|
];
|
|
|
|
|
|
|
|
const nodeV16OrNewer = !/^v1[0-5]\./.test( process.version );
|
|
|
|
|
|
|
|
// Support: Node.js <16
|
|
|
|
// Skip running tasks that dropped support for Node.js 10-15
|
|
|
|
// in this Node version.
|
|
|
|
function runIfNewNode( task ) {
|
|
|
|
return nodeV16OrNewer ? task : "print_old_node_message:" + task;
|
|
|
|
}
|
2012-03-30 17:32:23 +00:00
|
|
|
|
2012-04-24 13:48:14 +00:00
|
|
|
function mapMinFile( file ) {
|
2015-03-04 17:45:29 +00:00
|
|
|
return "dist/" + file.replace( /ui\//, "minified/" );
|
2012-04-24 13:48:14 +00:00
|
|
|
}
|
2012-03-30 17:32:23 +00:00
|
|
|
|
2012-12-21 17:26:56 +00:00
|
|
|
function expandFiles( files ) {
|
2020-10-14 21:54:09 +00:00
|
|
|
return grunt.util._.map( grunt.file.expandMapping( files ), "src" ).map( function( values ) {
|
2012-12-21 17:26:56 +00:00
|
|
|
return values[ 0 ];
|
2019-12-08 21:23:08 +00:00
|
|
|
} );
|
2012-12-21 17:26:56 +00:00
|
|
|
}
|
|
|
|
|
2019-12-08 21:23:08 +00:00
|
|
|
uiFiles.concat( allI18nFiles ).forEach( function( file ) {
|
2012-12-21 17:26:56 +00:00
|
|
|
minify[ file ] = {
|
|
|
|
options: {
|
|
|
|
banner: createBanner()
|
|
|
|
},
|
|
|
|
files: {}
|
|
|
|
};
|
|
|
|
minify[ file ].files[ mapMinFile( file ) ] = file;
|
2019-12-08 21:23:08 +00:00
|
|
|
} );
|
|
|
|
|
|
|
|
uiFiles.forEach( function( file ) {
|
2012-03-30 17:32:23 +00:00
|
|
|
|
2012-12-21 17:26:56 +00:00
|
|
|
// TODO this doesn't do anything until https://github.com/rwldrn/grunt-compare-size/issues/13
|
2013-12-07 16:12:51 +00:00
|
|
|
compareFiles[ file ] = [ file, mapMinFile( file ) ];
|
2019-12-08 21:23:08 +00:00
|
|
|
} );
|
2012-03-30 17:32:23 +00:00
|
|
|
|
2012-03-19 21:12:21 +00:00
|
|
|
function stripDirectory( file ) {
|
2012-04-02 15:12:49 +00:00
|
|
|
return file.replace( /.+\/(.+?)>?$/, "$1" );
|
2012-03-07 13:51:20 +00:00
|
|
|
}
|
2012-03-19 21:12:21 +00:00
|
|
|
|
|
|
|
function createBanner( files ) {
|
2019-12-08 21:23:08 +00:00
|
|
|
|
2012-03-19 21:12:21 +00:00
|
|
|
// strip folders
|
2023-03-29 22:21:25 +00:00
|
|
|
const fileNames = files && files.map( stripDirectory );
|
2012-03-19 21:12:21 +00:00
|
|
|
return "/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - " +
|
2012-03-23 17:33:46 +00:00
|
|
|
"<%= grunt.template.today('isoDate') %>\n" +
|
2012-12-21 17:26:56 +00:00
|
|
|
"<%= pkg.homepage ? '* ' + pkg.homepage + '\\n' : '' %>" +
|
2019-12-08 21:23:08 +00:00
|
|
|
( files ? "* Includes: " + fileNames.join( ", " ) + "\n" : "" ) +
|
2014-12-21 18:27:43 +00:00
|
|
|
"* Copyright <%= pkg.author.name %>;" +
|
2020-10-14 21:54:09 +00:00
|
|
|
" Licensed <%= _.map(pkg.licenses, 'type').join(', ') %> */\n";
|
2012-03-07 13:51:20 +00:00
|
|
|
}
|
2012-03-19 21:12:21 +00:00
|
|
|
|
2019-12-08 21:23:08 +00:00
|
|
|
grunt.initConfig( {
|
2013-12-07 16:12:51 +00:00
|
|
|
pkg: grunt.file.readJSON( "package.json" ),
|
2012-03-19 21:12:21 +00:00
|
|
|
files: {
|
2013-06-05 12:38:08 +00:00
|
|
|
dist: "<%= pkg.name %>-<%= pkg.version %>"
|
2012-03-19 21:12:21 +00:00
|
|
|
},
|
2012-04-24 13:48:14 +00:00
|
|
|
compare_size: compareFiles,
|
2015-10-17 19:54:12 +00:00
|
|
|
concat: {
|
|
|
|
css: {
|
|
|
|
options: {
|
|
|
|
banner: createBanner( cssFiles ),
|
|
|
|
stripBanners: {
|
|
|
|
block: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
src: cssFiles,
|
|
|
|
dest: "dist/jquery-ui.css"
|
|
|
|
}
|
|
|
|
},
|
2015-07-29 15:34:00 +00:00
|
|
|
requirejs: {
|
|
|
|
js: {
|
|
|
|
options: {
|
|
|
|
baseUrl: "./",
|
|
|
|
paths: {
|
|
|
|
jquery: "./external/jquery/jquery",
|
|
|
|
external: "./external/"
|
|
|
|
},
|
|
|
|
preserveLicenseComments: false,
|
|
|
|
optimize: "none",
|
|
|
|
findNestedDependencies: true,
|
|
|
|
skipModuleInsertion: true,
|
|
|
|
exclude: [ "jquery" ],
|
2015-10-17 19:54:12 +00:00
|
|
|
include: expandFiles( [ "ui/**/*.js", "!ui/core.js", "!ui/i18n/*" ] ),
|
2015-07-29 15:34:00 +00:00
|
|
|
out: "dist/jquery-ui.js",
|
|
|
|
wrap: {
|
2019-12-08 21:23:08 +00:00
|
|
|
start: createBanner( uiFiles )
|
2015-07-29 15:34:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2015-03-18 12:25:51 +00:00
|
|
|
|
2012-12-21 17:26:56 +00:00
|
|
|
uglify: minify,
|
2012-04-23 16:10:28 +00:00
|
|
|
htmllint: {
|
2015-09-30 07:49:13 +00:00
|
|
|
good: {
|
2015-05-14 13:57:50 +00:00
|
|
|
options: {
|
|
|
|
ignore: [
|
2023-03-28 22:29:28 +00:00
|
|
|
/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/
|
|
|
|
]
|
|
|
|
},
|
2023-03-29 22:21:25 +00:00
|
|
|
src: [
|
|
|
|
"{demos,tests}/**/*.html",
|
|
|
|
...htmllintBad.map( pattern => `!${ pattern }` )
|
|
|
|
]
|
2015-05-14 13:57:50 +00:00
|
|
|
},
|
2015-03-18 12:42:52 +00:00
|
|
|
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/,
|
2020-10-14 21:54:09 +00:00
|
|
|
/The “codebase” attribute on the “object” element is obsolete/,
|
2021-03-08 23:10:38 +00:00
|
|
|
/Consider adding a “lang” attribute to the “html” start tag/,
|
2023-03-28 22:29:28 +00:00
|
|
|
/This document appears to be written in .*. Consider (?:adding|using) “lang=".*"” \(or variant\)/
|
2015-03-18 12:42:52 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
src: htmllintBad
|
|
|
|
}
|
2012-04-22 10:19:16 +00:00
|
|
|
},
|
2012-03-19 21:12:21 +00:00
|
|
|
qunit: {
|
2019-12-08 21:23:08 +00:00
|
|
|
files: expandFiles( "tests/unit/" + component + "/*.html" ).filter( function( file ) {
|
2013-12-02 20:54:29 +00:00
|
|
|
return !( /(all|index|test)\.html$/ ).test( file );
|
2019-12-08 21:23:08 +00:00
|
|
|
} ),
|
2013-12-02 20:54:29 +00:00
|
|
|
options: {
|
2020-10-21 21:43:26 +00:00
|
|
|
puppeteer: {
|
|
|
|
args: [
|
|
|
|
"--allow-file-access-from-files"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
inject: [
|
2023-03-30 07:59:42 +00:00
|
|
|
require.resolve(
|
|
|
|
"./tests/lib/grunt-contrib-qunit-bridges/bridge-wrapper.js.intro"
|
|
|
|
),
|
|
|
|
require.resolve( "grunt-contrib-qunit/chrome/bridge" ),
|
|
|
|
require.resolve(
|
|
|
|
"./tests/lib/grunt-contrib-qunit-bridges/bridge-wrapper.js.outro"
|
|
|
|
)
|
2020-10-21 21:43:26 +00:00
|
|
|
],
|
2013-12-02 20:54:29 +00:00
|
|
|
page: {
|
|
|
|
viewportSize: { width: 700, height: 500 }
|
|
|
|
}
|
|
|
|
}
|
2012-03-19 21:12:21 +00:00
|
|
|
},
|
2021-06-06 22:58:12 +00:00
|
|
|
eslint: {
|
2013-11-11 19:12:21 +00:00
|
|
|
all: [
|
2021-06-06 22:58:12 +00:00
|
|
|
"ui/**/*.js",
|
|
|
|
"!ui/vendor/**/*.js",
|
2013-11-01 18:44:14 +00:00
|
|
|
"Gruntfile.js",
|
|
|
|
"build/**/*.js",
|
2015-04-17 16:13:38 +00:00
|
|
|
"tests/unit/**/*.js",
|
2015-07-02 13:55:12 +00:00
|
|
|
"tests/lib/**/*.js",
|
|
|
|
"demos/**/*.js"
|
2013-11-01 18:44:14 +00:00
|
|
|
]
|
2012-03-19 21:12:21 +00:00
|
|
|
},
|
|
|
|
csslint: {
|
|
|
|
base_theme: {
|
2013-03-15 13:36:49 +00:00
|
|
|
src: "themes/base/*.css",
|
2013-03-11 14:29:08 +00:00
|
|
|
options: {
|
2013-03-15 13:57:45 +00:00
|
|
|
csslintrc: ".csslintrc"
|
2012-03-19 21:12:21 +00:00
|
|
|
}
|
|
|
|
}
|
2013-11-15 12:38:38 +00:00
|
|
|
},
|
|
|
|
|
2014-02-21 16:25:59 +00:00
|
|
|
bowercopy: {
|
2020-05-16 06:26:48 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2014-06-10 11:55:45 +00:00
|
|
|
all: {
|
|
|
|
options: {
|
|
|
|
clean: true,
|
2014-06-24 12:48:01 +00:00
|
|
|
ignore: [ "jquery" ],
|
2014-06-10 11:55:45 +00:00
|
|
|
destPrefix: "external"
|
|
|
|
},
|
2014-02-21 16:25:59 +00:00
|
|
|
files: {
|
2014-06-10 11:55:45 +00:00
|
|
|
"qunit/qunit.js": "qunit/qunit/qunit.js",
|
|
|
|
"qunit/qunit.css": "qunit/qunit/qunit.css",
|
2015-02-23 19:01:03 +00:00
|
|
|
"qunit/LICENSE.txt": "qunit/LICENSE.txt",
|
2014-06-10 11:55:45 +00:00
|
|
|
|
2015-04-03 19:21:16 +00:00
|
|
|
"requirejs/require.js": "requirejs/require.js",
|
|
|
|
|
2014-06-10 11:55:45 +00:00
|
|
|
"jquery-mousewheel/jquery.mousewheel.js": "jquery-mousewheel/jquery.mousewheel.js",
|
2014-07-22 16:13:59 +00:00
|
|
|
"jquery-mousewheel/LICENSE.txt": "jquery-mousewheel/LICENSE.txt",
|
2014-06-10 11:55:45 +00:00
|
|
|
|
2014-08-22 21:01:50 +00:00
|
|
|
"jquery-simulate/jquery.simulate.js": "jquery-simulate/jquery.simulate.js",
|
|
|
|
"jquery-simulate/LICENSE.txt": "jquery-simulate/LICENSE.txt",
|
|
|
|
|
2021-09-24 17:02:05 +00:00
|
|
|
"jquery/jquery.js": "jquery-3.x/dist/jquery.js",
|
|
|
|
"jquery/LICENSE.txt": "jquery-3.x/LICENSE.txt",
|
2014-06-10 12:26:24 +00:00
|
|
|
|
|
|
|
"jquery-1.8.0/jquery.js": "jquery-1.8.0/jquery.js",
|
|
|
|
"jquery-1.8.0/MIT-LICENSE.txt": "jquery-1.8.0/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.8.1/jquery.js": "jquery-1.8.1/jquery.js",
|
|
|
|
"jquery-1.8.1/MIT-LICENSE.txt": "jquery-1.8.1/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.8.2/jquery.js": "jquery-1.8.2/jquery.js",
|
|
|
|
"jquery-1.8.2/MIT-LICENSE.txt": "jquery-1.8.2/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.8.3/jquery.js": "jquery-1.8.3/jquery.js",
|
|
|
|
"jquery-1.8.3/MIT-LICENSE.txt": "jquery-1.8.3/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.9.0/jquery.js": "jquery-1.9.0/jquery.js",
|
|
|
|
"jquery-1.9.0/MIT-LICENSE.txt": "jquery-1.9.0/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.9.1/jquery.js": "jquery-1.9.1/jquery.js",
|
|
|
|
"jquery-1.9.1/MIT-LICENSE.txt": "jquery-1.9.1/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.10.0/jquery.js": "jquery-1.10.0/jquery.js",
|
|
|
|
"jquery-1.10.0/MIT-LICENSE.txt": "jquery-1.10.0/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.10.1/jquery.js": "jquery-1.10.1/jquery.js",
|
|
|
|
"jquery-1.10.1/MIT-LICENSE.txt": "jquery-1.10.1/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.10.2/jquery.js": "jquery-1.10.2/jquery.js",
|
|
|
|
"jquery-1.10.2/MIT-LICENSE.txt": "jquery-1.10.2/MIT-LICENSE.txt",
|
|
|
|
|
2015-02-23 19:01:03 +00:00
|
|
|
"jquery-1.11.0/jquery.js": "jquery-1.11.0/dist/jquery.js",
|
|
|
|
"jquery-1.11.0/MIT-LICENSE.txt": "jquery-1.11.0/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.11.1/jquery.js": "jquery-1.11.1/dist/jquery.js",
|
|
|
|
"jquery-1.11.1/MIT-LICENSE.txt": "jquery-1.11.1/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.11.2/jquery.js": "jquery-1.11.2/dist/jquery.js",
|
|
|
|
"jquery-1.11.2/MIT-LICENSE.txt": "jquery-1.11.2/MIT-LICENSE.txt",
|
|
|
|
|
2015-05-14 12:25:16 +00:00
|
|
|
"jquery-1.11.3/jquery.js": "jquery-1.11.3/dist/jquery.js",
|
|
|
|
"jquery-1.11.3/MIT-LICENSE.txt": "jquery-1.11.3/MIT-LICENSE.txt",
|
|
|
|
|
2016-05-25 12:58:08 +00:00
|
|
|
"jquery-1.12.0/jquery.js": "jquery-1.12.0/dist/jquery.js",
|
|
|
|
"jquery-1.12.0/LICENSE.txt": "jquery-1.12.0/LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.12.1/jquery.js": "jquery-1.12.1/dist/jquery.js",
|
|
|
|
"jquery-1.12.1/LICENSE.txt": "jquery-1.12.1/LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.12.2/jquery.js": "jquery-1.12.2/dist/jquery.js",
|
|
|
|
"jquery-1.12.2/LICENSE.txt": "jquery-1.12.2/LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-1.12.3/jquery.js": "jquery-1.12.3/dist/jquery.js",
|
|
|
|
"jquery-1.12.3/LICENSE.txt": "jquery-1.12.3/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",
|
|
|
|
|
2014-06-10 12:26:24 +00:00
|
|
|
"jquery-2.0.0/jquery.js": "jquery-2.0.0/jquery.js",
|
|
|
|
"jquery-2.0.0/MIT-LICENSE.txt": "jquery-2.0.0/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.0.1/jquery.js": "jquery-2.0.1/jquery.js",
|
|
|
|
"jquery-2.0.1/MIT-LICENSE.txt": "jquery-2.0.1/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.0.2/jquery.js": "jquery-2.0.2/jquery.js",
|
|
|
|
"jquery-2.0.2/MIT-LICENSE.txt": "jquery-2.0.2/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.0.3/jquery.js": "jquery-2.0.3/jquery.js",
|
2015-02-23 19:01:03 +00:00
|
|
|
"jquery-2.0.3/MIT-LICENSE.txt": "jquery-2.0.3/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.1.0/jquery.js": "jquery-2.1.0/dist/jquery.js",
|
|
|
|
"jquery-2.1.0/MIT-LICENSE.txt": "jquery-2.1.0/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.1.1/jquery.js": "jquery-2.1.1/dist/jquery.js",
|
|
|
|
"jquery-2.1.1/MIT-LICENSE.txt": "jquery-2.1.1/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.1.2/jquery.js": "jquery-2.1.2/dist/jquery.js",
|
|
|
|
"jquery-2.1.2/MIT-LICENSE.txt": "jquery-2.1.2/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.1.3/jquery.js": "jquery-2.1.3/dist/jquery.js",
|
2016-05-25 12:58:08 +00:00
|
|
|
"jquery-2.1.3/MIT-LICENSE.txt": "jquery-2.1.3/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.1.4/jquery.js": "jquery-2.1.4/dist/jquery.js",
|
|
|
|
"jquery-2.1.4/MIT-LICENSE.txt": "jquery-2.1.4/MIT-LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.2.0/jquery.js": "jquery-2.2.0/dist/jquery.js",
|
|
|
|
"jquery-2.2.0/LICENSE.txt": "jquery-2.2.0/LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.2.1/jquery.js": "jquery-2.2.1/dist/jquery.js",
|
|
|
|
"jquery-2.2.1/LICENSE.txt": "jquery-2.2.1/LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.2.2/jquery.js": "jquery-2.2.2/dist/jquery.js",
|
|
|
|
"jquery-2.2.2/LICENSE.txt": "jquery-2.2.2/LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.2.3/jquery.js": "jquery-2.2.3/dist/jquery.js",
|
|
|
|
"jquery-2.2.3/LICENSE.txt": "jquery-2.2.3/LICENSE.txt",
|
|
|
|
|
|
|
|
"jquery-2.2.4/jquery.js": "jquery-2.2.4/dist/jquery.js",
|
2016-07-06 13:45:29 +00:00
|
|
|
"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",
|
2016-07-08 17:02:10 +00:00
|
|
|
"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",
|
2016-10-31 16:29:59 +00:00
|
|
|
"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",
|
2016-12-04 20:57:28 +00:00
|
|
|
"jquery-3.1.1/LICENSE.txt": "jquery-3.1.1/LICENSE.txt",
|
|
|
|
|
2019-12-08 21:23:08 +00:00
|
|
|
"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",
|
|
|
|
|
2020-05-16 06:27:27 +00:00
|
|
|
"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",
|
|
|
|
|
2021-03-08 23:09:51 +00:00
|
|
|
"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",
|
|
|
|
|
2023-01-15 20:41:18 +00:00
|
|
|
"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",
|
|
|
|
|
2023-05-10 08:54:31 +00:00
|
|
|
"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",
|
|
|
|
|
2021-06-06 22:58:12 +00:00
|
|
|
"jquery-migrate-1.4.1/jquery-migrate.js":
|
|
|
|
"jquery-migrate-1.4.1/dist/jquery-migrate.js",
|
2016-12-04 20:57:28 +00:00
|
|
|
"jquery-migrate-1.4.1/LICENSE.txt": "jquery-migrate-1.4.1/LICENSE.txt",
|
|
|
|
|
2023-05-10 08:54:31 +00:00
|
|
|
"jquery-migrate-3.4.1/jquery-migrate.js":
|
|
|
|
"jquery-migrate-3.4.1/dist/jquery-migrate.js",
|
|
|
|
"jquery-migrate-3.4.1/LICENSE.txt": "jquery-migrate-3.4.1/LICENSE.txt"
|
2014-02-21 16:25:59 +00:00
|
|
|
}
|
2014-06-10 11:55:45 +00:00
|
|
|
}
|
2014-10-24 13:21:46 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
authors: {
|
|
|
|
prior: [
|
|
|
|
"Paul Bakaus <paul.bakaus@gmail.com>",
|
|
|
|
"Richard Worth <rdworth@gmail.com>",
|
|
|
|
"Yehuda Katz <wycats@gmail.com>",
|
|
|
|
"Sean Catchpole <sean@sunsean.com>",
|
|
|
|
"John Resig <jeresig@gmail.com>",
|
|
|
|
"Tane Piper <piper.tane@gmail.com>",
|
|
|
|
"Dmitri Gaskin <dmitrig01@gmail.com>",
|
|
|
|
"Klaus Hartl <klaus.hartl@gmail.com>",
|
|
|
|
"Stefan Petre <stefan.petre@gmail.com>",
|
|
|
|
"Gilles van den Hoven <gilles@webunity.nl>",
|
|
|
|
"Micheil Bryan Smith <micheil@brandedcode.com>",
|
|
|
|
"Jörn Zaefferer <joern.zaefferer@gmail.com>",
|
|
|
|
"Marc Grabanski <m@marcgrabanski.com>",
|
|
|
|
"Keith Wood <kbwood@iinet.com.au>",
|
|
|
|
"Brandon Aaron <brandon.aaron@gmail.com>",
|
|
|
|
"Scott González <scott.gonzalez@gmail.com>",
|
|
|
|
"Eduardo Lundgren <eduardolundgren@gmail.com>",
|
|
|
|
"Aaron Eisenberger <aaronchi@gmail.com>",
|
|
|
|
"Joan Piedra <theneojp@gmail.com>",
|
|
|
|
"Bruno Basto <b.basto@gmail.com>",
|
|
|
|
"Remy Sharp <remy@leftlogic.com>",
|
|
|
|
"Bohdan Ganicky <bohdan.ganicky@gmail.com>"
|
|
|
|
]
|
2012-12-21 17:26:56 +00:00
|
|
|
}
|
2019-12-08 21:23:08 +00:00
|
|
|
} );
|
2012-03-02 15:45:10 +00:00
|
|
|
|
2023-03-29 22:21:25 +00:00
|
|
|
// grunt plugins
|
|
|
|
require( "load-grunt-tasks" )( grunt, {
|
|
|
|
pattern: nodeV16OrNewer ? [ "grunt-*" ] : [
|
|
|
|
"grunt-*",
|
|
|
|
"!grunt-contrib-qunit",
|
|
|
|
"!grunt-eslint",
|
|
|
|
"!grunt-html"
|
|
|
|
]
|
|
|
|
} );
|
|
|
|
|
|
|
|
// local testswarm and build tasks
|
|
|
|
grunt.loadTasks( "build/tasks" );
|
|
|
|
|
2014-10-24 13:21:46 +00:00
|
|
|
grunt.registerTask( "update-authors", function() {
|
2023-03-29 22:21:25 +00:00
|
|
|
const getAuthors = require( "grunt-git-authors" ).getAuthors;
|
|
|
|
const done = this.async();
|
2014-10-24 13:21:46 +00:00
|
|
|
|
2019-12-08 21:23:08 +00:00
|
|
|
getAuthors( {
|
2014-10-24 13:21:46 +00:00
|
|
|
priorAuthors: grunt.config( "authors.prior" )
|
|
|
|
}, function( error, authors ) {
|
|
|
|
if ( error ) {
|
|
|
|
grunt.log.error( error );
|
|
|
|
return done( false );
|
|
|
|
}
|
|
|
|
|
2019-12-08 21:23:08 +00:00
|
|
|
authors = authors.map( function( author ) {
|
2016-06-30 14:02:33 +00:00
|
|
|
if ( author.match( /^Jacek Jędrzejewski </ ) ) {
|
2014-10-24 13:21:46 +00:00
|
|
|
return "Jacek Jędrzejewski (http://jacek.jedrzejewski.name)";
|
|
|
|
} else if ( author.match( /^Pawel Maruszczyk </ ) ) {
|
|
|
|
return "Pawel Maruszczyk (http://hrabstwo.net)";
|
|
|
|
} else {
|
|
|
|
return author;
|
|
|
|
}
|
2019-12-08 21:23:08 +00:00
|
|
|
} );
|
2014-10-24 13:21:46 +00:00
|
|
|
|
|
|
|
grunt.file.write( "AUTHORS.txt",
|
|
|
|
"Authors ordered by first contribution\n" +
|
|
|
|
"A list of current team members is available at http://jqueryui.com/about\n\n" +
|
|
|
|
authors.join( "\n" ) + "\n" );
|
|
|
|
done();
|
2019-12-08 21:23:08 +00:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
|
2023-03-29 22:21:25 +00:00
|
|
|
grunt.registerTask( "print_old_node_message", ( ...args ) => {
|
|
|
|
const task = args.join( ":" );
|
|
|
|
grunt.log.writeln( "Old Node.js detected, running the task \"" + task + "\" skipped..." );
|
|
|
|
} );
|
|
|
|
|
2021-11-30 15:47:11 +00:00
|
|
|
// Keep this task list in sync with the testing steps in our GitHub action test workflow file!
|
2019-12-08 21:23:08 +00:00
|
|
|
grunt.registerTask( "default", [ "lint", "requirejs", "test" ] );
|
|
|
|
grunt.registerTask( "jenkins", [ "default", "concat" ] );
|
2023-03-29 22:21:25 +00:00
|
|
|
grunt.registerTask( "lint", [
|
|
|
|
"asciilint",
|
|
|
|
runIfNewNode( "eslint" ),
|
|
|
|
"csslint",
|
|
|
|
runIfNewNode( "htmllint" )
|
|
|
|
] );
|
|
|
|
grunt.registerTask( "test", [ runIfNewNode( "qunit" ) ] );
|
2019-12-08 21:23:08 +00:00
|
|
|
grunt.registerTask( "sizer", [ "requirejs:js", "uglify:main", "compare_size:all" ] );
|
|
|
|
grunt.registerTask( "sizer_all", [ "requirejs:js", "uglify", "compare_size" ] );
|
2013-06-24 12:21:55 +00:00
|
|
|
|
2012-03-23 17:33:46 +00:00
|
|
|
};
|