forked from hpbuniat/jquery-popunder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
executable file
·50 lines (44 loc) · 1.1 KB
/
grunt.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
43
44
45
46
47
48
49
50
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// run jshint on the files, with the options described below. Different globals defined based on file type
// 'node' for files that are run by node.js (module, process, etc.)
// 'browser' for files that are run by a browser (window, document, etc.)
lint: {
all: ['jquery.popunder.js']
},
jshint: {
// Apply to all js files
options: {
curly: true,
eqeqeq: true,
forin: true,
indent: 2,
latedef: false,
newcap: true,
noarg: true,
noempty: true,
white: false,
sub: true,
undef: true,
unused: true,
loopfunc: true,
expr: true,
evil: true,
eqnull: true
}
},
min: {
dist: {
src: ['jquery.popunder.js'],
dest: 'dist/jquery.popunder.min.js'
}
},
watch: {
files: ['*.js'],
tasks: 'lint'
}
});
// This is what gets run when you don't specify an argument for grunt.
grunt.registerTask('default', 'lint');
};