1.0.1 • Published 2 years ago
js-auto-configuration-for-rule-management v1.0.1
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