create-jd-app
Version:
Create modern type safed Solid web application within seconds
57 lines (42 loc) • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const getReadMe = (ctx, passed = []) => {
const envContent = `### Enviroment Variables
${passed
.filter((env) => !env.ignore || env.key === "ENABLE_VC_BUILD")
.map((env) => { var _a; return `- \`${env.key}\`=${(_a = env.defaulValue) !== null && _a !== void 0 ? _a : ""}`; })
.join("\n")}
`;
const runCmd = ctx.pkgManager === "pnpm" ? "" : " run";
return `This project was created using [Create JD App](https://github.com/OrJDev/create-jd-app)
## Start Dev Server
\`\`\`bash
${ctx.pkgManager}${runCmd} dev
\`\`\`
This will start a dev server on port \`3000\` and will watch for changes.
## Testing Production Build
### Build
\`\`\`bash
${ctx.pkgManager}${runCmd} build
\`\`\`
### Start
\`\`\`bash
${ctx.pkgManager}${runCmd} start
\`\`\`
This will start a production server on port \`3000\`.
${ctx.vercel === "Cli"
? `\n## Deploying To Vercel
### Building
\`\`\`bash
vercel build --prod
\`\`\`
### Deploying
\`\`\`bash
vercel deploy --prod --prebuilt
\`\`\``
: ""}
${envContent}
[Sponsor Create JD App](https://github.com/sponsors/OrJDev)
`;
};
exports.default = getReadMe;