UNPKG

create-nttb

Version:

An opinionated Next.js, TypeScript, and Tailwind boilerplate using Atomic Design Methodology for presentation components.

38 lines 918 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.main = main; const install_1 = require("./install"); const update_1 = require("./update"); function showHelp() { console.log(` Usage: create-nttb <project-name> create-nttb install create-nttb update [project-path] `); } async function main() { const args = process.argv.slice(2); const [command, targetPath] = args; if (!command) { showHelp(); process.exit(1); } if (command === "install") { await (0, install_1.main)(); return; } if (command === "update") { await (0, update_1.main)(targetPath); return; } await (0, install_1.main)(command); } if (require.main === module) { main().catch((err) => { console.error("Error:", err.message); process.exit(1); }); } //# sourceMappingURL=index.js.map