gradle-grunt-plugin
gradle-grunt-plugin copied to clipboard
Why need to install grunt?
Why should I need to install grunt, even if it is installed already globally?
The installGrunt
task installs a project-local grunt and used a locally installed node (if you want it to). This is to simplify the build by not require the user to install both node and grunt.
Is there an option to use the global grunt-cli? I think it makes sense to each project have a specific grunt installed but the grunt-cli would be better if I could use the global version
I have installed grunt and grunt-cli 87 times (in my local node_modules directory), and my GruntTask dependsOn installGrunt. Whenever I run the GruntTask via gradle, it insists that "Grunt-CLI not installed in node_modules". What am I missing?
====
buildscript { dependencies { classpath "com.moowork.gradle:gradle-node-plugin:1.2.0" } }
plugins { id "com.moowork.node" version "1.2.0" id "com.moowork.grunt" version "1.2.0" }
...
task updateRules(type: GruntTask, dependsOn: installGrunt) { args = ["update-rules-data"] }
task build(dependsOn: updateRules)
=============
misc/docs (default:tip+) [1] % gradle build using default :nodeSetup UP-TO-DATE :npmSetup SKIPPED :installGrunt UP-TO-DATE :updateRules FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':updateRules'.
Grunt-CLI not installed in node_modules, please first run 'gradle installGrunt'
====
WTF?