@iotize/cli
Version:
IoTize command line interface
19 lines • 643 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const cli_core_1 = require("@iotize/cli-core");
const path_1 = require("path");
class Ng {
serve(options = {}, localVersion = true) {
let args = ['serve', '--port', (options.port || 4210).toString()];
if (options.open) {
args.push('--open');
}
if (options.args) {
args.push(options.args);
}
return cli_core_1.shell.execSpawn(localVersion ? path_1.resolve(`node_modules/.bin/ng`) : 'ng', args);
}
}
exports.Ng = Ng;
exports.ng = new Ng();
//# sourceMappingURL=ng.js.map