Skip to content

Commit 4f0f7a6

Browse files
committed
Fixed bower.json validation. Closes blueimp#3412
1 parent c528f43 commit 4f0f7a6

File tree

3 files changed

+15
-25
lines changed

3 files changed

+15
-25
lines changed

Gruntfile.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@
99
* http://www.opensource.org/licenses/MIT
1010
*/
1111

12-
/*global module */
12+
/*global module, require */
1313

1414
module.exports = function (grunt) {
1515
'use strict';
1616

17+
function bowerJson() {
18+
require('bower-json').validate(require('./bower.json'));
19+
}
20+
1721
grunt.initConfig({
1822
jshint: {
1923
options: {
@@ -31,7 +35,8 @@ module.exports = function (grunt) {
3135

3236
grunt.loadNpmTasks('grunt-contrib-jshint');
3337
grunt.loadNpmTasks('grunt-bump-build-git');
34-
grunt.registerTask('test', ['jshint']);
38+
grunt.registerTask('bower-json', bowerJson);
39+
grunt.registerTask('test', ['jshint', 'bower-json']);
3540
grunt.registerTask('default', ['test']);
3641

3742
};

bower.json

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "blueimp-file-upload",
3-
"version": "9.10.5",
3+
"version": "9.10.6",
44
"title": "jQuery File Upload",
5-
"description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.",
5+
"description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images.",
66
"keywords": [
77
"jquery",
88
"file",
@@ -48,23 +48,7 @@
4848
"blueimp-canvas-to-blob": ">=2.1.1"
4949
},
5050
"main": [
51-
"css/jquery.fileupload.css",
52-
"css/jquery.fileupload-ui.css",
53-
"css/jquery.fileupload-noscript.css",
54-
"css/jquery.fileupload-ui-noscript.css",
55-
"js/cors/jquery.postmessage-transport.js",
56-
"js/cors/jquery.xdr-transport.js",
57-
"js/vendor/jquery.ui.widget.js",
58-
"js/jquery.fileupload.js",
59-
"js/jquery.fileupload-process.js",
60-
"js/jquery.fileupload-validate.js",
61-
"js/jquery.fileupload-image.js",
62-
"js/jquery.fileupload-audio.js",
63-
"js/jquery.fileupload-video.js",
64-
"js/jquery.fileupload-ui.js",
65-
"js/jquery.fileupload-jquery-ui.js",
66-
"js/jquery.fileupload-angular.js",
67-
"js/jquery.iframe-transport.js"
51+
"js/jquery.fileupload.js"
6852
],
6953
"ignore": [
7054
"/*.*",

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blueimp-file-upload",
3-
"version": "9.10.5",
3+
"version": "9.10.6",
44
"title": "jQuery File Upload",
55
"description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.",
66
"keywords": [
@@ -43,8 +43,9 @@
4343
"license": "MIT",
4444
"main": "js/jquery.fileupload.js",
4545
"devDependencies": {
46-
"grunt": "~0.4.5",
47-
"grunt-bump-build-git": "~1.1.1",
48-
"grunt-contrib-jshint": "~0.10.0"
46+
"bower-json": "0.6.0",
47+
"grunt": "0.4.5",
48+
"grunt-bump-build-git": "1.1.2",
49+
"grunt-contrib-jshint": "0.11.2"
4950
}
5051
}

0 commit comments

Comments
 (0)