Skip to content

Commit

Permalink
feat(init, type): improve generated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lostrepo committed Jun 24, 2024
1 parent 0e4ca57 commit 1a53b9e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,11 +517,22 @@ ${app_name}
['README.md']: () => `
# Build
\`\`\`sh
lo build runtime ${cwd}/${app_name}
lo build runtime ${app_name}
\`\`\`
# Run
\`\`\`sh
./${app_name}
\`\`\`
# Regenerate init files if needed (config change, etc.)
\`\`\`sh
lo init
\`\`\`
\`\`\`sh
lo init ${app_name}
\`\`\`
# Regenerate only types and their deps (config change, etc.)
\`\`\`sh
lo type ${config.default.project_config}
\`\`\`
`,
[`${config.default.index}`]: () => `console.log('hello')`
Expand Down

0 comments on commit 1a53b9e

Please sign in to comment.