Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dustinmichels/clasp-template

Starter structure for Google Apps Script clasp project
https://github.com/dustinmichels/clasp-template

clasp google google-apps-script javascript typescript

Last synced: about 2 months ago
JSON representation

Starter structure for Google Apps Script clasp project

Awesome Lists containing this project

README

        

# Clasp Starter Template

Starter template for [Google Apps Script](https://developers.google.com/apps-script/) projects using [clasp](https://github.com/google/clasp).

Includes some helper functions for potential tasks.

## Setup

### 1) Clone Repo

### 2) Init new project

```sh
# reset Git project
rm -rf .git
git init

# reset package.json
rm package.json package-lock.json
npm init -y
```

### 3) Install packages

```sh
# Make sure clasp & typescript are installed globally
npm install -g typescript
npm install -g @google/clasp

# install GAS types locally
npm i -S @types/google-apps-script
```

For linting:

```sh
npm i --save-dev prettier @trivago/prettier-plugin-sort-imports
```

### 4) Setup Clasp

- `clasp login`
- Update `scriptId` in `.clasp.json` with an existing google script