-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathJakefile
More file actions
39 lines (30 loc) · 1020 Bytes
/
Jakefile
File metadata and controls
39 lines (30 loc) · 1020 Bytes
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
require('shelljs/global')
config.silent = false
function exited(name, code, output) {
console.error('%s exited with code %d\n%s', name, code, output)
// bitcoind/litecoind gets stuck at times
exec('powershell -Command "kill -name bitcoind"')
exec('powershell -Command "kill -name litecoind"')
process.exit(1)
}
task('dev', function() {
// Static web server
pushd('web')
var staticWeb = exec('jake host', { async: true }, exited.bind(this, 'staticWeb'))
popd()
// API server
pushd('api')
var apiServer = exec('nodemon index.js', { async: true }, exited.bind(this, 'apiServer'))
popd()
return
// bitcoind
// var bitcoind = exec('bitcoind -datadir=btc -txindex=1', exited.bind(this, 'bitcoind'))
// litecoind
// var litecoind = exec('litecoind -datadir=ltc', exited.bind(this, 'litecoind'))
// workers
/*
pushd('workers')
var workers = exec('nodemon bin/all', exited.bind(this, 'workers'))
popd()
*/
}, { async: true })