Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fork-ts-checker-notifier-webpack-plugin

johnnyreilly221.9kMIT9.0.0TypeScript support: included

a notifier for users of fork-ts-checker-webpack-plugin

webpack, fork-ts-checker-webpack-plugin, ts-loader, notifier

readme

fork-ts-checker-notifier-webpack-plugin

npm Version build node version

This is a webpack plugin that uses the node-notifier package to display build status system notifications to the user. It's purpose is to work with the fork-ts-checker-webpack-plugin. This deliberately has a similar API as the excellent webpack-notifier plugin. If you are not using fork-ts-checker-webpack-plugin and you want system notifications then you probably want webpack-notifier.

The plugin will notify you about the first run (success/fail), all failed runs and the first successful run after recovering from a build failure. In other words: it will stay silent if everything is fine with your build.

Installation

This plugin requires minimum fork-ts-checker-webpack-plugin@6, webpack 4, see fork-ts-checker-webpack-plugin for minimum requirements.

Use yarn to install packages:

yarn add --dev fork-ts-checker-webpack-plugin fork-ts-checker-notifier-webpack-plugin

Alternatively, use npm:

npm install --save-dev fork-ts-checker-webpack-plugin fork-ts-checker-notifier-webpack-plugin

Usage

In the webpack.config.js file:

var ForkTsCheckerNotifierWebpackPlugin = require('fork-ts-checker-notifier-webpack-plugin');
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

var config = module.exports = {
  /**
   * Plugin order is important.
   * A wrong order will cause some hooks to be undefined
   * and the build to fail
   */
  plugins: [
    new ForkTsCheckerWebpackPlugin(),
    new ForkTsCheckerNotifierWebpackPlugin({ excludeWarnings: true }),
  ]
},

Configuration

Title

Title prefix shown in the notifications.

new ForkTsCheckerNotifierWebpackPlugin({ title: 'Webpack' });

Exclude Warnings

If set to true, warnings will not cause a notification.

new ForkTsCheckerNotifierWebpackPlugin({ excludeWarnings: true });

Always Notify

Trigger a notification every time. Call it "noisy-mode".

new ForkTsCheckerNotifierWebpackPlugin({ alwaysNotify: true });

Skip Notification on the First Build

Do not notify on the first build. This allows you to receive notifications on subsequent incremental builds without being notified on the initial build.

new ForkTsCheckerNotifierWebpackPlugin({ skipFirstNotification: true });

Skip Notification for successfull builds

Skip notifications for successful builds.

new ForkTsCheckerNotifierWebpackPlugin({ skipSuccessful: true });

changelog

Changelog

v8.0.0

BREAKING CHANGES

This drops support for fork-ts-checker-webpack-plugin versions < 9 and node versions < 16 - if you need to use v8 then please use https://www.npmjs.com/package/fork-ts-checker-notifier-webpack-plugin/v/7.0.0

v7.0.0

BREAKING CHANGES

This drops support for fork-ts-checker-webpack-plugin versions < 8 and node versions < 14 - if you need to use v7 then please use https://www.npmjs.com/package/fork-ts-checker-notifier-webpack-plugin/v/6.0.0

v6.0.0

BREAKING CHANGES

This drops support for fork-ts-checker-webpack-plugin versions < 7 - if you need to use v6 then please use https://www.npmjs.com/package/fork-ts-checker-notifier-webpack-plugin/v/5.0.0

v5.0.0

BREAKING CHANGES

This drops support for node-notifier versions < 8.

v4.0.0

BREAKING CHANGES

This drops support for fork-ts-checker-webpack-plugin versions < 6 - if you need to use one of those versions then please use https://www.npmjs.com/package/fork-ts-checker-notifier-webpack-plugin/v/3.0.0

v3.0.0

BREAKING CHANGES

This drops support for fork-ts-checker-webpack-plugin versions < 5 and node version < 10 - if you need to use one of those versions then please use https://www.npmjs.com/package/fork-ts-checker-notifier-webpack-plugin/v/2.0.0

v2.0.0

BREAKING CHANGES

This drops support for fork-ts-checker-webpack-plugin versions < 4 - if you need to use one of those versions then please use https://www.npmjs.com/package/fork-ts-checker-notifier-webpack-plugin/v/1.0.3

v1.0.3

v1.0.2

v1.0.1

v1.0.0

  • 1.0.0 - thanks @johnnyreilly!

v1.0.0-alpha.0

v0.7.0

v0.6.2

v0.6.1

  • Updated README and added try/catch for forkTsCheckerReceive - thanks @Rolandisimo!

v0.6.0

v0.5.0

v0.4.0

  • Added webpack 4 support - thanks @johnnyreilly!

v0.2.0

  • Added option to skip successful build notifications - thanks @Igogrek!

v0.1.4

  • Handle lints as well as diagnostics

v0.1.3

  • Initial version