Giter Site home page Giter Site logo

typescript-gas-scaffold's Introduction

GAS Typescript Scaffold

clasp

About

This is a scaffold for writing Google Apps Script in TypeScript and building with webpack.
Japanese README

Requirements

  • Git
  • Node.js 8.10.0 or higher

Install & Initiation

Clone Repo

$ git clone https://github.com/jerrywdlee/typescript-gas-scaffold.git <YOUR-NEW-REPO-NAME>
$ cd <YOUR-NEW-REPO-NAME>

Install packages

$ npm i

Init Project

$ npm run reset
# It will delete exist .git folder and run git init

Usage

Development

If you watnt to use watch mode,

$ npm run watch

Do Dev

Edit code in src/app.ts (and/or other codes in /src), then enjoy it ;)

Deploy by Google Clasp

May Need Enable the Apps Script API at https://script.google.com/home/usersettings

Login

$ npm run clasp login
# OR
$ cd build/ && $(npm bin)/clasp login

Clone

Change code.gs (or other name) generated automatically to bundle.gs

$ npm run clasp clone <scriptId>
# OR
$ cd build/ && $(npm bin)/clasp clone <scriptId>

Pull

$ npm run clasp pull
# OR
$ cd build/ && $(npm bin)/clasp pull

Push

Need Do Clone and Pull first!
May need refresh work space to show change

$ npm run push
# OR
$ npm run clasp push
# OR
$ cd build/ && $(npm bin)/clasp push

Watch & Push

If Clasp is configed, run npm run watch:push will be faster.

Notice

  • If want connect to Spreadsheets ect. Need run on dev console first and apply permission
  • If want update your REST API, need update web app setting after deploy your app

Reference

Google Clasp.
Reffered From Here.
node-google-apps-script.

typescript-gas-scaffold's People

Contributors

jerrywdlee avatar

Stargazers

 avatar Kaz Takahashi avatar ujiro99 avatar Ken avatar Kosuke Kushizaki avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.