Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/proudust/gas-deno-starter
The starter template for Google Apps Script by clasp and deno
https://github.com/proudust/gas-deno-starter
gas google-apps-script
Last synced: about 18 hours ago
JSON representation
The starter template for Google Apps Script by clasp and deno
- Host: GitHub
- URL: https://github.com/proudust/gas-deno-starter
- Owner: proudust
- License: mit
- Created: 2022-09-10T13:16:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-08T15:03:29.000Z (9 months ago)
- Last Synced: 2024-02-09T15:36:02.797Z (9 months ago)
- Topics: gas, google-apps-script
- Language: TypeScript
- Homepage:
- Size: 335 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gas Deno Starter
The starter template for Google Apps Script by clasp and deno
## Getting started
### 1. Install Deno
[How to install Deno](https://deno.land/manual/getting_started/installation)
### 2. Clone template
Please click
[Use this template](https://github.com/proudust/gas-deno-starter/generate)or
Run on your terminal:
```sh
git clone --depth=1 https://github.com/proudust/gas-deno-starter
cd
rm -rf .git
```### 3. Login @google/clasp
Run on your terminal:
```sh
deno run -A npm:@google/[email protected] login
```After login, `~/.clasprc.json` will be generated. If you want to deploy Google
Apps Script from GitHub Actions, paste the contents of `~/.clasprc.json` into
your repository secrets with the name `CLASPRC`.### 4. Change Template Files
**.clasp.json**
[What is Script ID ?](https://github.com/google/clasp#scriptid-required)
```json
{
"scriptId": "",
"rootDir": "dist"
}
```**appsscript.json**
[What is appsscript.json ?](https://developers.google.com/apps-script/concepts/manifests)
```json
{
"timeZone": "",
"exceptionLogging": "STACKDRIVER",
"runtimeVersion": "V8"
}
```**LICENSE**
```md
MIT LicenseCopyright (c) [Year] [Your Name]
Permission is hereby granted, free of charge, to any person obtaining a copy
```### 5. Deploy your scripts
**Build and Deploy**
```sh
deno task deploy
``````
$ deno task deploy
Task deploy deno task build && deno task build deploy
Task build deno run --allow-env --allow-net --allow-read --allow-run --allow-write --unstable _build.ts
Task build deno run --allow-env --allow-net --allow-read --allow-run --allow-write --unstable _build.ts "deploy"
Warning: Not implemented: process.on("rejectionHandled")
└─ dist/appsscript.json
└─ dist/out.js
Pushed 2 files.
```**Build Only**
```sh
deno task build
```### Dependencies
- [@google/clasp](https://github.com/google/clasp)
- [esbuild](https://github.com/evanw/esbuild)
- [esbuild_deno_loader](https://github.com/lucacasonato/esbuild_deno_loader)
- [esbuild-gas-plugin](https://github.com/mahaker/esbuild-gas-plugin)