1.0.6 • Published 2 years ago
pryfile v1.0.6
pryfile.js
Installation
Dependencies
- Node.js (verify by running
node -v) - an SFDX project
Setup
Install pryfile with npm
npm i -g pryfileVerify install
pryfile -h
Due to a bug using prettier plugins as a dependency, you'll have to install it in your SFDX project for now.
Run this from inside your SFDX project directory!!
npm i @prettier/plugin-xmlUsage
pryfile is to be used from within an SFDX project directory. It's easiest to open a project in VS Code, then open the embedded terminal (ctr/cmd+j).
- Create an example configuration file
pryfile configThis will create a file named
.pryfilercin the root directory of your project. It will include all of the profiles found in the project, as well as example formatting.
- add fields to be added/overwritten to
.pryfilerc - list only the profiles you want modified
- run pryfile
pryfileOptions
pryfile format- formats the specified profiles without adding anything newpryfile format -a- format all profiles in the project