forked from occ/TraceKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
72 lines (68 loc) · 2.34 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*global module:false*/
module.exports = function (grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
'closureCompiler': {
options: {
compilerFile: './closure/compiler.jar',
checkModified: true,
compilerOpts: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level: 'verbose',
jscomp_off: ['checkTypes', 'fileoverviewTags'],
summary_detail_level: 3,
output_wrapper: '"(function(){%output%}).call(this);"'
},
execOpts: {
maxBuffer: 200 * 1024
}
},
'compile': {
src: './tracekit.js',
dest: './tracekit.min.js'
}
},
jshint: {
options: {
// Uncommented are default grunt options
bitwise: true, //Added from site
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
noempty: true, //Added from site
nonew: true, //Added
quotmark: 'single', //Added
/* regexp: true, */
undef: true,
unused: true, //Added from site
/* strict: true, //Added from site */
sub: true,
boss: true, //dont' allow assignments to be evaluated as truthy/falsey */
eqnull: true, //Allow == null
browser: true,
/* indent: 4, //Added from site */
devel: true, //Added
white: false,
onecase: true,
trailing: true,
maxparams: 6,
maxdepth: 9,
maxerr: 20
},
globals: {
ActiveXObject: false
},
lint: {
src: ['grunt.js', 'tracekit.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-closure-tools');
grunt.registerTask('default', ['jshint:lint', 'closureCompiler:compile']);
grunt.registerTask('travis', ['jshint:lint', 'closureCompiler:compile']);
};