@zohodesk/client_build_tool
Version:
A CLI tool to build web applications and client libraries
32 lines (23 loc) • 914 B
JavaScript
const { polyfillForOldNodeVersion } = require('./polyfillForOldNodeVersion');
polyfillForOldNodeVersion();
const { verboseLogger } = require('./lib/logger');
const { route } = require('./lib/commandsRouter');
const {
readArgsFormCommandLine,
readOptionFormCommandLine,
doBasicRequirementCheck
} = require('./lib/shared/commands-utils');
const { versionPrint } = require('./lib/shared/utils/versionPrint');
// process.traceDeprecation = true;
verboseLogger('hello there, this is client build tool verbose logging..');
versionPrint(verboseLogger);
const option = readOptionFormCommandLine();
const args = readArgsFormCommandLine();
// // like machine support and node support and npm support
// // if it is ok then do the proper work.
if (doBasicRequirementCheck()) {
// runProperCommand(option, args)
verboseLogger(`the command was ${option}`, args);
route(option);
}