Browse Source

interpret fixed for start. npm bbhverse and other packages dontt auto update for elxr ( due to no versioning ). need a strategy to delete and force update all the time...

master
pb 1 year ago
parent
commit
515c8cf67d
1 changed files with 14 additions and 6 deletions
  1. 14
    6
      index.js

+ 14
- 6
index.js View File

"use strict"; "use strict";


var __g = require('global-this'); var __g = require('global-this');

var ENV = Object.assign({}, process.env); // Shallow clone so we can set values and reuse for reshelling spawns.
__g.env = ENV
ENV.NODE_ENV = (ENV.NODE_ENV && ENV.NODE_ENV.trim()) || 'development'
const fs = require('fs') const fs = require('fs')
var path = require('path'); var path = require('path');
var utils = require('bbhverse'); var utils = require('bbhverse');
var cmds = { var cmds = {
remote : { remote : {
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION }
, clioverrides, { cmd : processedArgs._.slice(0, 2).join(' '), runchoice : 'c' }) }
, { cmd : processedArgs._.slice(0, 2).join(' '), runchoice : 'c' }) }
, noprerequisites : true , noprerequisites : true
, independentcmd : true , independentcmd : true
} }
, start : {
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION }
, { cmd : 'start', runchoice : 'c'
, node_env : ENV.NODE_ENV, root : ENV.wd, instanceType : ENV.NODE_ENV
})}
}
, 'remote refresh' : { , 'remote refresh' : {
// return a interpreted set of arguments for this cmd run context. // return a interpreted set of arguments for this cmd run context.
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION }
, clioverrides, { cmd : 'remote refresh', runchoice : 'c' }) }
, { cmd : 'remote refresh', runchoice : 'c' }) }
, noprerequisites : true , noprerequisites : true
, independentcmd : true , independentcmd : true
, requires : [ generateDependencies ] , requires : [ generateDependencies ]
, 'remote set-url' : { , 'remote set-url' : {
// return a interpreted set of arguments for this cmd run context. // return a interpreted set of arguments for this cmd run context.
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION }
, clioverrides, { cmd : 'remote set-url', runchoice : 'c' }) }
, { cmd : 'remote set-url', runchoice : 'c' }) }
, noprerequisites : true , noprerequisites : true
, independentcmd : true , independentcmd : true
, requires : [ generateDependencies ] , requires : [ generateDependencies ]
, 'remote add' : { , 'remote add' : {
// return a interpreted set of arguments for this cmd run context. // return a interpreted set of arguments for this cmd run context.
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION }
, clioverrides, { cmd : 'remote add', runchoice : 'c' }) }
, { cmd : 'remote add', runchoice : 'c' }) }
, noprerequisites : true , noprerequisites : true
, independentcmd : true , independentcmd : true
, requires : [ generateDependencies ] , requires : [ generateDependencies ]
, 'remote remove' : { , 'remote remove' : {
// return a interpreted set of arguments for this cmd run context. // return a interpreted set of arguments for this cmd run context.
interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION } interpret() { return utils.assign_core( { keycase: true, arraymergetype : utils.assign_core.DISTINCT_UNION }
, clioverrides, { cmd : 'remote remove', runchoice : 'c' }) }
, { cmd : 'remote remove', runchoice : 'c' }) }
, noprerequisites : true , noprerequisites : true
, independentcmd : true , independentcmd : true
} }

Loading…
Cancel
Save