forked from h5bp/html5please
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.js
46 lines (37 loc) · 849 Bytes
/
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
// Resources
// https://gist.github.com/2489540
/*global config:true, task:true*/
module.exports = function( grunt ) {
var task = grunt.task;
var file = grunt.file;
var utils = grunt.utils;
var log = grunt.log;
var verbose = grunt.verbose;
var fail = grunt.fail;
var option = grunt.option;
var config = grunt.config;
var template = grunt.template;
grunt.loadNpmTasks('grunt-closure-compiler');
grunt.initConfig({
qunit: {
files: "test/index.html"
},
'closure-compiler': {
frontend: {
js: [
'js/libs/augment.js',
'js/libs/list.js',
'js/libs/classList.js',
'js/script.js'
],
jsOutputFile: 'js/script.min.js',
options: {
'create_source_map':'./script.min.js.map',
'source_map_format':'V3'
}
}
}
});
// Default grunt.
grunt.registerTask( "default", "qunit" );
};