nx icon indicating copy to clipboard operation
nx copied to clipboard

"All but project-x-y" in implicit dependencies

Open psteinroe opened this issue 3 years ago • 1 comments

Description

As far as the documentation tells me, we can define implicit dependencies either using * or listing the project names. It would be great if the syntax would support an exclude syntax, i.e.

"implicitDependencies": {
  "package.json": {
    "dependencies": "all-but-project-xy",
    "devDependencies": "*"
  },
},

Motivation

We have a few projects in our repository that are just docker files, hence no js code is written there. Using renovate to keep the dependencies up to date, we still run format, lint and test on these project, despite them not using any dependencies. Listing all other project explicitly is not feasible for us.

Suggested Implementation

Maybe support glob patterns?

Alternate Implementations

  • Listing all projects explicitly
  • Using jest test name pattern feature to exclude the respective tests when running the command.

psteinroe avatar Dec 21 '21 14:12 psteinroe

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] avatar Sep 21 '22 00:09 github-actions[bot]

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

github-actions[bot] avatar Mar 21 '23 18:03 github-actions[bot]