Hi !
I'm working on adding a feature to
gradle-buster-plugin that needs information from buster-configuration.
Gradle has support for incremental tasks. I wish to add incremental support to my busterTest task.
For a gradle task to be incremental all one have to do is define which inputs (files and properites) the task has and what outputs (files) it produces.
The inputs on my my busterTest (wrapper around buster-test) task is basically the configuration file and all files/globs specified in the configuration file itself.
For now I've just done some naive parsing of the config file, but the flexibility of buster-configuration (which is great) also makes parsing it slightly complicated and more importantly not very future proof for changes. (Extensions, multiple config groups, each with potentially different rootPath, environment specified etc...)
If I had an api to help me resolve which files/globs to monitor given a config file (and optionally config group) that would be super.
Maybe something in the lines of:
$ buster-configuration --resolve -c config/buster.js or
$ buster-configuration --resolve -c config/buster.js -g "browser unittests"
which returns a json with a format along the lines of:
{
["rootPath": ".", "matches": ["test/*.js", "!test/*-integration-test.js"]],
["rootPath": "../", "matches": ["lib/*.js"]],
...
}
or maybe you have a better suggestion
cheers
Magnus