1.2.0 • Published 6 years ago

ember-css-modules-reporter v1.2.0

Weekly downloads
166
License
MIT
Repository
github
Last release
6 years ago

ember-css-modules-reporter Build Status

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
    }
  }
});