You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* added error handling for execSync
* now get hooks from config, abstracted into own file, with typings added
* CLI only
* removing an unintended import in types.d.ts
* add new flags to cli/help.md
* added some docs
* update docs
* added a cli test for watch-event-hooks
* scaffold test, need to figure out how to actually write it now
* need guidance
* tests passing now with change for child.stdout -> process.stderr
* fixed test abortOnStderr
Co-authored-by: Harris Miller <[email protected]>
Copy file name to clipboardExpand all lines: docs/01-command-line-reference.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -379,6 +379,11 @@ Many options have command line equivalents. In those cases, any arguments passed
379
379
--watch.skipWrite Do not write files to disk when watching
380
380
--watch.exclude <files> Exclude files from being watched
381
381
--watch.include <files> Limit watching to specified files
382
+
--watch.onStart <cmd> Shell command to run on `"START"` event
383
+
--watch.onBundleStart <cmd> Shell command to run on `"BUNDLE_START"` event
384
+
--watch.onBundleEnd <cmd> Shell command to run on `"BUNDLE_END"` event
385
+
--watch.onEnd <cmd> Shell command to run on `"END"` event
386
+
--watch.onError <cmd> Shell command to run on `"ERROR"` event
382
387
--validate Validate output
383
388
```
384
389
@@ -496,6 +501,14 @@ Specify a virtual file extension when reading content from stdin. By default, Ro
496
501
497
502
Do not read files from `stdin`. Setting this flag will prevent piping content to Rollup and make sure Rollup interprets `-` and `-.[ext]` as a regular file names instead of interpreting these as the name of `stdin`. See also [Reading a file from stdin](guide/en/#reading-a-file-from-stdin).
0 commit comments