Skip to content

Plugin for NX dep-graph Vue file patching #15

@ghost

Description

Implement dep-graph patching for Vue files with a plugin: https://nx.dev/recipes/advanced-plugins/project-graph-plugins

Before implementing double check that recent versions of Nx don't already include dep-graph support for Vue files.

Original issue description:

Currently, NX dep-graph should be working via the hack from @nx-plus/vue: https://github.com/ZachJW34/nx-plus/tree/master/libs/vue#nx-dependency-graph-support

There are more robust ways to do this than a postinstall script:

  1. Annoy NX about supporting configurable file paths (this will be nice for some of our other projects as well)
  2. Fork NX and implement the fix ourselves (and hope they accept the patch upstream)
  3. Add the postinstall script automatically every time a target runs (not 100% sure this is possible)
  4. Update the postinstall script to apply a real patch (doesn't really solve anything, but might be easier to detect when NX does something that breaks the hack).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions