Welcome Guest, Not a member yet? Register   Sign In
Please help choose a folder for npm packages !
#1

Hello CI4 Team !

I want to use npm packages for javascript, such as WebSocket, canvas and others, which folder is best to deploy ?
1) ThirdParty
2) Libraries
or 
3) Public/path/to/app

PS: I use CI version 4*.
Reply
#2

If these are for JS libraries for client-side stuff, then I would think they would go in public/...
Reply
#3

(05-31-2019, 06:31 AM)Digital_Wolf Wrote: Hello CI4 Team !

I want to use npm packages for javascript, such as WebSocket, canvas and others, which folder is best to deploy ?
1) ThirdParty
2) Libraries
or 
3) Public/path/to/app

PS: I use CI version 4*.

If the packages are JavaScript then put them in the same folder where you have other non-npm scripts, i.e. JQuery.
Reply
#4

Make a new folder at project root and call it good? I'm assuming you'll have a build script that compiles the packages into public/js or whatever.
Reply
#5

I don’t need the files to be publicly accessed because there will not be JQuiry and similar scripts, only the websocket server that will give the information to the script in the public directory.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB