ember-css-modules-reporter

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i ember-css-modules-reporter

Weekly Downloads

16

Version

1.2.0

License

MIT

Last publish

Collaborators

  • dfreeman