Nx: [Feature Request] Allow globs for file paths in implicitDependencies

Created on 13 Jul 2018  路  6Comments  路  Source: nrwl/nx

Currently, implicitDependencies only accepts fix paths to files (e.g. "styles/scss/main.scss": "*").

In addition, it would be useful to accept globs as file paths in order to define multiple files at once.

My use case:
I have a styles folder on root level, which is used in all projects. In the current version I have to define every single file of the styles folder in implicitDependencies.
It would be more convenient to have something like this: "styles/**/*.scss": "*"

core feature

Most helpful comment

I would love the proposed feature as well and also for single projects/apps.
In my use case I have a monorepo with an angular frontend and java backend.
Now I would like to run my e2e tests when something changed in the backend part of the app. This is currently not possible with the affected:e2e command.

So glob support or even folder support would be greatly appreciated.

All 6 comments

A feature was added to allow projects to specify another project as an implicit dependency.

This would allow you to create a styles lib which is implicitly depended upon by apps which use it. All files in the lib would affect the apps when changed.

Now there should be less files outside of projects which would require the need for a glob.

What do you think?

I would love the proposed feature as well and also for single projects/apps.
In my use case I have a monorepo with an angular frontend and java backend.
Now I would like to run my e2e tests when something changed in the backend part of the app. This is currently not possible with the affected:e2e command.

So glob support or even folder support would be greatly appreciated.

This issue was opened quite a while ago. Any decisions on this?

This would be a very useful feature.

I think this is still a valid feature request which could be quite useful

Hi, sorry about this.

This was mislabeled as stale. We are testing ways to mark _not reproducible_ issues as stale so that we can focus on actionable items but our initial experiment was too broad and unintentionally labeled this issue as stale.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joelmuskwe picture joelmuskwe  路  3Comments

Koslun picture Koslun  路  3Comments

IonFoXx picture IonFoXx  路  3Comments

jon301 picture jon301  路  3Comments

MichaelWarneke picture MichaelWarneke  路  3Comments