Browse Source

Fixed installer issues

master
anish 3 years ago
parent
commit
c00ab8aa0b
1 changed files with 8 additions and 7 deletions
  1. 8
    7
      index.js

+ 8
- 7
index.js View File

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

Loading…
Cancel
Save