Ver código fonte

elxr install fixe

production
samuel 3 anos atrás
pai
commit
6a82ccd81a
1 arquivos alterados com 17 adições e 3 exclusões
  1. 17
    3
      index.js

+ 17
- 3
index.js Ver arquivo

@@ -155,8 +155,8 @@ var dbForLabel = function(label){
return dbsForLabel[label] || 'mysql'
}

var gitInstallDir = "C:\\Program Files\\Git\\bin\\sh.exe"
// var gitInstallDir = "G:\\Installed\\Git\\bin\\sh.exe"
// var gitInstallDir = "C:\\Program Files\\Git\\bin\\sh.exe"
var gitInstallDir = "G:\\Installed\\Git\\bin\\sh.exe"
// Relevant git repos
var gitRepos = [
'ember-masonry-grid'
@@ -207,7 +207,7 @@ var exludeMergeRepos = {
var productionRepos = [
'elixir-config-production'
]
var productionIsAllowed = true;
var productionIsAllowed = (process.env.NODE_ENV === 'production');
if(productionIsAllowed) gitRepos = gitRepos.concat(productionRepos)

var env = Object.assign({}, process.env); // Shallow clone it.
@@ -827,6 +827,20 @@ var __runcmd = function(label){
}
, 'npmi' : ()=>{
var tasks = [];
var bowerRepos = ['client']
bowerRepos.forEach(repo => {
tasks.push(()=>{
var p = nodeShellExec('bower', ['install'], {
inherit : true, shell: true
, cwd : repo
, env: process.env
, title : `bower i for ${repo}`
}).catch((e)=>{ console.error(e) })
return p;
})
})
gitRepos = gitRepos.concat(elevatedRunasRepos);
gitRepos.push('client/server');
gitRepos.forEach(repo => {
console.log('npm i for ' + repo)

Carregando…
Cancelar
Salvar