ChrisCarini / google-apps-scripts

A collection of Google Apps Scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google App Engine Scripts

This repo contains a few Google Apps Scripts.

  1. Automatic Gmail Actions - A script to automatically take action on Gmail emails based on labels.
  2. Recruiter Contacted Me - A script to pull information from emails about recruiters that contact me.

Developing

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.

Dependencies

The below dependencies are included in each subdirectory's package.json file.

From a fresh checkout, you can install them via:

npm install
  1. google-apps-script - TypeScript *.d.ts files for auto-completion of Google Apps Script APIs
  2. clasp - 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

About

A collection of Google Apps Scripts


Languages

Language:TypeScript 94.2%Language:Shell 5.8%