-
Notifications
You must be signed in to change notification settings - Fork 9
/
gruntfile.js
47 lines (42 loc) · 1.19 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> \n Copyright 2014 Coggle, except where noted. License: MIT, except where noted. */\n',
preserveComments:'some',
sourceMap: false,
/*sourceMapName: 'public/<%= pkg.name %>.sourcemap',*/
mangle:false
},
dist: {
files: {
'public/javascripts/main.js': ['private/javascripts/main.js']
}
}
},
jshint: {
files: ['*.js', 'private/**/*.js',],
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true
}
}
},
watch: {
app: {
files: ['private/javascripts/*.js'],
tasks: ['default']
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jsjsdoc');
grunt.registerTask('default', ['uglify', 'jshint', 'watch']);
};