Skip to content

Commit

Permalink
docs: Update DEVELOPER.md (#5768)
Browse files Browse the repository at this point in the history
Fix instruction on how to compile in watch mode. `--` is needed to pass arguments to npm scripts
  • Loading branch information
dhritzkiv committed Mar 27, 2020
1 parent 685d76b commit b77f520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DEVELOPER.md
Expand Up @@ -153,7 +153,7 @@ describe.only('your describe test', ....)

The `npm test` script works by deleting built TypeScript code, rebuilding the codebase, and then running tests. This can take a long time.

Instead, for a quicker feedback cycle, you can run `npm run compile --watch` to make a fresh build and instruct TypeScript to watch for changes and only compile what code you've changed.
Instead, for a quicker feedback cycle, you can run `npm run compile -- --watch` to make a fresh build and instruct TypeScript to watch for changes and only compile what code you've changed.

Once TypeScript finishes compiling your changes, you can run `npm run test-fast` (instead of `test`), to trigger a test without causing a full recompile, which allows you to edit and check your changes much faster.

Expand Down

0 comments on commit b77f520

Please sign in to comment.