This repository is a development environment for Google App Script using VSCode and Dev Container. It provides an easy way to set up a local Google App Script environment.
Before using this repository, you need to have the following installed on your system:
- Docker Desktop
- VSCode with Dev Container extension installed
- Alternative: Remote Repositories extension of VSCode
To use this repository, follow the steps below:
- Create new repository by clicking the Use this template button above.
- Open your duplicated repository in VSCode using the command ">Dev Containers: Clone Repositories in Named Container Volume". You can name your container for easy referencing.
Login the user
clasp login
Create a new Project
mkdir src && clasp create --title "Title" --type standalone --rootDir ./src
mkdir src && clasp create --title "Title" --type forms --rootDir ./src
mkdir src && clasp create --title "Title" --parentId "*******" --rootDir ./src
Clone and work on an existing project
mkdir src && clasp clone "*******" --rootDir ./src
Watch and push code when saved
clasp push --watch
Open in the script editor
clasp open