-
-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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:
- create a brand new sfdx project and commit
- create a dummy lwc component and commit
- run
mkdir output - create a
.sgdignoreand add the following entry**/lwc/**in it - run
sfdx sgd:source:delta -f HEAD~ - verify the lwc is included in
output/package/package.xml - run sfdx sgd:source:delta -f HEAD~ -i .sgdignore`
- verify the lwc was excluded from
output/package/package.xml - confirm that sgd doesn't automatically look for a
.sgdignorefile 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.
mehdicherfscolladon
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request