Programmatic control #23312
givenergy-dexter
started this conversation in
Feature Requests
Replies: 1 comment
-
I've converted this to a discussion so it can be discussed more. The example of running generators programmatically is actually better done by composing generators. Are there other use cases which you want a programmatic API for? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
As described in #4341 it would be great to be able to programmatically control NX. Obviously the source code for the functions much exist somewhere – it may be the case they just need exposing.
Motivation
We're looking to create a
yargs
CLI wrapper around our monorepo. We're currently looking at having to use Node'sspawn
functionality to triggernx
commands programmatically during a wrapped command.Suggested Implementation
It would be great to expose each function when installing and attempting to import
nx
through a Node file, for example:Alternate Implementations
Rather than having arguments for each underlying option it may be worth providing an object which can be automatically generated and mapped if needed
Beta Was this translation helpful? Give feedback.
All reactions