Skip to content

Commit

Permalink
Add --quiet option to nodemon (#4973)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Choudhury <[email protected]>
  • Loading branch information
simoncrypta and dac09 authored Apr 1, 2022
1 parent 0a1eb21 commit a635626
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions docs/docs/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,6 @@ When launching the dev server via the `yarn rw dev` command, you will see output
```bash

api | [nodemon] 2.0.12
api | [nodemon] to restart at any time, enter `rs`
api | [nodemon] watching path(s): redwood.toml
api | [nodemon] watching extensions: js,mjs,json
api | [nodemon] starting `yarn rw-api-server-watch`
gen | Generating TypeScript definitions and GraphQL schemas...
gen | 37 files generated
api | Building... Took 444 ms
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/__tests__/dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('yarn rw dev', () => {
)

expect(apiCommand.command).toMatchInlineSnapshot(
`"yarn cross-env NODE_ENV=development NODE_OPTIONS=--enable-source-maps yarn nodemon --watch \\"/mocked/project/redwood.toml\\" --exec \\"yarn rw-api-server-watch --debug-port 18911 | rw-log-formatter\\""`
`"yarn cross-env NODE_ENV=development NODE_OPTIONS=--enable-source-maps yarn nodemon --quiet --watch \\"/mocked/project/redwood.toml\\" --exec \\"yarn rw-api-server-watch --debug-port 18911 | rw-log-formatter\\""`
)

expect(generateCommand.command).toEqual('yarn rw-gen-watch')
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const handler = async ({
const jobs = {
api: {
name: 'api',
command: `yarn cross-env NODE_ENV=development NODE_OPTIONS=--enable-source-maps yarn nodemon --watch "${redwoodConfigPath}" --exec "yarn rw-api-server-watch ${getApiDebugFlag()} | rw-log-formatter"`,
command: `yarn cross-env NODE_ENV=development NODE_OPTIONS=--enable-source-maps yarn nodemon --quiet --watch "${redwoodConfigPath}" --exec "yarn rw-api-server-watch ${getApiDebugFlag()} | rw-log-formatter"`,
prefixColor: 'cyan',
runWhen: () => fs.existsSync(rwjsPaths.api.src),
},
Expand Down

0 comments on commit a635626

Please sign in to comment.