brucemcpherson / desktopliberation

hosting for desktop liberation google plus community
30 stars 1 forks source link

Pulling in Apps Script libraries – how is it done ? #124

Open brucemcpherson opened 2 years ago

brucemcpherson commented 2 years ago

This is a follow on from the article on Pull libraries inline to your Apps Script project (which you should probably read fiest) to explain a little about how it works.

It uses the Script API to get and update Apps Script project content, but the key to making it work is to be able to detect which variables and functions are exposed in the global space of the library being pulled in. They can be similarly exposed in the refactored version pulled into the main project.

https://ramblings.mcpher.com/apps-script/add-ons/inline-libraries/how/