migration net9.0

This commit is contained in:
Paul Schneider 2025-06-13 15:22:02 +01:00
commit 39788f46f9
1375 changed files with 222140 additions and 32928 deletions

View file

@ -1,5 +1,5 @@
/*jshint node:true*/
module.exports = function(grunt) {
module.exports = function( grunt ) {
"use strict";
@ -17,29 +17,33 @@ banner = "/*!\n" +
" * <%= pkg.homepage %>\n" +
" *\n" +
" * Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
" * Released under the <%= _.pluck(pkg.licenses, 'type').join(', ') %> license\n" +
" * Released under the <%= _.map(pkg.licenses, 'type').join(', ') %> license\n" +
" */\n";
// define UMD wrapper variables
// Define UMD wrapper variables
umdStart = "(function( factory ) {\n" +
"\tif ( typeof define === \"function\" && define.amd ) {\n";
umdMiddle = "\t} else {\n" +
umdMiddle = "\t} else if (typeof module === \"object\" && module.exports) {\n" +
"\t\tmodule.exports = factory( require( \"jquery\" ) );\n" +
"\t} else {\n" +
"\t\tfactory( jQuery );\n" +
"\t}\n" +
"}(function( $ ) {\n\n";
umdEnd = "\n}));";
umdEnd = "return $;" +
"\n}));";
umdStandardDefine = "\t\tdefine( [\"jquery\"], factory );\n";
umdAdditionalDefine = "\t\tdefine( [\"jquery\", \"./jquery.validate\"], factory );\n";
umdLocalizationDefine = "\t\tdefine( [\"jquery\", \"../jquery.validate\"], factory );\n";
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
grunt.initConfig( {
pkg: grunt.file.readJSON( "package.json" ),
concat: {
// used to copy to dist folder
// Used to copy to dist folder
dist: {
options: {
banner: banner +
@ -72,7 +76,7 @@ grunt.initConfig({
"<%= grunt.template.today('m/d/yyyy') %>\n" +
" * <%= pkg.homepage %>\n" +
" * Copyright (c) <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>;" +
" Licensed <%= _.pluck(pkg.licenses, 'type').join(', ') %> */\n"
" Licensed <%= _.map(pkg.licenses, 'type').join(', ') %> */\n"
},
dist: {
files: {
@ -103,6 +107,7 @@ grunt.initConfig({
"Gruntfile.js",
"lib/**/*.*",
"package.json",
"LICENSE.md",
"README.md",
"src/**/*.*",
"test/**/*.*"
@ -110,7 +115,17 @@ grunt.initConfig({
}
},
qunit: {
files: "test/index.html"
files: "test/index.html",
options: {
puppeteer: {
args: [
"--headless",
"--disable-web-security",
"--allow-file-access-from-files"
]
},
timeout: 10000
}
},
jshint: {
options: {
@ -120,7 +135,7 @@ grunt.initConfig({
src: "src/**/*.js"
},
test: {
src: "test/*.js"
src: [ "test/*.js", "test/additional/*.js" ]
},
grunt: {
src: "Gruntfile.js"
@ -143,7 +158,8 @@ grunt.initConfig({
copy: {
dist: {
options: {
// append UMD wrapper
// Append UMD wrapper
process: function( content ) {
return umdStart + umdLocalizationDefine + umdMiddle + content + umdEnd;
}
@ -166,21 +182,43 @@ grunt.initConfig({
}
]
}
},
// Generate the sub-resource integrity hashes of the distribution files
sri: {
options: {
algorithms: [ "sha256", "sha384", "sha512" ],
// The target json file
dest: "dist/jquery-validation-sri.json",
// Stringify the JSON output in a pretty format
pretty: true
},
all: {
src: [
"dist/jquery.validate.{min.js,js}",
"dist/additional-methods.{min.js,js}",
"dist/localization/*.js"
]
}
}
});
} );
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-qunit");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-compress");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-jscs");
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-text-replace");
grunt.loadNpmTasks( "grunt-contrib-jshint" );
grunt.loadNpmTasks( "grunt-contrib-qunit" );
grunt.loadNpmTasks( "grunt-contrib-uglify" );
grunt.loadNpmTasks( "grunt-contrib-concat" );
grunt.loadNpmTasks( "grunt-contrib-compress" );
grunt.loadNpmTasks( "grunt-contrib-watch" );
grunt.loadNpmTasks( "grunt-jscs" );
grunt.loadNpmTasks( "grunt-contrib-copy" );
grunt.loadNpmTasks( "grunt-text-replace" );
grunt.loadNpmTasks( "grunt-sri" );
grunt.registerTask("default", [ "concat", "copy", "jscs", "jshint", "qunit" ]);
grunt.registerTask("release", [ "default", "uglify", "replace", "compress" ]);
grunt.registerTask("start", [ "concat", "watch" ]);
grunt.registerTask( "default", [ "concat", "copy", "jscs", "jshint", "qunit" ] );
grunt.registerTask( "release", [ "default", "uglify", "replace", "compress", "sri" ] );
grunt.registerTask( "start", [ "concat", "watch" ] );
};