Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

dev-container/gas

Repository files navigation

clasp Gitpod ready-to-code

Dev Container - Google Apps Script

A setup for working on Google Apps Script in a VS Code or Gitpod container

Quick Start

Login the user

clasp login --no-localhost

Create a new Project

clasp create --title "Title" --type standalone --rootDir ./src
clasp create --title "Title" --type forms --rootDir ./src
clasp create --title "Title" --parentId "*******" --rootDir ./src

Clone and work on an existing project

clasp clone "*******" --rootDir ./src

Watch and push code when saved

clasp push --watch

Edit (if need to)

  • .clasp.json
"rootDir": "./src"
  • appsscript.json
"timeZone": "Asia/Singapore"

other useful commands

Open in the script editor

clasp open

Clasp

VS Code

Preamble

  • Install Docker Desktop if not installed
  • Install the Remote Development extension pack in VS Code
  • Run Docker Desktop
  • Open repo folder with VS Code using Run Remote-Containers: Open Folder in Container...

Container composition

  • using this Dockerfile
  • FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:12

Gitpod

Container conposition

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /