Skip to content

Kazuki-tam/gas-webpack-starter

Repository files navigation

gas-webpack-starter

gas-webpack-starter is a starter kit for Google Apps Script.

Status

Release (latest by date) Issues Maintenance Release date

Features

  • Just deploy this project code without development
  • Develop Locally with TypeScript and Clasp
  • Bundle your files with Webpack
  • Lint your code with ESLint
  • Format your code with prettier
  • Built-in test runner with Jest

Main dependencies

Prerequisites

How to use

Clone this repository and install dependencies.

yarn install

Login google account

yarn clasp login

Connect to your exiting project

Create a .clasp.json at the root, and then Add these settings. Open App script from your spreadsheet and check out a script Id at the setting page.

{
  "scriptId": "<SCRIPT_ID>",
  "rootDir": "./dist"
}

Deploy your code to the existing project.

yarn deploy

Available Commands

Build your project.

yarn build

Build your project files and force writes all local files to script.google.com.

yarn deploy

Open the current directory's clasp project on script.google.com.

yarn open

Test project's code

yarn test
yarn test:watch

License

MIT

About

gas-webpack-starter is a starter kit for Google Apps Script.

Resources

License

Stars

Watchers

Forks

Packages

No packages published