This is a MINIMUM template for GoogleAppsScript development with TypeScript.
- Develop with TypeScript
- Bundle files with Webpack5 (You can use npm modules)
- Develop locally and deploy with Clasp
git clone <Your template url> my-gas-project
or
# If you don't want to use as template
git clone https://github.com/matcher-inc/gas-template.git my-gas-project
cd my-gas-project
npm install
{
"scriptId": "<Your Script ID>",
"rootDir": "./dist/"
}
npx clasp login --no-localhost
# webpack build
npm run build
# webpack build in watch mode
npm run build:watch
# push dist files to script.google.com
npm run push
# push dist files to script.google.com in watch mode
npm run push:watch
# webpack build & push dist files to script.google.com
npm run deploy