sfdx-js-fake
v4.1.1 sfdx node wrapper salesforce dx
SFDX javascript wrapper.
A typescript compatible javascript wrapper for Salesforce DX cli.
Usage
const sfdx = require('sfdx-js').Client.createUsingPath('sfdx')
sfdx.auth.webLogin().then(function() {
console.log('done!');
})
Documentation
Read our doc here: https://coveo.github.io/sfdx-js/
dev scripts
npm t
: Run test suitenpm start
: Runsnpm run build
in watch modenpm run test:watch
: Run test suite in interactive watch modenpm run test:prod
: Run linting and generate coveragenpm run build
: Generage bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)npm run generate
: Generate wrapper classes using the SFDX executable in path.
Git Hooks
There is already set a precommit
hook for formatting your code with Prettier :nail_care:
By default, there are 2 disabled git hooks. They're set up when you run the npm run semantic-release-prepare
script. They make sure:
- You follow a conventional commit message
- Your build is not gonna fail in Travis (or your CI server), since it's runned locally before
git push
This makes more sense in combination with automatic releases
Credits
Made with :heart:
npm i sfdx-js-fake
Metadata
- MIT
- >=6.0.0
- Marc-Antoine Veilleux
- released 8/23/2018