forked from ucbvislab/speecheditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
67 lines (63 loc) · 2.82 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
coffee: {
compile: {
files: {
'static/script/textAreaManager.js': 'static/script/textAreaManager.coffee'
}
}
},
uglify: {
production: {
'static/script/speecheditor.min.js':
['static/script/setProductionEnv.js', 'static/script/speecheditor-dev.js']
},
dev: {
src: ['static/script/speecheditor-dev.js'],
dest: 'static/script/speecheditor-dev.min.js'
}
},
concat: {
dev: {
src: [
'static/script/underscore-min.js',
'static/script/spin.js',
'static/script/soundmanager2-jsmin.js',
'static/script/chosen/chosen/chosen.jquery.min.js',
'static/script/textinputs.jquery.js',
'static/script/jquery.tabSlideOut.js',
'static/script/jquery.scrollTo/jquery.scrollTo.min.js',
"static/script/lib/jquery.zclip.js",
'static/script/bootstrap-custom.min.js',
'static/script/bootstrap-fileupload.min.js',
'static/edible/js/jquery.ui.snap2.js',
'static/edible/js/edible.multicanvas.js',
'static/edible/js/edible.wfBase.js',
'static/edible/js/edible.waveform.js',
'static/edible/js/edible.textAlignedWaveform.js',
'static/edible/js/lib/jsnetworkx.js',
"static/edible/js/lib/cubicspline.js",
'static/edible/js/edible.musicWaveform.js',
'static/edible/js/edible.timeline.js',
'static/edible/js/lib/waveform.js',
'static/script/less.js',
'static/script/textAreaManager.js',
'static/script/speecheditor.js',
'static/musicbrowser/js/jquery.dataTables.min.js',
"static/musicbrowser/js/paging.js",
"static/musicbrowser/js/berniecode-animator.js",
"static/musicbrowser/js/kdTree.js",
"static/musicbrowser/js/musicBrowserApp.js"
],
dest: 'static/script/speecheditor-dev.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('dev', ['coffee:compile', 'concat:dev']);
grunt.registerTask('default', ['dev', 'uglify:dev']);
grunt.registerTask('production', ['dev', 'uglify:production']);
};