Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dustinmichels/clasp-template
- Owner: dustinmichels
- Created: 2019-02-13T23:45:35.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T09:13:50.000Z (about 2 years ago)
- Last Synced: 2024-10-27T16:45:51.881Z (3 months ago)
- Topics: clasp, google, google-apps-script, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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