gradle-grunt-plugin icon indicating copy to clipboard operation
gradle-grunt-plugin copied to clipboard

Why need to install grunt?

Open brunano21 opened this issue 9 years ago • 3 comments

Why should I need to install grunt, even if it is installed already globally?

brunano21 avatar May 12 '15 15:05 brunano21

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.

srs avatar May 19 '15 19:05 srs

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

diegogoncalves avatar May 20 '15 14:05 diegogoncalves

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?

tomkalafut avatar Dec 12 '18 17:12 tomkalafut