This repo contains a few Google Apps Scripts.
- Automatic Gmail Actions - A script to automatically take action on Gmail emails based on labels.
- Recruiter Contacted Me - A script to pull information from emails about recruiters that contact me.
This repo makes use of npm
for dependencies and some automation.
Use /start_dev.sh
for easier development.
Each subdirectory is it's own 'project' / Google Apps Script, and they make use of clasp
You will want to create a .clasp.json
file in the respective subdirectory pointing to your script URL,
and place the line containing fileExtension
in it like below:
{
"scriptId": "<YOUR_SCRIPT_ID>",
"fileExtension": "ts"
}
This will tell clasp
to only pull the file in .ts
format, not .gs
format,
which is desired for a better development experience.
The below dependencies are included in each subdirectory's package.json
file.
From a fresh checkout, you can install them via:
npm install
google-apps-script
- TypeScript*.d.ts
files for auto-completion of Google Apps Script APIsclasp
- A CLI that allows local development of Google Apps Script projects
Note: Upon npm install
, the clasp
CLI can be invoked via:
./node_modules/.bin/clasp