Selaa lähdekoodia

Fixed installer issues

pull/4/head
anish 3 vuotta sitten
vanhempi
commit
c00ab8aa0b
1 muutettua tiedostoa jossa 8 lisäystä ja 7 poistoa
  1. 8
    7
      index.js

+ 8
- 7
index.js Näytä tiedosto

@@ -756,8 +756,9 @@ var op = {
gitRepos.push('client/server');
gitRepos = gitRepos.concat(elevatedRunasRepos);

// gitRepos = ['bbhverse', 'serververse', 'elixir-server'
// , 'client'
// gitRepos = [
// 'bbhverse', 'serververse', 'elixir-server',
// 'client'
// ];
var rmtasks = []
var repotasks = []
@@ -783,7 +784,7 @@ var op = {
repotasks.push(
() => {
console.log(`--------------------npm i for ${repo}--------------------`)
var p = nodeShellExec('npm', ['i --force'], {
var p = nodeShellExec('npm', ['i', '--force'], {
inherit: true, shell: true
, cwd: instanceroot + '/' + repo
, env: process.env
@@ -800,21 +801,21 @@ var op = {
// repotasks.push(
// () => {
// 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
// , cwd: instanceroot + '/' + 'client'
// , env: process.env
// , title: `npm i for client`
// }).then(Tasq.then).catch(Tasq.catch)
// return p;
// })

var bowerRepos = ['client']
bowerRepos.forEach(repo => {
repotasks.push(() => {
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
, cwd: instanceroot + '/' + repo

Loading…
Peruuta
Tallenna