This library adds support for Linux, Mac OS X and Windows alerts when ember-cli has a buildError and postBuild (When build is successful).
npm install --save-dev ember-cli-build-notifications
Config Options | Ember CLI Build Event | Default |
---|---|---|
buildError | buildError | True |
buildSuccess | postBuild | False |
To override defaults, add the following to the config file {app}/config/build-notifications.js
:
module.exports = {
buildError: {
notify: true,
notificationOptions: {
sound: true
}
},
buildSuccess: {
notify: true,
notificationOptions: {
sound: true
}
}
};
The notificationOptions
settings are passed directly into node-notifier, see their docs for a full list of available settings
- Mac OS X: >= 10.8 or Growl if earlier.
- Linux: notify-osd installed (Ubuntu should have this by default)
- Windows: >= 8, task bar balloon if earlier or Growl if that is installed.
- General Fallback: Growl
Powered by mikaelbr/node-notifier and its dependencies.
npm test
- Made possible by: ember-cli/ember-cli#2832
- Inspired by: https://github.com/dylang/grunt-notify
- Mocha setup from: https://github.com/rwjblue/ember-cli-divshot
MIT