Skip to content

An ember-css-modules plugin that logs and generates lint tests for PostCSS plugin warnings and errors

License

Notifications You must be signed in to change notification settings

dfreeman/ember-css-modules-reporter

Repository files navigation

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

About

An ember-css-modules plugin that logs and generates lint tests for PostCSS plugin warnings and errors

Resources

License

Stars

Watchers

Forks

Packages

No packages published