Template-TypeScript-GoogleAppsScript
How to Initialize
If you have initialized node-google-apps-script
already, skip to 3.
-
Install
node-google-apps-script
$ yarn global add node-google-apps-script
-
Configure authorized information.
-
Go GoogleAPI Console and create new project or select an exist project.
-
Activate DriveAPI to access Drive file.
-
Create OAuth information and download authorized json file.
-
Register authorized json file.
$ gapps auth <authorized_json_file>
-
-
Configure Google Apps Script Project.
-
Create Googl Apps Script Project or select an exist project.
-
Get FileID. FileID is included in the url such as
https://script.google.com/d/<FileID>
. -
Register FileID.
$ gapps init <FileID>
-
That's all. You can upload files under /src
by running gapps upload
command.