Procházet zdrojové kódy

elxr install fixe

master
samuel před 3 roky
rodič
revize
6a82ccd81a
1 změnil soubory, kde provedl 17 přidání a 3 odebrání
  1. 17
    3
      index.js

+ 17
- 3
index.js Zobrazit soubor

@@ -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)

Načítá se…
Zrušit
Uložit