Repository navigation
Manifests and Configurations
A priest.js Manifest is a JSON file that will provide configurations for the runtime and third-party modules.
When priest, the command line utility, loads a .priest.json file from the file system it will also look for a file called priest.manifest.json in the same directory.
node.js Modules specially designed to expose expressions to the priest.js Runtime can be specified in the manifest.
The following Example Manifest will tell the Runtime to load a third party module called superExpressions:
{
"modules": [
"superExpressions"
],
}
All the expressions exposed by the superExpressions module will be now available to be invoked from your program.
Environment are a set of configurations or requirements for each stage of the product, like "development", "staging", "production" and priest follows the standard node.js environment variable NODE_ENV to act accordingly. The default environment is "development".
Manifest can contain configurations for each environment as follows:
{
"modules": [
"expressionModule1",
"expressionModule2"
],
"environments": {
"production": {
"expressionModule1": {
"config1": "config value for expressionModule1",
"config2": 200
},
"expressionModule2": {
"config1": "value2",
"config2": 200
}
}
}
}
Thanks for Reading. Please take your time to read other tutorials.
- Johan(author) - johan@firebase.co
If you find any error in this tutorial(misspelling errors, syntax errors, etc) please send me an email with your corrections, I'll be more than happy to add you in this list.