Creating an Apps Script manifest should be easy. Manifest editing should have these features:
clasp create --webapp)appsscript.tsappscript.json to appsscript.ts, add type)appsscript.ts or do any funky things.{
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
I consider it is good that to publish json schema for appsscript.json on http://schemastore.org/json/ .
Various editors and IDEs has direct support for schemas hosted on SchemaStore.org. VSCode, IntelliJ, etc.
Even if VSCode Extension is not implemented, clasp also will be able to generate json file to mapping appsscritpt.json to json schema in VSCode workspace.
Please see for mapping to a json schema: https://code.visualstudio.com/docs/languages/json#_mapping-to-a-schema-in-the-workspace.
Thanks @fossamagna! I created this PR https://github.com/SchemaStore/schemastore/pull/522.
Looks like we don't need any ts hacks or VSCode extensions for this feature.
I've also added a .clasp.json schema here: https://github.com/SchemaStore/schemastore/pull/525
I think that's it in terms of config files.
The .clasprc.json file is a generated file from the googleapis module, so I don't think I'll add that one.
I'm guessing the schemas will be published in a week or so we can try it out and close this bug.
Looks working to me.
See https://github.com/google/clasp/blob/master/docs/settings.md