Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add remix watch example to cli #3902

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@
- jo-ninja
- joaosamouco
- jodygeraldo
- joelazar
- johannesbraeunig
- johnpolacek
- johnson444
Expand Down
7 changes: 7 additions & 0 deletions packages/remix-dev/cli/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ${colors.logoBlue("R")} ${colors.logoGreen("E")} ${colors.logoYellow(
$ remix build [${colors.arg("projectDir")}]
$ remix dev [${colors.arg("projectDir")}]
$ remix routes [${colors.arg("projectDir")}]
$ remix watch [${colors.arg("projectDir")}]
$ remix setup [${colors.arg("remixPlatform")}]
$ remix migrate [-m ${colors.arg("migration")}] [${colors.arg(
"projectDir"
Expand Down Expand Up @@ -103,6 +104,12 @@ ${colors.logoBlue("R")} ${colors.logoGreen("E")} ${colors.logoYellow(
$ remix dev my-app
$ remix dev --debug

${colors.heading("Start your server separately and watch for changes")}:

$ # custom server start command, for example:
$ node --inspect --require ./node_modules/dotenv/config --require ./mocks ./build/server.js
$ remix watch
kentcdodds marked this conversation as resolved.
Show resolved Hide resolved

${colors.heading("Show all routes in your app")}:

$ remix routes
Expand Down