forked from carhartl/jquery-cookie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrunt.js
More file actions
49 lines (46 loc) · 846 Bytes
/
grunt.js
File metadata and controls
49 lines (46 loc) · 846 Bytes
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
43
44
45
46
47
48
49
/*global module */
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: '<json:cookie.jquery.json>',
meta: {
banner: '/*! <%= pkg.title %> v<%= pkg.version %> | <%= pkg.licenses[0].type %> */'
},
qunit: {
files: ['test/index.html']
},
lint: {
files: [
'grunt.js',
'jquery.cookie.js'
]
},
jshint: {
options: {
boss: true,
browser: true,
curly: true,
eqeqeq: true,
eqnull: true,
expr: true,
evil: true,
newcap: true,
noarg: true,
undef: true
},
globals: {
define: true,
jQuery: true
}
},
min: {
dist: {
src: ['<banner>', 'jquery.cookie.js'],
dest: 'jquery.cookie-<%= pkg.version %>.min.js'
}
}
});
grunt.registerTask('default', 'lint qunit');
// Travis CI task.
grunt.registerTask('ci', 'default');
};