forked from StreamMachine/StreamMachine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
32 lines (29 loc) · 1.11 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
coffee:
default:
options:
bare: true
sourceMap: true
expand: true
flatten: false
src: ["src/**/*.coffee","streamer.coffee","runner.coffee","util.coffee","util/*.coffee"]
dest: 'js/'
ext: ".js"
'no-sourcemaps':
options:
bare: true
sourceMap: false
expand: true
flatten: false
src: ["src/**/*.coffee","streamer.coffee","runner.coffee","util.coffee","util/*.coffee"]
dest: 'js/'
ext: ".js"
copy:
copy_slave_worker:
files: 'js/src/streammachine/modes/slave_worker.js': ['src/streammachine/modes/slave_worker_js.js']
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.registerTask 'default', ['coffee:default','copy']
grunt.registerTask 'build:no-sourcemaps', ['coffee:no-sourcemaps','copy']