Closed simondotm closed 10 months ago
Added a simple serve executor to workaround the Nx issue with SIGINT (#40) so that CTRL+C when serving shuts down the Firebase Emulator properly.
serve
SIGINT
This executor spawns the watch target and emulate target commands directly, without using nx:run-commands (which is the cause of the issue)
watch
emulate
nx:run-commands
To use the executor, make the following change to your project.json for your firebase app:
project.json
@simondotm/nx-firebase:serve
The executor uses your existing project configuration to run watch and serve target commands.
Note: This executor is experimental and intended to be a temporary solution until Nx fixes the process exit issue.
Added a simple
serve
executor to workaround the Nx issue withSIGINT
(#40) so that CTRL+C when serving shuts down the Firebase Emulator properly.This executor spawns the
watch
target andemulate
target commands directly, without usingnx:run-commands
(which is the cause of the issue)To use the executor, make the following change to your
project.json
for your firebase app:nx:run-commands
to@simondotm/nx-firebase:serve
The executor uses your existing project configuration to run
watch
andserve
target commands.