Skip to content

Watching? #670

Answered by paularmstrong
alecmev asked this question in Q&A
Discussion options

You must be logged in to vote

Writing commands is the most recommended way to do this, as we've found more often than not that we need to include default flags for third-party commands, or run extra setup or checks under certain conditions, and it's better to have a wrapper command to handle this. These wrappers can start pretty simple. Here's an example that runs the netlify dev server: https://github.com/paularmstrong/paularmstrong.dev/blob/64049b3229292b99ce4c007c96cdae321d0c7d2c/commands/start.ts#L12-L20

There's an alternative to bootstrap and get things running for the simplest cases: passthrough commands. These are discouraged mostly due to the previous reasoning and because you are limited in help documentation…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alecmev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants