Setting up your local development environment for writing Google Apps Script projects using Typescript
Google Apps Script (GAS) is a superset of ES5, but does NOT include any ES6 features. Also, the browser-based GAS editor is not the best. To make GAS development less miserable, develop locally (i.e. not in the browser) using TypeScript instead!
Google's clasp
tool will transpile your code from Typescript to GAS and upload to your GAS project where you can run it.
- Intall stuff!
- TypeScript:
npm install -g typescript