siouan / frontend-gradle-plugin

All-in-one Gradle Node/NPM/PNPM/Yarn plugin to build, test, deploy Javascript applications using a Corepack-enabled package manager.
https://siouan.github.io/frontend-gradle-plugin/
Apache License 2.0
158 stars 23 forks source link

Allow to specify NODE_OPTIONS #220

Closed mgiorgino-iobeya closed 4 months ago

mgiorgino-iobeya commented 7 months ago

Hi,

Description

It would be nice if we could give options to the node process, like for example:

NODE_OPTIONS=--max_old_space_size=50

I didn't found a way to do it, but maybe there already is ?

Target environment

v1nc3n4 commented 4 months ago

Hi @mgiorgino-iobeya,

Thank you for using the plugin and your question. Apart from setting such environment variable in the system, which would be applicable to all processes, I don't see a way to do that for a Node.js-based task provided by the plugin for the moment. I understand it can be problematic on some platforms, like CI/CD.

Can you confirm this is the use case you are dealing with?

It should be possible to implement this feature in the next release 8.1.0 coming soon. If you have another use case in mind, feel free to share this one here so as I can be sure the designed feature will meet your expectations.

BR

mgiorgino-iobeya commented 4 months ago

Hi @v1nc3n4, sorry I didn't answered earlier, but it was indeed in the context of a CI/CD environment. I think what was implemented will meet our expectations.

Thank you very much !