ember-css-modules-reporter
v1.2.0
Published
An ember-css-modules plugin that logs and generates lint tests for PostCSS plugin warnings and errors
Downloads
157
Maintainers
Readme
ember-css-modules-reporter
This ember-css-modules plugin adds a reporter to the PostCSS build pipeline. This reporter will log any warnings or errors that are produced whenever a file is built or rebuilt, and it will also generate lint tests to ensure in CI that you don't have any stray warnings.
Usage
This plugin is valuable when paired with another like ember-css-modules-stylelint. Together, they can provide a developer experience similar to that of e.g. ember-cli-eslint, providing warnings on rebuild and generating lint tests to flag failures.
Configuration
If you wish, you can disable the logging and/or the lint tests by passing a reporter
hash with appropriate flags in your cssModules
configuration.
// ember-cli-build.js
new EmberApp(defaults, {
cssModules: {
reporter: {
logMessages: false, // defaults to true
generateTests: false // defaults to true
}
}
});