Skip to content

zerobase/gas-repl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gas-repl - Remote REPL for Google Apps Script (npm)

Interacting with remote objects gets your programming easier.

Image from Gyazo

Installation

npm install --save-dev gas-repl

Prerequisite

Your GAS project should be set up for clasp run. Follow the instruction below:

  1. Find Project ID from https://console.cloud.google.com/home/dashboard and Script ID from https://script.google.com/home/my, then paste it into .clasp.json.
  2. Open https://console.developers.google.com/apis/credentials, create an OAuth Client ID (Other), then download as .claspcreds.json.
  3. clasp login --creds .claspcreds.json.
  4. Put the global function of gas-repl -p to your project.
  5. Build your project and clasp push.
  6. clasp run GAS_REPL will return Hello from Apps Script ID: ****** if it is working right.

Now you can use gas-repl to interact with remote objects.

Troubleshooting

If you have Exception: ScriptError Authorization is required to perform that action. [], try clasp login.