-
Notifications
You must be signed in to change notification settings - Fork 6
/
Gruntfile.js
42 lines (36 loc) · 998 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* jQuery File Upload Gruntfile
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
/*global module, require */
module.exports = function (grunt) {
'use strict';
function bowerJson() {
require('bower-json').validate(require('./bower.json'));
}
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'Gruntfile.js',
'js/cors/*.js',
'js/*.js',
'server/node/server.js',
'test/test.js'
]
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-bump-build-git');
grunt.registerTask('bower-json', bowerJson);
grunt.registerTask('test', ['jshint', 'bower-json']);
grunt.registerTask('default', ['test']);
};