-
Notifications
You must be signed in to change notification settings - Fork 1
/
GruntFile.js
66 lines (60 loc) · 1.86 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
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
browser: true,
node: true,
jquery: false,
debug: false,
devel: false,
asi: true,
laxbreak: false,
bitwise: true,
boss: false,
curly: true,
eqeqeq: true,
eqnull: false,
evil: false,
expr: false,
forin: false,
immed: true,
latedef: true,
loopfunc: false,
shadow: false,
supernew: false,
undef: true,
newcap: true,
noempty: true,
nonew: false,
nomen: false,
onevar: false,
plusplus: false,
sub: false,
trailing: true,
white: false,
globals: { define: true }
},
all: ['Gruntfile.js', 'attach.js']
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> v<%= pkg.version %> | <%= pkg.license %> license | <%= pkg.homepage %> 🚀 */\n'
},
dist: {
src: 'attach.js',
dest: 'attach.min.js'
}
},
clean: ['.tmp']
});
// Actually load this plugin"s task(s).
grunt.loadTasks("tasks");
// These plugins provide necessary tasks.
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-clean");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.registerTask('test', ['jshint']);
grunt.registerTask('default', ['test', 'uglify', 'clean']);
};