This repository is a template for developing Google Apps Script applications. When you create an app on GAS, you can fork or select this template. You can use Git for GAS app development and select deployment environments.
- Clasp must be installed
- Clone this repository or select it as a template or fork it
- Run
npm install
- Run
clasp login
- If you need to login with another account:
- Copy
.clasprc.json
to this directory and rename it to.clasprc-production.json
- After running
clasp login
, you will get.clasprc.json
in your home directory - Currently, you cannot push to the staging directory, so please re-login to your default account
- Copy
- Run
clasp clone <script ID>
- Rename
clasp.json
toclasp.staging.json
and moveappsscript.json
todist/appsscript.json
You can use the following commands for deployment:
npm run stg-push
for staging environmentnpm run prod-push
for production environment