pryfile
v1.0.6
Published
[![NPM Version](http://img.shields.io/npm/v/pryfile)](https://www.npmjs.org/package/pryfile)
Downloads
3
Maintainers
Readme
pryfile.js
Installation
Dependencies
- Node.js (verify by running
node -v
) - an SFDX project
Setup
Install pryfile with npm
npm i -g pryfile
Verify 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-xml
Usage
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 config
This will create a file named
.pryfilerc
in 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
pryfile
Options
pryfile format
- formats the specified profiles without adding anything newpryfile format -a
- format all profiles in the project