Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .changeset/curvy-pugs-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'preact-cli': patch
---

Ensures the create command returns startup instructions to users
12 changes: 6 additions & 6 deletions packages/cli/lib/commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,20 +410,20 @@ async function command(repo, dest, argv) {

let pfx = isYarn ? 'yarn' : 'npm run';

return (
process.stdout.write(
trim(`
To get started, cd into the new directory:
${green('cd ' + dest)}
${green('cd ' + dest)}

To start a development live-reload server:
${green(pfx + ' dev')}
${green(pfx + ' dev')}

To create a production build (in ./build):
${green(pfx + ' build')}
${green(pfx + ' build')}

To start a production HTTP/2 server:
${green(pfx + ' serve')}
`) + '\n'
${green(pfx + ' serve')}
`) + '\n\n'
);
}

Expand Down