The starter template for Google Apps Script by clasp and deno
Please click
Use this template
or
Run on your terminal:
git clone --depth=1 https://github.com/proudust/gas-deno-starter <your_project_name>
cd <your_project_name>
rm -rf .git
Run on your terminal:
deno run -A npm:@google/clasp@2.4.2 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
.
.clasp.json
{
"scriptId": "<YOUR_SCRIPT_ID>",
"rootDir": "dist"
}
appsscript.json
{
"timeZone": "<Your Time Zone>",
"exceptionLogging": "STACKDRIVER",
"runtimeVersion": "V8"
}
LICENSE
MIT License
Copyright (c) [Year] [Your Name]
Permission is hereby granted, free of charge, to any person obtaining a copy
Build and Deploy
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
deno task build
Leave a Reply