• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Support Development  • Practical CodeIgniter 3  • Vulcan - CLI Tools for CI4
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.