Files
vue-cli/packages/@vue/cli-ui/apollo-server/util/notification.js
T
Haoqun Jiang 0f377bd31d feat: upgrade to eslint 6 (#4933)
* feat: scaffold projects with eslint 6

* style: eslint fix

* refactor: do not use hard-coded ecmaVersion, use babel-eslint for now

* fix: upgrade to @vue/eslint-config-standard

* style: continue fix lint errors

* chore: upgrade to eslint-plugin-vue@^6.1.2

* refactor: use `ecmaVersion: 2020` for dynamic import syntax support

* test: fix baseESLintConfig

* chore: also update yarn.lock to fix CI caches

* chore: update lockfile again, fix babel regressions

* test: nightwatch tests should fail if lint errors occur

* chore: update the lockfile (again), fixing a bug in airbnb config
2020-01-14 10:13:54 +08:00

16 lines
360 B
JavaScript

const path = require('path')
const notifier = require('node-notifier')
const builtinIcons = {
done: path.resolve(__dirname, '../../src/assets/done.png'),
error: path.resolve(__dirname, '../../src/assets/error.png')
}
exports.notify = ({ title, message, icon }) => {
notifier.notify({
title,
message,
icon: builtinIcons[icon] || icon
})
}