Not sure how to add new javascript libraries to main.js

Hello - strugling a bit with sage after being so used to roots. How can I add a javascript file to be included in the final javascript files?

ie i ran npm install --save-dev google-maps
it added “google-maps”: “^2.1.1” to packacges.json and downloaded node_modules/google-maps/ but its not included in the final file scripts/main.js.

I’ve added the required maps functions from http://www.advancedcustomfields.com/resources/google-map/ to main.js in ‘common’ and finalise but its obviously flagging an error ‘Can’t find variable: google’.

Any help appreciated.

This is covered in the asset-builder documentation as well as the new screencast