js-auto-configuration-for-rule-management
v1.0.1
Published
the purpose is to have a way to write [Rules](https://github.com/Megamanjoker/js-rule-management/blob/main/src/rule.js) to add to a [Rule Manager](https://github.com/Megamanjoker/js-rule-management/blob/main/src/rule-manager.js)
Readme
js-auto-configuration-for-rule-management
What is the purpose of this project?
the purpose is to have a way to write Rules to add to a Rule Manager
How do I use this project?
- Create a rule.config.json at the root directory
- Add a json with a rulePaths property
- This can be a String or Array of Strings
- The string must be formatted like Glob
- Example - "**/rules"
- The string will have "../" prefixed to the path for the require()
- The string will have "/*.js" suffixed to the path for the require()
- create a new AutoConfiguration
- run the AutoConfiguration.generateRuleManager to get a Rule Manager
