mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-20 14:19:59 -06:00
16 lines
364 B
JavaScript
16 lines
364 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
|
|
})
|
|
}
|