Adding npm dependencies to foreman plugins (katello)

Hey everyone!

We're ready to begin adding React pages to Katello. One of the challenges
we face is adding the dependencies listed in Katello's package.json into
the Foreman webpack build. We're experimenting with having Webpack look for
a package.json in the registered plugins or possibly copying the
node_modules folder from the plugin to be made available during the build.

I'd love to hear some feedback or ideas on how to make this happen. Thanks!

Hi,
I have put together [1], which could be a way.

O.

[1] https://github.com/theforeman/foreman/pull/4888

··· On Tue, Oct 10, 2017 at 5:09 PM, wrote:

Hey everyone!

We’re ready to begin adding React pages to Katello. One of the challenges
we face is adding the dependencies listed in Katello’s package.json into
the Foreman webpack build. We’re experimenting with having Webpack look for
a package.json in the registered plugins or possibly copying the
node_modules folder from the plugin to be made available during the build.

I’d love to hear some feedback or ideas on how to make this happen. Thanks!


You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.