Create a custom target to run any command.
Usagenx generate run-commands ...
By default, Nx will search for run-commands
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nx/workspace:run-commands ...
Show what will be generated without writing to disk:
nx g run-commands ... --dry-run
Add the printhello
target to my-feature-lib
:
nx g @nx/workspace:run-commands printhello --project my-feature-lib --command 'echo hello'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4