var spawn = require('win-spawn')

var ps = spawn('cmake-js', [
  'rebuild',
  '-r', process.env.npm_config_runtime || 'node',
  '-v', process.env.npm_config_target || process.versions.node,
  '--abi', process.env.npm_config_abi || process.versions.modules
])
ps.stdout.pipe(process.stdout)
ps.stderr.pipe(process.stderr)
ps.on('exit', function (code) {
  process.exit(code)
})

@@ -35,53 +35,17 @@
 var 
-ps = spawn('cmake-js', %5B%0A  'rebuild',%0A  '-r',
+runtime =
  pro
@@ -85,17 +85,21 @@
 ode'
-,%0A  '-v',
+%0Avar target =
  pro
@@ -153,20 +153,18 @@
 node
-,%0A  '--abi',
+%0Avar abi =
  pro
@@ -214,16 +214,170 @@
 .modules
+%0A%0Aconsole.log('BUILD for %25s@%25s (abi=%25s)', runtime, target, abi)%0A%0Avar ps = spawn('cmake-js', %5B%0A  'rebuild',%0A  '-r', runtime,%0A  '-v', target,%0A  '--abi', abi
 %0A%5D)%0Aps.s

add debug output to build script