After playing a bit with Salesforce DX, pushing and pulling stuff, I decided to try out the .forceignore
file, but I can't seem to make it work.
At the moment I have the following structure:
and my .forceignore
file contains the following lines:
force-app/main/default/apex-module1/TestingForceIgnore.cls
force-app/main/default/apex-module1/TestingForceIgnore.cls-meta.xml
Nonetheless, everytime I modify the files and I push the source, they get pushed. To a point, I thought about deleting them from the scratch org and re-creating them, but still.
Have I written the paths correctly? Or am I missing something here?
.forceignore
file is located atforce-app/.forceignore
, it looks like?Add the file to the Metadata retrieve directory (with package.xml) for force:mdapi:convert.
. I haven't done this nor I know what it means. Could this be the issue?force:mdapi:convert
is to use an older Force.com IDE project to convert it to the newer folder design that DX uses. This doesn't apply to you if you're not usingforce:mdapi:convert
.. forceignore
.