@artegha/create-node-server
Version:
Create Node servers with no build configuration.
31 lines • 1.85 kB
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var commander_1 = require("commander");
var chalk_1 = __importDefault(require("chalk"));
var package_json_1 = __importDefault(require("../package.json"));
exports.default = new commander_1.Command(package_json_1.default.name)
.version(package_json_1.default.version)
.arguments('<project-directory>')
.usage(chalk_1.default.green('<project-directory>') + " [options]")
.option('--verbose', 'print additional logs')
.option('--info', 'print environment debug info')
.option('--template <path-to-template>', 'specify a template for the created project')
.option('--use-yarn')
.on('--help', function () {
console.log(" Only " + chalk_1.default.green('<project-directory>') + " is required.");
console.log();
console.log(" A custom " + chalk_1.default.cyan('--template') + " can be one of:");
console.log(" - a custom template published on npm: " + chalk_1.default.green('cns-template-typescript'));
console.log(" - a local path relative to the current working directory: " + chalk_1.default.green('file:../my-custom-template'));
console.log(" - a .tgz archive: " + chalk_1.default.green('https://mysite.com/my-custom-template-0.8.2.tgz'));
console.log(" - a .tar.gz archive: " + chalk_1.default.green('https://mysite.com/my-custom-template-0.8.2.tar.gz'));
console.log();
console.log(' If you have any problems, do not hesitate to file an issue:');
console.log(" " + chalk_1.default.cyan('https://gitlab.com/artegha/create-node-server/issues/new'));
console.log();
})
.parse(process.argv);
//# sourceMappingURL=program.js.map
;