The examples of default settings:
- Default port for server applications
- Default resources directory for Java Applications
- Default Webpack config file ("webpack.config.js")
My particular case
I have a utility for web application projects building, based on gulp and webpack.
When a user did not specify some settings in config file of his project (similar to pom.xml, webpack.config.js, etc.) DefaultSettings will be substituted. The example of default settings for markup preprocessing:
{ indentationSpacesCountInOutputCode: 2, mustExecuteHTML5_Validation: true, mustExecuteCodeQualityInspection: true, mustExecuteAccessibilityInspection: true } Maybe I can call it "the business rules", but it including, for example, the paths which must not be watched for browser live reloading providing for specific framework:
{ laravelBasedProjectRelativePathsWhichWillBeWatched: { includedDirectoriesRelativePaths: [ "app", "bootstrap", "config", "database", "public", "resources", "routes", "storage", "tests" ] } } In Clean Architecture, the business rules must not know anything about frameworks.
And also, I need to put somewhere the default settings for specific utilities (e. g. Webpack).
The InternalSettings (I call them so because user can not override it) are currently restrictions of my library, for example, supported file names extensions:
export default { supportedSourceFileNameExtensionsWithoutDots: [ "mjs", "js", "ts" ], supportedOutputFileNameExtensionsWithoutDots: [ "js" ] }; I am not sure I can call it "business rules".
If default and internal settings are not the business rules, what are they?
