fxpio / foxy

A fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer
https://foxypkg.com
MIT License
173 stars 21 forks source link

Support for Usage, confused on documentation #39

Closed umer936 closed 3 years ago

umer936 commented 3 years ago

Hi,

PHP: 7.4.14
CakePHP 4.2.7
Composer 2.1.3
OS: Windows 10

I was able to follow the instructions for installation correctly. I now have a /node_modules folder in my project root. I'm confused on what to do next.

CakePHP expects JS dependencies in /webroot/js. (/webroot is public) I'm familiar with nodejs method of including modules by import { X } from '@x/y'

Those are not going to look in the same place. What method should I use to make these accessible? Moving node_modules into the public scope seems incorrect.

Isn't there also an npm deploy or npm run method that is meant to be run? I'm not very familiar with nodejs/npm.

Thank you!

(I did search around for quite a while, but nothing I could find seemed like a "right" way to do it)