So Gruntfile.js is in the public_html
directory correct?
I think the way you have it configured, you're telling the requirejs task to try to uglify and combine everything in the skritter-html5/
and it's choking on that, because its running through all javascript files in your project instead of just your RequireJS app code.. What you may want the appDir
option to point to is something like "js/myClientSideAppDir"
and then I would output it to "js/build"
Try looking over the comments in this file. https://github.com/jrburke/r.js/blob/master/build/example.build.js
They're the best description of r.js options that we've got.