Improve implicitDependencies to allow tasks and/or tags to create project linkages
#34624
kschaefe
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Using the NX guide for a one-ring Storybook solution, there is a section at the bottom about
implicitDependencies. Nx is unable to reason about the Storybook connections. This requires manual intervention for each library we add to our monorepo by updatingimplicitDependencies.Proposed Solutions
I see 3 possible solutions for this:
build-storybook. The implicit dependency resolution can use the task graph to populate that will the real set of implicit dependencies. This may require an additional property, likeimplicitTaskDependencies, or a prefix, liketask:build-storybook, to be able to differentiate tasks from project names.implicitDependencies. This may also require an additional property or a prefix.add-storybookto add an implicit dependency to another project. If that master Storybook project is a property foradd-storybook, the default value can be set innx.json, allowing users to automatically add implicit dependencies without realizing that they even need to. This solution is targeted at the specific problem that brings this issue to the forefront, but lacks any kind of wide use.IMO, solution 1 requires the least end-user intervention for cases like this.
Related Discussions/Issues:
Beta Was this translation helpful? Give feedback.
All reactions