UNPKG

create-elysiajs

Version:

Scaffolding your Elysia project with the environment with easy!

19 lines (18 loc) 710 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getInstallCommands = getInstallCommands; function getInstallCommands({ linter, orm, database, git, others, }) { const commands = []; if (git) commands.push("git init"); commands.push("bun install"); if (others.includes("Husky") && linter !== "None") commands.push(`echo "bun lint:fix" > .husky/pre-commit`); if (orm === "Prisma") commands.push(`bunx prisma init --datasource-provider ${database.toLowerCase()}`); if (linter === "Biome") commands.push("bunx @biomejs/biome init"); if (linter !== "None") commands.push("bun lint:fix"); return commands; }