php-htx-cli
Version:
A cli to convert .htx (different components) files to .php
23 lines (22 loc) • 1.02 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const yargs_1 = __importDefault(require("yargs"));
const helpers_1 = require("yargs/helpers");
const run_1 = __importDefault(require("./command/run"));
const watch_1 = __importDefault(require("./command/watch"));
const init_1 = __importDefault(require("./command/init"));
(0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
.command(["$0", "run"], "Convert htx files to regular php", () => { }, run_1.default)
.command("watch [folder]", "Convert htx files to regular php and update when changes are detected", yargs => {
yargs.positional("folder", {
type: "string",
default: "./",
describe: "The folder to watch"
});
}, watch_1.default)
.command("init", "Initialize a 'htx_config.json' file", () => { }, init_1.default)
.parse();