-
Notifications
You must be signed in to change notification settings - Fork 17
/
Gruntfile.js
49 lines (42 loc) · 1.21 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
var path = require('path');
module.exports = function( grunt ) {
require("matchdep").filterDev("grunt-*").forEach( grunt.loadNpmTasks );
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
src:"public/src",
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= pkg.version %> | Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %> | <%= pkg.license %> license */\n'
},
build: {
src: '<%= pkg.main %>.js',
dest: '<%= pkg.main %>.min.js'
}
},
express: {
server: {
options: {
bases: ['public','bower_components']
}
}
},
concat: {
dist:{
src:['<%= src %>/intro.js',
'<%= src %>/app.js',
'<%= src %>/Overlay.js',
'<%= src %>/ngImageEditor.js',
'<%= src %>/outro.js'],
dest:'dist/ngImageEditor.js'
}
},
open: {
server:{
path: "http://localhost:<%= express.server.options.port %>/index.html"
}
}
});
grunt.registerTask('build', ['concat','uglify']);
grunt.registerTask('default', ['build']);
grunt.registerTask('server', ['express','open','express-keepalive']);
}