Spirit Config
Summary
The Spirit Config middleware will look for and parse the spirit config if one was no passed in. The middleware looks for the config in the following order
- Programmatically through the Spirit Core Api.
- Through the SPIRIT_CONFIG environment variable
- At the root directories "_config.json" file
Example
in Directory structure
- "rootDir"
- "_config.json"
Programmatically
var config = src : 'src' dest: 'build' ; var SpiritCore = ;var spirit = './rootDir' config ;
Environment Variable
export SPIRIT_CONFIG="{ src : 'src', dest : 'build' }"
var SpiritCore = ;var spirit = './rootDir' ;
Config file
var SpiritCore = ; var spirit = "./rootDir" ;