Read configuration from project directory
See original GitHub issueFirst introduce my use case:
My team develops a system in micro-service architecture which have several node.js projects. I’m trying to use mrm to unify configuration of all projects. I have defined a bunch of tasks according to our design guidelines. But not all configurations are common to all projects. Some configurations have to be set per-project. And also, some tasks should only be applied on part of projects.
I think if mrm would resolve configuration from .mrm
file under project root directory, in which not only contains config items specific to current project but also defines which tasks from which preset should be applied, then I can run mrm
without any argument inside each project to update its configuration according to latest version of preset/tasks published in our private npm registry.
It would be helpful for a big team to manage projects to keep them up-to-date with team’s project template/configuration.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top GitHub Comments
Would be nice if you could try to implement it. Maybe we could use cosmiconfig for that.
Yes,
config
option works. But it looks not the best way to me for reasons:mrm
with a long list of arguments. Whenever a config needs to be updated, the script will be modified. Embedding config in a script is not good for maintainence.mrm
. But it adds complexity. It’d be ideal to handle inside mrm.Would you consider to support merge config from files? If yes maybe I can contribute a PR.