the ClayStreet priority buffer calculator using the Google clasp for deployment
When running clone
or create
, a file named .clasp.json
is created in the current directory to describe clasp
's configuration for the current project. Example .clasp.json:
{
"scriptId": "",
"rootDir": "build/",
"projectId": "project-id-xxxxxxxxxxxxxxxxxxx",
"fileExtension": "ts",
"filePushOrder": ["file1.ts", "file2.ts"]
}
The following configuration values can be used:
Specifies the id of the Google Script project that clasp will target.
- Open script url.
- File > Project properties > Script ID
Specifies the local directory in which clasp will store your project files. If not specified, clasp will default to the current directory.
Specifies the id of the Google Cloud Platform project that clasp will target. You must associate Google Script project with Google Cloud Platform beforehand.
- Run
clasp open
. - Click
Resources > Cloud Platform project...
. - Specify the project ID
project-id-xxxxxxxxxxxxxxxxxxx
.
Even if you do not set this manually, clasp will ask this via a prompt to you at the required time.
Specifies the file extension for local script files in your Apps Script project.
Specifies the files that should be pushed first, useful for scripts that rely on order of execution. All other files are pushed after this list of files.