Hi James,
I think you should use Adapt Framework instead of Authoring Tool, you can export your course as resouce and extract course zip into a folder, then run npm install, then to do your template.