Starter template for Google Apps Script projects using clasp.
Includes some helper functions for potential tasks.
# reset Git project
rm -rf .git
git init
# reset package.json
rm package.json package-lock.json
npm init -y
# Make sure clasp & typescript are installed globally
npm install -g typescript
npm install -g @google/clasp
# install GAS types locally
npm i -S @types/google-apps-script
For linting:
npm i --save-dev prettier @trivago/prettier-plugin-sort-imports
clasp login
- Update
scriptId
in.clasp.json
with an existing google script