run js-beautify on everything
...with two spaces. Command: js-beautify -s 2 -r [filename]
This commit is contained in:
parent
da445e7c69
commit
ea2e2d4e19
49 changed files with 859 additions and 682 deletions
13
launch.js
13
launch.js
|
|
@ -6,7 +6,10 @@
|
|||
|
||||
var sys = require('sys')
|
||||
var exec = require('child_process').exec;
|
||||
function puts(error, stdout, stderr) { sys.puts(stdout) }
|
||||
|
||||
function puts(error, stdout, stderr) {
|
||||
sys.puts(stdout)
|
||||
}
|
||||
|
||||
function isNumber(n) {
|
||||
return !isNaN(parseInt(n)) && isFinite(n);
|
||||
|
|
@ -23,9 +26,9 @@ var N = parseInt(n_str);
|
|||
var DEFAULT_PORT = process.env.DEFAULT_PORT || 3000;
|
||||
|
||||
|
||||
for (var i=0; i<N; i++) {
|
||||
var port =(i+DEFAULT_PORT);
|
||||
console.log('Simulating copayer #'+(i+1)+' at http://localhost:'+port);
|
||||
var command = 'PORT='+port+' npm start &'
|
||||
for (var i = 0; i < N; i++) {
|
||||
var port = (i + DEFAULT_PORT);
|
||||
console.log('Simulating copayer #' + (i + 1) + ' at http://localhost:' + port);
|
||||
var command = 'PORT=' + port + ' npm start &'
|
||||
exec(command, puts);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue