Checks the system has required dependencies installed.
npm install reliant
Add a .reliantrc
file to your project's root. This tells Reliant what and how it should check for system requirements.
This should be valid JSON.
For example:
[
{
"name": "NPM",
"cmd": "npm --version",
"version": "3.0.0 - 4.0.x"
}, {
"name": "Node",
"cmd": "node --version",
"version": "^4.0.0"
}, {
"name": "Yarn",
"cmd": "yarn --version",
"version": "0.17.x"
}
]
Each object within the array should define the following:
name
- Human readable name of the package
cmd
- The command Reliant should run to obtain the version
version
- The version range required see semver examples
In your package.json add reliant
to the scripts
block.
Example:
...
"scripts": {
"test": "reliant"
}
...
With the above example, you should be able to run npm test
from your terminal.