-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
foxy does not split packages in dev and production packages #31
Comments
When you add Foxy in the Given that the dev dependencies of the JS library are Given that the dev dependencies of a JS library are present only for its development, the dev dependencies are never installed by NPM/Yarn, and Foxy keeps this behavior. On the other hand I understand your wait, and it would be interesting to add a new option to activate the possibility of injecting In this case, and regarding your example, you should use the |
Thank you for your quick reply.
Unfortunatly this is not possible for us as we want to install dev and no-dev dependencies with foxy.
I'm not completely sure if I understood you correctly. From our point of view it would be perfect if the deciding factor would be if the composer-package is added as dev or no dev. So As a cherry on top, it would be nice to have dependencies in the dev section of the package.json of the library always installed as dev dependency in the main package.json of the project but that would by far not be necessary for our use case. As an practical example you may use our composer library zooroyal/coding-standard found on github and packagist.org. Obviously we only want to install this lib in our project as dev dependency. When we do it that way it results in a package.json in our main project which contains the npm dependencies. So far so good. So executing:
Results in:
|
Hello, We identified the "AssetUtil.php" with the "formatPackage" function to be our point of entry. If you have any suggestions that could help us please let us know. |
Hello @rdss-hmorsi, thank you for your help, and in this case, I await your Pull Request :-). |
If you wish, it is possible to add this improvement for version |
Situation is the following:
package.json of library
composer.json of project
resulting package.json of project after installation with foxy
expected result in package.json
I'm not quite sure if I overlooked something in the documentation or if there is another way to get foxy to do what we like it to do. As it is right now we found no way to make foxy install dev dependencies as such. As they are absent when we do a
composer install --no-dev
we get npm errors.The text was updated successfully, but these errors were encountered: