An open API service indexing awesome lists of open source software.

https://github.com/gecko655/minimum-clasp3-typescript-starter

Minimal starter template for clasp v3 with TypeScript
https://github.com/gecko655/minimum-clasp3-typescript-starter

clasp gas google-apps-script typescript

Last synced: 5 months ago
JSON representation

Minimal starter template for clasp v3 with TypeScript

Awesome Lists containing this project

README

          

# minimum-clasp3-typescript-starter

A minimal TypeScript starter for Google Apps Script projects using clasp v3, which drops native support for TypeScript transpiling.

## Features
- Minimal Google Apps Script (GAS) repository setup for TypeScript with esbuild
- Just 6 dependencies: `@google/clasp`, `@biomejs/biome`, `@types/google-apps-script`, `esbuild`, `esbuild-gas-plugin`, and `typescript`
- No testing, no complicated build process, no project-specific formatting rules
- If you want to use more features, you can add them yourself

## Usage
1. Clone this repository
2. Run `yarn install`
3. Edit `.clasp.json` to set your script ID
4. Edit `src/index.ts` to write your code
5. (Optional) Edit `dist/appsscript.json` to change script timezone.
6. Authenticate with Google using `yarn clasp login`
- See [clasp official documentation](https://github.com/google/clasp?tab=readme-ov-file#authorization)
7. Run `yarn format` to foramt your code
8. Run `yarn deploy` to deploy your code