Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 891 Bytes

README.md

File metadata and controls

44 lines (27 loc) · 891 Bytes

AddOn_With_NPM

Demonstrates using NPM + clasp to build Apps Script projects in a modular way.

Ideally, MasterAddOn and LibraryOne would be different repositories.

Prerequisites

You'll need a working Clasp installation: https://github.com/google/clasp

After installing clasp, go to the MasterAddOn directory in this repository.

Initialize a new Google Apps Script project:

clasp create MasterAddOn

Install dependencies (LibraryOne) with NPM:

npm install

Push the project to script.google.com:

clasp push

Open the project:

clasp open

You can verify the LibraryOne code is useable by running the script as an add-on, or by running the onOpen function from the script editor.

Authors

License

This project is licensed under the MIT License.