gradle-node-plugin
gradle-node-plugin copied to clipboard
Rename NodeExtension.nodeModulesDir to workDir
Rename NodeExtension.nodeModulesDir to workDir. This makes it consistent with other tasks which call the same concept a "working directory".
I really second this one. Naively setting nodeModulesDir to 'build/node_modules' doesn't do the job; why became apparent after digging through the sources.
I would however grasped 'workingDir' instantly, and also the fact that 'package.json' is required to be there in order for npmInstall to actually download the modules.