Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to ignore project files during affected commands #895

Closed
kotva006 opened this issue Nov 9, 2018 · 6 comments
Closed

Ability to ignore project files during affected commands #895

kotva006 opened this issue Nov 9, 2018 · 6 comments

Comments

@kotva006
Copy link

kotva006 commented Nov 9, 2018

It would be great to have something like an .nxignore or an addition to nx.json to specify project files that should not trigger affected test and build.  We have a couple different files that would be useful to ignore.  One example is app specific documentation.  We want to be able to update these files in our monorepo without triggering full apps to be built and tested.

For example a section in nx.json would allow:
“ignore”: [
  “apps/**/README.md”
]

We could move these files out of project roots, but logically many of them make sense to be managed where they are.

If there is already a way to handle this and I’m missing it, let me know.

@kkoo95
Copy link
Contributor

kkoo95 commented Feb 28, 2019

yes it would be helpful with git submodules for examples to ignore complete projects if not checked out yet

@kkoo95
Copy link
Contributor

kkoo95 commented Feb 28, 2019

OK! #234 found it here

@mac2000
Copy link

mac2000 commented Jul 5, 2019

Did not get into it how should I exclude bitbucket-pipeline.yml for example? Seems like --exclude option is for project rather than file

@vsavkin vsavkin added this to the next milestone Jul 8, 2019
vsavkin pushed a commit that referenced this issue Aug 29, 2019
Add ability to ignore files from the affected check using .nxignore files

Implement #895
@hoang-innomize
Copy link

I tried with a .nxignore file but it seems not working, the file has a single line

tslint.json

@vsavkin vsavkin removed the priority label Dec 4, 2019
@vsavkin
Copy link
Member

vsavkin commented Dec 4, 2019

tslint.json is a non-project file and they are handled in a special way. You need to remove from implicitDependencies in nx.json`.

I'm going to close this issue.

Thank you!

@vsavkin vsavkin closed this as completed Dec 4, 2019
@github-actions
Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants