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:
Doug Bunting 2015-01-28 17:56:53 -08:00
parent 1a62f104b4
commit 6cc5cfeae2
5 changed files with 66 additions and 0 deletions

3
.gitignore vendored
View File

@ -8,6 +8,9 @@ packages/
artifacts/
PublishProfiles/
.vs/
bower_components/
node_modules/
**/wwwroot/lib/
debugSettings.json
*.user
*.suo

View File

@ -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}"
}
}
}

View File

@ -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");
};

View File

@ -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"
}
}

View File

@ -15,5 +15,17 @@
"aspnet50": { },
"aspnetcore50": { }
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components"
],
"packExclude": [
"node_modules",
"bower_components",
"**.kproj",
"**.user",
"**.vspscc"
],
"webroot": "wwwroot"
}