A TypeScript template for Google Apps Script. Write your functions in TypeScript, export them from src/index.ts, and they'll be available to call in Google Apps Script.
- Create a new Google Apps Script project or use an existing one
- Get your script ID from the Apps Script editor (Project Settings)
- Clone/copy this template
- Update
.clasp.jsonwith your script ID:{ "scriptId": "YOUR_SCRIPT_ID_HERE" } - Install dependencies:
pnpm install
- Start developing in
src/index.ts
pnpm run dev- Watch modepnpm run build- Build for productionpnpm run push- Build and deploy to Google Apps Script