Expected Behavior
Creating an Apps Script manifest should be easy. Manifest editing should have these features:
- Autocompletion
- Syntax errors
- Integration with clasp (
clasp create --webapp)
Actual Behavior
- You have to create this file by hand. No autocompletion on script.google.com or local IDEs.
Suggestion Solution
appsscript.ts
- PRO: Simple setup (rename
appscript.json to appsscript.ts, add type)
- CON: A bit unnatural. May be reverse incompatible since ts allows comments, no quotes, etc.
- VSCode Extension:
- PRO: You don't need to rename your file to
appsscript.ts or do any funky things.
- CON: You must install an extension. The code is separate from clasp. A lot of maintainence work. Only works for VSCode.
Example
{
timeZone: string,
oauthScopes: [
string
],
dependencies: {
enabledAdvancedServices: [
{
userSymbol: string,
serviceId: string,
version: string,
}
],
libraries: [
{
userSymbol: string,
libraryId: string,
version: string,
developmentMode: boolean,
}
]
},
exceptionLogging: string,
webapp: {
access: string,
executeAs: string,
},
executionApi: {
access: string,
},
urlFetchWhitelist: [
string
]
}: GoogleAppsScript.Manifest
Expected Behavior
Creating an Apps Script manifest should be easy. Manifest editing should have these features:
clasp create --webapp)Actual Behavior
Suggestion Solution
appsscript.tsappscript.jsontoappsscript.ts, add type)appsscript.tsor do any funky things.Example