|
|
@@ -137,6 +137,13 @@ var gitRepos = [ |
|
|
|
, 'loopback-connector-ds' |
|
|
|
, 'chess-server-lib' |
|
|
|
, 'setup' |
|
|
|
, 'elixir-client-todos' |
|
|
|
, 'elixir-client-unlinked' |
|
|
|
, 'ember-service-worker.git' |
|
|
|
, 'ember-service-worker-asset-cache.git' |
|
|
|
, 'ember-service-worker-cache-fallback.git' |
|
|
|
, 'ember-service-worker-index.git' |
|
|
|
, 'ember-sw-client-route.git' |
|
|
|
] |
|
|
|
|
|
|
|
// Repositiories that have symlinks that required elevated priviletes in windows to create symlinks |
|
|
@@ -233,8 +240,9 @@ var __runcmd = function(label){ |
|
|
|
) |
|
|
|
.catch(()=>{ |
|
|
|
console.log('Not Elevated'); |
|
|
|
console.log('Requesting Elevated Privileges') |
|
|
|
nodeShellExec('MSHTA', [`javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('node', 'elxr ${processedArgs._[0]} ${processedArgs._[1]} ${processedArgs._[2]} --runas=true', '', 'runas', 1);close();`] |
|
|
|
console.dir(processedArgs) |
|
|
|
console.log('Requesting Elevated Privileges for : ' + `--insptec-brk elxr ${processedArgs._[0]} ${processedArgs._[1]} --runas=true`) |
|
|
|
nodeShellExec('MSHTA', [`javascript: var shell = new ActiveXObject('shell.application'); shell.ShellExecute('node', 'elxr ${processedArgs._[0]} ${processedArgs._[1]} --runas=true', '', 'runas', 1);close();`] |
|
|
|
, { |
|
|
|
// inherit : true |
|
|
|
// , shell: true |
|
|
@@ -367,22 +375,26 @@ var __runcmd = function(label){ |
|
|
|
console.log('runconfig.use : ' + runconfig.use) |
|
|
|
var tasks = [ |
|
|
|
()=>{ |
|
|
|
var p = nodeShellExec('rm', ['config'], { |
|
|
|
inherit : true, shell: true |
|
|
|
, cwd : repo |
|
|
|
, env: process.env |
|
|
|
, title : `rm 'package-lock.json' for ${repo}` |
|
|
|
}).catch((e)=>{ console.error(e) }) |
|
|
|
return p; |
|
|
|
if(existsSync('config')) { |
|
|
|
var p = nodeShellExec('rmdir', ['config'], { |
|
|
|
inherit : true, shell: true |
|
|
|
, env: process.env |
|
|
|
, title : `rmdir config` |
|
|
|
}).catch((e)=>{ console.error(e) }) |
|
|
|
return p; |
|
|
|
} |
|
|
|
else return Promise.resolve(true); |
|
|
|
}, |
|
|
|
()=>{ |
|
|
|
var p = nodeShellExec('rm', ['data'], { |
|
|
|
inherit : true, shell: true |
|
|
|
, cwd : repo |
|
|
|
, env: process.env |
|
|
|
, title : `rm 'package-lock.json' for ${repo}` |
|
|
|
}).catch((e)=>{ console.error(e) }) |
|
|
|
return p; |
|
|
|
if(existsSync('data')) { |
|
|
|
var p = nodeShellExec('rmdir', ['data'], { |
|
|
|
inherit : true, shell: true |
|
|
|
, env: process.env |
|
|
|
, title : `rm data` |
|
|
|
}).catch((e)=>{ console.error(e) }) |
|
|
|
return p; |
|
|
|
} |
|
|
|
else return Promise.resolve(true); |
|
|
|
}, |
|
|
|
()=>{ |
|
|
|
var p = nodeShellExec('mklink', ['/D', 'data', runconfig.use + '-data'], { |
|
|
@@ -392,7 +404,8 @@ var __runcmd = function(label){ |
|
|
|
return p; |
|
|
|
}, |
|
|
|
()=>{ |
|
|
|
var p = nodeShellExec('mklink', ['/D', 'config', runconfig.use + '-config'], { |
|
|
|
// Use junctions to avoid npm package issues |
|
|
|
var p = nodeShellExec('mklink', ['/J', 'config', runconfig.use + '-config'], { |
|
|
|
inherit : true, shell: true |
|
|
|
, env: process.env |
|
|
|
}).catch((e)=>{ console.error(e) }) |