Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,23 @@ const WELCOME = `${JUNO_LOGO} ${grey(`v${version}`)}
Welcome 👋
`;

const outro = ({input: {destination, localDevelopment}}: {input: GeneratorInput}) => {
const outro = ({
input: {destination, localDevelopment, serverlessFunctions}
}: {
input: GeneratorInput;
}) => {
const emptyDestination = isNullish(destination) || destination === '';

const pm = whichPMRuns();

const enterYourProjectDirectory = `Enter your project directory by running ${cyan(`cd ${destination}`)}`;
const startDevServer = `Run ${cyan(`${pm} run dev`)} to start your frontend dev server (CTRL+C to stop)`;
const runJunoInit = `Connect your satellite to the project by executing ${cyan('juno init')}`;
const runJunoDevStart = `In another terminal, run ${cyan('juno dev start')} to quickstart the local development emulator`;

const liveReload =
nonNullish(serverlessFunctions) && ['ts', 'js'].includes(serverlessFunctions) ? ' --watch' : '';
const startCmd = `juno dev start${liveReload}`;
const runJunoDevStart = `In another terminal, run ${cyan(startCmd)} to quickstart the local development emulator`;

const runs = (index: number): string =>
localDevelopment
Expand Down