-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
36 lines (36 loc) · 1007 Bytes
/
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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['src/**/*.js']
},
assemble: {
main: 'src/tools/main.js',
src: [
'node_modules/jzz/javascript/JZZ.js',
'node_modules/jzz-synth-tiny/javascript/JZZ.synth.Tiny.js',
'node_modules/jzz-midi-smf/javascript/JZZ.midi.SMF.js',
'node_modules/jzz-gui-player/javascript/JZZ.gui.Player.js'
],
dest: 'src/inject.js'
},
copy: {
firefox: {
expand: true,
cwd: 'src',
src: '*.js',
dest: 'firefox/midi-player'
},
safari: {
expand: true,
cwd: 'src',
src: '*.js',
dest: 'safari/midi-player/extension'
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('assemble', require('./src/tools/assemble.js')(grunt));
grunt.registerTask('default', ['assemble', 'copy']);
};