-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.js
42 lines (38 loc) · 974 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
/*jshint node:true */
module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-git-authors");
grunt.loadNpmTasks("grunt-bowercopy");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-qunit");
grunt.initConfig({
jshint: {
options: {
jshintrc: true
},
all: ["*.js", "tests/**/*.js"]
},
qunit: {
all: ["tests/index.html"]
},
bowercopy: {
all: {
options: {
clean: true,
ignore: [ "jquery" ],
destPrefix: "external"
},
files: {
"qunit/qunit.js": "qunit/qunit/qunit.js",
"qunit/qunit.css": "qunit/qunit/qunit.css",
"qunit/LICENSE.txt": "qunit/LICENSE.txt",
"jshint/jshint.js": "jshint/dist/jshint.js",
"jshint/LICENSE": "jshint/LICENSE",
"jquery/jquery.js": "jquery/dist/jquery.js",
"jquery/MIT-LICENSE.txt": "jquery/MIT-LICENSE.txt"
}
}
}
});
grunt.registerTask("test", ["jshint", "qunit"]);
grunt.registerTask("default", ["test"]);
};