forked from jazz-soft/web-midi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
36 lines (36 loc) · 878 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']
},
import: {
src: 'node_modules/jzz/javascript/JZZ.js',
dest: 'src/_JZZ.js'
},
copy: {
firefox: {
expand: true,
cwd: 'src',
src: '*.js',
dest: 'firefox/web-midi'
},
safari: {
expand: true,
cwd: 'src',
src: '*.js',
dest: 'safari/web-midi.safariextension'
},
safari12: {
expand: true,
cwd: 'src',
src: '*.js',
dest: 'safari/web-midi/extension'
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('import', require('./src/tools/import.js')(grunt));
grunt.registerTask('default', ['import', 'copy']);
};