Ecosyste.ms: Awesome

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

https://github.com/howdy39/gas-clasp-starter

A starter template for Google Apps Script by clasp
https://github.com/howdy39/gas-clasp-starter

apps-script boilerplate clasp gas gas-clasp-starter google-apps-script javascript rollup template typescript

Last synced: 4 months ago
JSON representation

A starter template for Google Apps Script by clasp

Lists

README

        

# gas-clasp-starter
A starter template for Google Apps Script by [google/clasp](https://github.com/google/clasp)

## Tech Stack
- [google/clasp](https://github.com/google/clasp)
- [rollup](https://rollupjs.org/)
- [TypeScript](http://www.typescriptlang.org/)
- [ESLint](https://github.com/eslint/eslint)
- [Prettier](https://prettier.io/)
- [Jest](https://facebook.github.io/jest/)

## Prerequisites
- [Node.js](https://nodejs.org/)
- [google/clasp](https://github.com/google/clasp)

## Getting Started
### Clone the repository
```
git clone --depth=1 https://github.com/howdy39/gas-clasp-starter.git
cd
rm -Rf .git
```

### Install dependencies
```
npm install
```

### Configuration
#### Open `.clasp.json`, change scriptId
What is scriptId ? https://github.com/google/clasp#scriptid-required
```
{
"scriptId": ,
"rootDir": "dist"
}
```

#### Open `.package.json`, change properties
The name, version, description, and homepage properties are output as comments at the beginning of the output GAS.

```
...
"name": "your application name",
"version": "your application version",
"description": "your application description",
"homepage" "your repository url"
...
```

#### Open `src/appsscript.json`, change timeZone (optional)
[Apps Script Manifests](https://developers.google.com/apps-script/concepts/manifests)
```
{
"timeZone": "Asia/Tokyo", ## Change timeZone
"dependencies": {
},
"exceptionLogging": "STACKDRIVER"
}
```

### Development and build project
```
npm run build
```

### Push
```
npm run push
```

## License
This software is released under the MIT License, see LICENSE.txt.