message: Modify itk-js-cli.js to call git bash on windows
diff: @@ -69,13 +69,29 @@ const build = (sourceDir) => {
  if (hypenIndex !== -1) {
  cmakeArgs = program.rawArgs.slice(hypenIndex + 1)
  }
  + if(process.platform === "win32"){
  + var dockerBuild = spawnSync('"C:\\Program Files\\Git\\bin\\sh.exe"',
  + ["--login", "-i", "-c", '"web-build/itk-js-build-env web-build ' + cmakeArgs + '"'], {
  + env: process.env,
  + stdio: 'inherit',
  + shell: true
  + });
  + if (dockerBuild.status !== 0) {
  + console.error(dockerBuild.error);
  + }
  + process.exit(dockerBuild.status);
  + } else {
  const dockerBuild = spawnSync('bash', [dockcrossScript, 'web-build'].concat(cmakeArgs), {
  env: process.env,
  stdio: 'inherit'
  })
  + if (dockerBuild.status !== 0) {
  + console.error(dockerBuild.error);
  + }
  process.exit(dockerBuild.status)
  }
  +}
  const test = (sourceDir) => {
  // Check that the source directory exists and chdir to it.
  @@ -104,7 +120,19 @@ const test = (sourceDir) => {
  if (hypenIndex !== -1) {
  ctestArgs = program.rawArgs.slice(hypenIndex + 1).join(' ')
  }
  + if(process.platform === "win32"){
  + var dockerBuild = spawnSync('"C:\\Program Files\\Git\\bin\\sh.exe"',
  + ["--login", "-i", "-c", '"web-build/itk-js-build-env bash -c cd web-build && ctest ' + cmakeArgs + '"'], {
  + env: process.env,
  + stdio: 'inherit',
  + shell: true
  + });
  + if (dockerBuild.status !== 0) {
  + console.error(dockerBuild.error);
  + }
  + process.exit(dockerBuild.status);
  + } else {
  const dockerBuild = spawnSync('bash', [dockcrossScript,
  'bash', '-c',
  'cd web-build && ctest ' + ctestArgs],
  @@ -114,6 +142,7 @@ const test = (sourceDir) => {
  })
  process.exit(dockerBuild.status)
  }
  +}
  program
  .command('build <sourceDir>')
  