Skip to content

Developer: Running grunt tasks

Jonathan Champ edited this page Jul 21, 2023 · 2 revisions

So you added, modified or removed some JavaScript and now the automated checks are failing? Here's how to run the necessary grunt tasks:

  1. If you haven't yet, download the version of Moodle you want to build against.
  2. If you haven't yet, add the plugin to the appropriate directory in Moodle, such as mod/zoom.
  3. Make sure you are using the correct version of Node.js by running nvm use.
  4. Make sure you are using the current version of the node modules by running npm install.
  5. Rebuild the JavaScript files using npx grunt amd --max-lint-warnings=0.
Clone this wiki locally