srs / gradle-node-plugin

Gradle plugin for integrating NodeJS in your build. :rocket:
Apache License 2.0
866 stars 211 forks source link

Please implement nodeDownloadRoot and npmDownloadRoot properties #284

Open eximius313 opened 6 years ago

eximius313 commented 6 years ago

I'm migrating project from Maven to Gradle. I found out, that your plugin is great replacement for frontend-maven-plugin. There is only one thing that I'm missing. frontend-maven-plugin allowed to declare configuration like this:

<configuration>
   <nodeVersion>v8.9.1</nodeVersion>
   <npmVersion>5.5.1</npmVersion
   <nodeDownloadRoot>https://nodejs.org/dist/</nodeDownloadRoot>
   <npmDownloadRoot>http://registry.npmjs.org/npm/-/</npmDownloadRoot>
</configuration>

while nodeVersion and npmVersion can be migrated like this:

node {
  version = '8.9.1'
  npmVersion = '5.5.1'
}

I didn't found possibility to configure the nodeDownloadRoot and npmDownloadRoot. Could you please add it?