I've been trying to figure out how to create a Javascript Module and add it to a theme, so I copied the example from the Moodle document Javascript Modules but I must have missed out something vital...as it aint working!
Where the example used 'block_overview/helloworld' I used 'theme_graphite/helloworld'.
I added the call in my layout file for the frontpage...
<?php $PAGE->requires->js_call_amd($modulename, $functionname, $params); ?>
Here is the ERROR message I'm getting...
C:\wamp\www\moodle29\theme\graphite\amd>grunt
Loading "Gruntfile.js" tasks...ERROR
>> TypeError: Arguments to path.resolve must be strings
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
Cheers
Mary