Skip to content

Instantly share code, notes, and snippets.

View JefCurtis's full-sized avatar
🎄
I may be slow to respond.

Jef Curtis JefCurtis

🎄
I may be slow to respond.
View GitHub Profile
@JefCurtis
JefCurtis / global.d.ts
Last active September 4, 2018 04:40
Gmail add-on: Getting started
declare let global: any
@JefCurtis
JefCurtis / webpack_v2.config.js
Last active September 12, 2018 16:49
Gmail add-on: Add the GAS plugin
const GasPlugin = require("gas-webpack-plugin");
[...]
module.exports = {
plugins: [
new GasPlugin(),
],
[...]
}
@JefCurtis
JefCurtis / main.ts
Last active September 4, 2018 04:59
Gmail add-on: Add the main TypeScript file
global.handleEntryPoint = () => {
const card = CardService.newCardBuilder()
.setHeader(
CardService.newCardHeader()
.setTitle("Hello world!")
)
.addSection(
CardService.newCardSection().addWidget(
CardService.newTextParagraph()
.setText("Some very useful information"),
@JefCurtis
JefCurtis / webpack_v1.config.js
Last active September 4, 2018 04:59
Gmail add-on: initial Webpack configuration file
const { join, resolve } = require("path");
const root = resolve(__dirname, "../../");
module.exports = {
mode: "development",
context: join(root, "src"),
entry: {
app: join(root, "src/main.ts"),
},
devtool: "none",
output: {
@JefCurtis
JefCurtis / .clasp.json
Last active August 25, 2018 22:59
Gmail add-on guide - clasp.json
{
"scriptId":"1AUNIOea…"
}