Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 1.04 KB

README.md

File metadata and controls

69 lines (44 loc) · 1.04 KB

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