Skip to content

Notifying using Nodemon #7

@atulmy

Description

@atulmy

I'm trying to add node-notifier-cli in development build script, however as a script, it does not work:

package.json

{
  "scripts": {
    "notify": "notify -t \"Development\" -m \"Build complete.\""
  }
}

nodemon.json

Does not work

{
  "events": {
    "restart": "npm run build && npm run notify"
  }
}

Works

{
  "events": {
    "restart": "npm run build && osascript -e 'display notification \"app restarted\" with title \"nodemon\"'"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions