NativeScript / nx

NativeScript for Nx.
Other
61 stars 15 forks source link

Compatibility with `nx affected` for test / build executors #32

Open AgentEnder opened 3 years ago

AgentEnder commented 3 years ago

Current behavior

The current setup fails when running the following:

Expected Behavior

The above succeed.

Notes

This is partially due to the setup of ios / android targets that pull config from the actual build target, which does not work on its own. This target should be made to work (possibly by invoking a webpack-only build), and then the ios / android targets could invoke it.

If the ios / android targets could consume a webpack-only build, then their executor could use targetDependencies to require the regular build target be hit first, and not have to do a separate webpack build for android and ios.

NathanWalker commented 2 years ago

Noting here to also include a generator to add the {N} unit test runner with proper test target which would also work with affected.