Browse Source

elxr install fixe

master
samuel 3 years ago
parent
commit
6a82ccd81a
1 changed files with 17 additions and 3 deletions
  1. 17
    3
      index.js

+ 17
- 3
index.js View File

return dbsForLabel[label] || 'mysql' 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 // Relevant git repos
var gitRepos = [ var gitRepos = [
'ember-masonry-grid' 'ember-masonry-grid'
var productionRepos = [ var productionRepos = [
'elixir-config-production' 'elixir-config-production'
] ]
var productionIsAllowed = true;
var productionIsAllowed = (process.env.NODE_ENV === 'production');
if(productionIsAllowed) gitRepos = gitRepos.concat(productionRepos) if(productionIsAllowed) gitRepos = gitRepos.concat(productionRepos)


var env = Object.assign({}, process.env); // Shallow clone it. var env = Object.assign({}, process.env); // Shallow clone it.
} }
, 'npmi' : ()=>{ , 'npmi' : ()=>{
var tasks = []; 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 => { gitRepos.forEach(repo => {
console.log('npm i for ' + repo) console.log('npm i for ' + repo)

Loading…
Cancel
Save