Skip to content
This is an example of writing Google Apps Script in TypeScript and building with webpack
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Rename Test class -> Echo Nov 4, 2018
.gitignore
LICENSE
README.md
package.json
tsconfig.json
tslint.json
webpack.config.js
yarn.lock

README.md

gas typescript webpack

About

This is an example code for writing Google Apps Script in TypeScript and building with webpack.

Please Read at this Japanease post.

Requirements

  • Node.js v8 or heigher
  • clasp

Install

Install this project

$ git clone https://github.com/naoki-sawada/gas-typescript-webpack.git

After clone this repository,

$ cd gas-typescript-webpack
$ npm intall
(or yarn)

Install and setup the clasp

  1. Install the clasp.
$ npm i @google/clasp -g
  1. Login with your google account.
$ clasp login
  1. Create new Google Apps Script.
$ clasp create "My Script" --rootDir ./dist

Usage

$ npm build
$ npm run push

Development

If you watnt to use watch mode, run the next command.

$ npm run watch

In this watch mode, the build file is automatically pushed when saving the contents in the src folder.

License

MIT

You can’t perform that action at this time.