mojito-config-expansion
v0.0.5
Published
Config expansion plugin for Mojito's Resource Store
Downloads
5
Readme
Mojito Config Expansion plugin
Build Status
Usage
This package contains a Mojito resource store add-on that allows you to write the following in your configuration files:
{
"specs > frame > config > child > config > section > article > config > truncation_length": 180
}
Instead of:
{
"specs": {
"frame": {
"config": {
"child": {
"config": {
"section": {
"article": {
"config": {
"truncation_length": 180
}
}
}
}
}
}
}
}
}
Note: the above is a real life example that clearly demonstrates how maintaining configuration can become painful in a complex Mojito application.
To use this resource store add-on, simply require the mojito-config-expansion
npm package in your application.