init
This commit is contained in:
30
node_modules/node-rtsp-stream/Cakefile
generated
vendored
Normal file
30
node_modules/node-rtsp-stream/Cakefile
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
{print} = require 'util'
|
||||
{spawn} = require 'child_process'
|
||||
|
||||
build = (watch) ->
|
||||
options = ['-c', '-o', 'lib', 'src']
|
||||
if watch is true
|
||||
options.unshift '-w'
|
||||
coffee = spawn 'coffee', options
|
||||
coffee.stderr.on 'data', (data) ->
|
||||
coffee = spawn 'node_modules\\.bin\\coffee.cmd', options
|
||||
coffee.stdout.on 'data', (data) ->
|
||||
console.log data.toString().trim()
|
||||
coffee.stderr.on 'data', (data) ->
|
||||
console.log data.toString().trim()
|
||||
coffee.on 'error', (error) ->
|
||||
coffee = spawn 'node_modules\\.bin\\coffee.cmd', options
|
||||
coffee.stdout.on 'data', (data) ->
|
||||
console.log data.toString().trim()
|
||||
coffee.stderr.on 'data', (data) ->
|
||||
console.log data.toString().trim()
|
||||
coffee.stdout.on 'data', (data) ->
|
||||
print data.toString()
|
||||
# coffee.on 'exit', (code) ->
|
||||
# callback?() if code is 0
|
||||
|
||||
task 'build', 'Build lib/ from src/', ->
|
||||
build false
|
||||
|
||||
task 'watch', 'Watch src/ for changes', ->
|
||||
build true
|
||||
Reference in New Issue
Block a user