Skip to content

Ryo-Nakano/QiitaAnalytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for GoogleAppsScript development with TypeScript

This is a MINIMUM template for GoogleAppsScript development with TypeScript.

📚 Features

  • Develop with TypeScript
  • Bundle files with Webpack5 (You can use npm modules)
  • Develop locally and deploy with Clasp

🏃‍♂️ Get Started

1. Click [Use this template] button

matcher-inc_gas-template-sample__TypeScript___Webpack___Clasp_で_GAS_の開発を始められるテンプレート作ってみる試み

2. Clone the repository

git clone <Your template url> my-gas-project

 or

# If you don't want to use as template
git clone https://github.com/matcher-inc/gas-template.git my-gas-project

3. Move directory

cd my-gas-project

4. Install npm dependencies

npm install

5. Past your Script ID in the .clasp.json

{
  "scriptId": "<Your Script ID>",
  "rootDir": "./dist/"
}

6. If you are new to clasp, run the following command and authorize clasp

npx clasp login --no-localhost

🚀 Commands

# webpack build
npm run build

# webpack build in watch mode
npm run build:watch

# push dist files to script.google.com
npm run push

# push dist files to script.google.com in watch mode
npm run push:watch

# webpack build & push dist files to script.google.com
npm run deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published