Download and install jQuery Unobtrusive Validation and its dependencies
- avoids checking these external .js files into our repo - limit jQuery*.js versions to single value, mostly the latest but don't cross over to jQuery.js 2.0.x range (incompatible with IE 6, 7, 8)
This commit is contained in:
parent
1a62f104b4
commit
6cc5cfeae2
|
|
@ -8,6 +8,9 @@ packages/
|
||||||
artifacts/
|
artifacts/
|
||||||
PublishProfiles/
|
PublishProfiles/
|
||||||
.vs/
|
.vs/
|
||||||
|
bower_components/
|
||||||
|
node_modules/
|
||||||
|
**/wwwroot/lib/
|
||||||
debugSettings.json
|
debugSettings.json
|
||||||
*.user
|
*.user
|
||||||
*.suo
|
*.suo
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"name": "ValidationWebSite",
|
||||||
|
"description": "Web site demonstrating various validations.",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"jquery": "1.11.2",
|
||||||
|
"jquery-validation": "1.13.1",
|
||||||
|
"jquery-validation-unobtrusive": "3.2.2"
|
||||||
|
},
|
||||||
|
"exportsOverride": {
|
||||||
|
"jquery": {
|
||||||
|
"js": "jquery.{js,min.js,min.map}"
|
||||||
|
},
|
||||||
|
"jquery-validation": {
|
||||||
|
"": "jquery.validate.js"
|
||||||
|
},
|
||||||
|
"jquery-validation-unobtrusive": {
|
||||||
|
"": "jquery.validate.unobtrusive.{js,min.js}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
|
||||||
|
module.exports = function (grunt) {
|
||||||
|
grunt.initConfig({
|
||||||
|
bower: {
|
||||||
|
install: {
|
||||||
|
options: {
|
||||||
|
targetDir: "wwwroot/lib",
|
||||||
|
layout: "byComponent",
|
||||||
|
cleanTargetDir: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// This command registers the default task which will install bower packages into wwwroot/lib
|
||||||
|
grunt.registerTask("default", ["bower:install"]);
|
||||||
|
|
||||||
|
// The following line loads the grunt plugins.
|
||||||
|
// This line needs to be at the end of this this file.
|
||||||
|
grunt.loadNpmTasks("grunt-bower-task");
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"version": "0.0.0",
|
||||||
|
"name": "ValidationWebSite",
|
||||||
|
"description": "Web site demonstrating various validations.",
|
||||||
|
"devDependencies": {
|
||||||
|
"grunt": "^0.4.5",
|
||||||
|
"grunt-bower-task": "^0.4.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -15,5 +15,17 @@
|
||||||
"aspnet50": { },
|
"aspnet50": { },
|
||||||
"aspnetcore50": { }
|
"aspnetcore50": { }
|
||||||
},
|
},
|
||||||
|
"exclude": [
|
||||||
|
"wwwroot",
|
||||||
|
"node_modules",
|
||||||
|
"bower_components"
|
||||||
|
],
|
||||||
|
"packExclude": [
|
||||||
|
"node_modules",
|
||||||
|
"bower_components",
|
||||||
|
"**.kproj",
|
||||||
|
"**.user",
|
||||||
|
"**.vspscc"
|
||||||
|
],
|
||||||
"webroot": "wwwroot"
|
"webroot": "wwwroot"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue