Skip to content

Commit

Permalink
Merge pull request open-lms-open-source#51 from timhunt/master
Browse files Browse the repository at this point in the history
Don't install grunt globally. Instead run it with npx
  • Loading branch information
stronk7 authored Nov 27, 2020
2 parents f9b4e1b + a03897b commit 6e31f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Installer/VendorInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function install()
if ($this->plugin->hasUnitTests() || $this->plugin->hasBehatFeatures()) {
$processes[] = new Process('composer install --no-interaction --prefer-dist', $this->moodle->directory, null, null, null);
}
$processes[] = new Process('npm install -g --no-progress grunt', null, null, null, null);
$processes[] = new Process('npm install --no-progress grunt', null, null, null, null);

$this->execute->mustRunAll($processes);

Expand All @@ -87,7 +87,7 @@ public function install()
$this->execute->mustRun(new Process('npm install --no-progress', $this->plugin->directory, null, null, null));
}

$this->execute->mustRun(new Process('grunt ignorefiles', $this->moodle->directory, null, null, null));
$this->execute->mustRun(new Process('npx grunt ignorefiles', $this->moodle->directory, null, null, null));
}

public function stepCount()
Expand Down

0 comments on commit 6e31f87

Please sign in to comment.