Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLI] Allow additional customization file types #35

Open
peterjuras opened this issue Sep 8, 2020 · 0 comments
Open

[CLI] Allow additional customization file types #35

peterjuras opened this issue Sep 8, 2020 · 0 comments
Labels
cli Issues regarding the coat cli enhancement New feature or request

Comments

@peterjuras
Copy link
Member

Summary

coat currently allows to customize a generated file by placing a file.ext-custom.js file next to the generated file that exports a function or content that is merged into the generated file.

It should be possible to have different customization file types based on the file type to make customization easier. For example, JSON files could allow for file.json-custom.json customization files that contain valid json that is merged into the output file. This would make it easier to quickly add or modify an existing property.

An example for json files:
.eslintrc

{
  "rules": {
    "no-param-reassign": "on"
  }
}

Current customization file:
.eslintrc-custom.js

module.exports = {
  "rules": {
    "no-param-reassign": "off"
  }
};

Proposed additional customization file possibility:
.eslintrc-custom.json

{
  "rules": {
    "no-param-reassign": "off"
  }
}
@peterjuras peterjuras added enhancement New feature or request cli Issues regarding the coat cli labels Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Issues regarding the coat cli enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant