Integrating jQuery plugins with Aurelia

Hi,

I got this to work by adding notifyjs-browser using npm, then adding this to the aurelia.json:

          {
            "name": "notifyjs-browser",
            "path": "../node_modules/notifyjs-browser/dist",
            "main": "notify",
            "deps": [
              "jquery"
            ]
          },

Then I had to import from notifyjs-browser where I wanted to use it like this:

import { } from 'notifyjs-browser';

export class App {
 
 notifyButtonClicked() {
    $.notify('This is a notification!');
  }

}

I’m sure there is probably a better/neater way, but it worked for me. Hope it helps.