-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
.sgdignore
and .sgdinclude
could be fetched automatically if they exist in the root of an sfdx project
#552
Comments
.sgdignore
and .sgdinclude
could be fetched automatically if they exist in the root of an sfdx project
Hi @AllanOricil ! Thanks for this enhancement request, very clear, and thanks for contributing in making this project better! We'll have a deep look soon and let you know our thought here |
Hi @AllanOricil, We have reviewed this feature request and we really like it. This feature request would require
Open question: should we also consider this for the
Let's see when we could work on it, I cannot think of earlier than end of april / begin of may |
Too many files to remember. What if you use the same approach used by Jest, and create a Examples of Jest properties that are related to path/dir patterns: |
Yes, I feel it would be too much file to handle as well. It means the UX will be :
The actual behavior of the cli is to fail if the ignore file parameter does not exist. We need to be consistent with that to be compatible with previous UX Then we should ask ourself what parameters we would like to handle in the config file.
Maybe more, I actually don't have strong opinion, this is something that could be driven by the community. I think the design will need an ADR then, pointing to this feature request for solution design tracking. I update my previous comment |
Is your proposal related to a problem?
All the major CLIs we use look for predefined file names. For instance, .gitignore for git, webpack.config for webpack, .eslitconfig and .eslintignore for eslint, .prettierignore for prettier, pom.xml for maven, .npmignore for npm and a lot more. Therefore I think sgd could do the same for
.sgdignore
(-i) and.sgdinclude
(-n).steps to reproduce:
mkdir output
.sgdignore
and add the following entry**/lwc/**
in itsfdx sgd:source:delta -f HEAD~
output/package/package.xml
output/package/package.xml
.sgdignore
file in the project.do the same steps for
.sgdinclude
to reach the same conclusion.proposal
When
-i
is omitted, sgd must look for an.sgdignore
file in the root of the project. When sgd can't find this file, it must not ignore anything.When
-n
is omitted, sgd must look for an.sgdinclude
file in the root of the project. When sgd can't find this file, it must not include anything.The text was updated successfully, but these errors were encountered: