-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGruntfile.js
44 lines (41 loc) · 1.69 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
build: {
files: {
'build/<%= pkg.name %>.services.min.js' : ['build/<%= pkg.name %>.services.js'],
'build/<%= pkg.name %>.map.min.js' : ['build/<%= pkg.name %>.map.js'],
'build/<%= pkg.name %>.renderers.min.js' : ['build/<%= pkg.name %>.renderers.js'],
'build/<%= pkg.name %>.min.js' : ['build/<%= pkg.name %>.js']
}
}
},
copy: {
dist: {
expand: true,
cwd: 'build/',
src: '**',
dest: 'dist/js/',
flatten: true,
filter: 'isFile'
}
},
concat: {
basic: {
files : {
'build/<%= pkg.name %>.services.js' : ['js/lib/MascpService.js','js/lib/*Reader.js','js/lib/*Runner.js','js/lib/MascotToJSON.js', 'js/lib/gator-reader-element.js' ],
'build/<%= pkg.name %>.map.js' : [ 'js/lib/gomap.js'],
'build/<%= pkg.name %>.renderers.js' : [ 'js/hammer.js','js/jsandbox.js','js/piemenu.js','js/lib/SequenceRenderer.js','js/lib/SVGCanvas.js','js/lib/CondensedSequenceRenderer.js','js/lib/CondensedSequenceRendererNavigation.js','js/lib/TagVisualisation.js','js/lib/gator-element.js' ],
'build/<%= pkg.name %>.js' : [ 'js/bean.js','js/observe.js','build/<%= pkg.name %>.services.js','build/<%= pkg.name %>.renderers.js','build/<%= pkg.name %>.map.js' ]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
// Default task(s).
grunt.registerTask('default', ['concat','uglify','copy']);
};