How to install javascript library in Rider ie. sweetalert

Hi this is the first time I use Rider.

How can I install a javascript library in Rider, for example using sweetalert (https://github.com/t4t5/sweetalert)
Using Visual Studio we can right-click the Project > Add > Client Side Library, but I can't see the equivalent in Rider.

Thank you 

0
3 comments

Hello Andrew,

You can run install command in Terminal 

npm install --save sweetalert
0

Thank you Olga.

I use the command and it creates new folder "node_modules" where it contains folders for es6-object-assign, promise-polyfill, and sweetalert.

Are those folder necessary? I probably only need the: node_modules/sweetalert/dist/sweetalert.min.js for my project. 

Thank you

0

Installation is managed by npm install, so you can check the details here.

0

Please sign in to leave a comment.