|
|
|
|
|
|
|
|
gitRepos.push('client/server'); |
|
|
gitRepos.push('client/server'); |
|
|
gitRepos = gitRepos.concat(elevatedRunasRepos); |
|
|
gitRepos = gitRepos.concat(elevatedRunasRepos); |
|
|
|
|
|
|
|
|
// gitRepos = ['bbhverse', 'serververse', 'elixir-server' |
|
|
|
|
|
// , 'client' |
|
|
|
|
|
|
|
|
// gitRepos = [ |
|
|
|
|
|
// 'bbhverse', 'serververse', 'elixir-server', |
|
|
|
|
|
// 'client' |
|
|
// ]; |
|
|
// ]; |
|
|
var rmtasks = [] |
|
|
var rmtasks = [] |
|
|
var repotasks = [] |
|
|
var repotasks = [] |
|
|
|
|
|
|
|
|
repotasks.push( |
|
|
repotasks.push( |
|
|
() => { |
|
|
() => { |
|
|
console.log(`--------------------npm i for ${repo}--------------------`) |
|
|
console.log(`--------------------npm i for ${repo}--------------------`) |
|
|
var p = nodeShellExec('npm', ['i --force'], { |
|
|
|
|
|
|
|
|
var p = nodeShellExec('npm', ['i', '--force'], { |
|
|
inherit: true, shell: true |
|
|
inherit: true, shell: true |
|
|
, cwd: instanceroot + '/' + repo |
|
|
, cwd: instanceroot + '/' + repo |
|
|
, env: process.env |
|
|
, env: process.env |
|
|
|
|
|
|
|
|
// repotasks.push( |
|
|
// repotasks.push( |
|
|
// () => { |
|
|
// () => { |
|
|
// console.log(`--------------------second time npm i for client--------------------`) |
|
|
// console.log(`--------------------second time npm i for client--------------------`) |
|
|
// var p = nodeShellExec('npm', ['i --force'], { |
|
|
|
|
|
|
|
|
// return nodeShellExec(`"${gitbash}"`, ['-c', '"npm i"'], { |
|
|
|
|
|
// // return nodeShellExec('npm', ['i --force'], { |
|
|
// inherit: true, shell: true |
|
|
// inherit: true, shell: true |
|
|
// , cwd: instanceroot + '/' + 'client' |
|
|
// , cwd: instanceroot + '/' + 'client' |
|
|
// , env: process.env |
|
|
// , env: process.env |
|
|
// , title: `npm i for client` |
|
|
// , title: `npm i for client` |
|
|
// }).then(Tasq.then).catch(Tasq.catch) |
|
|
// }).then(Tasq.then).catch(Tasq.catch) |
|
|
// return p; |
|
|
|
|
|
// }) |
|
|
// }) |
|
|
|
|
|
|
|
|
var bowerRepos = ['client'] |
|
|
var bowerRepos = ['client'] |
|
|
bowerRepos.forEach(repo => { |
|
|
bowerRepos.forEach(repo => { |
|
|
repotasks.push(() => { |
|
|
repotasks.push(() => { |
|
|
console.log(instanceroot + '/' + repo + '/node_modules/bower/bin/bower') |
|
|
console.log(instanceroot + '/' + repo + '/node_modules/bower/bin/bower') |
|
|
var p = nodeShellExec('node_modules/bower/bin/bower', ['install'], { |
|
|
|
|
|
// var p = nodeShellExec(`"${gitbash}"`, ['-c', '"node_modules/bower/bin/bower i"'], { |
|
|
|
|
|
|
|
|
// var p = nodeShellExec('node_modules/bower/bin/bower', ['install'], { |
|
|
|
|
|
var p = nodeShellExec(`"${gitbash}"`, ['-c', '"node_modules/bower/bin/bower i"'], { |
|
|
|
|
|
|
|
|
inherit: true, shell: true |
|
|
inherit: true, shell: true |
|
|
, cwd: instanceroot + '/' + repo |
|
|
, cwd: instanceroot + '/' + repo |