Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google spreadsheet AppScript code and bundling logic #187

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Oct 31, 2024

This adds the Google AppScript code used to synchronize meetings data in a GitHub repository with a Google spreadsheet.

The AppScript runtime does not (yet?) support JavaScript modules, so the code needs to be bundled (done with Rollup) before it may be deployed with Google's clasp CLI.

For deployment to work, user must have logged in into clasp with:

npx clasp login

Give the application enough permissions to create/update/delete script projects.

The user must also create a .clasp.json file at the root of the project that contains two entries:

  • scriptId: the ID of the standalone Google AppScript that should contain the resulting code. You must have permissions to update that script.
  • rootDir: full path to the tools/appscript/bundle.js file (that file will be generated from the source code in tools/appscript).

Once everything is setup, run the following command to update the script in the Google Drive:

npm run appscript

This adds the Google AppScript code used to synchronize meetings data in a
GitHub repository with a Google spreadsheet.

The AppScript runtime does not (yet?) support JavaScript modules, so the
code needs to be bundled (done with Rollup) before it may be deployed with
Google's `clasp` CLI.

For deployment to work, user must have logged in into clasp with:

```
npx clasp login
```

Give the application enough permissions to create/update/delete script
projects.

The user must also create a `.clasp.json` file at the root of the project that
contains two entries:
- `scriptId`: the ID of the standalone Google AppScript that should contain the
resulting code. You must have permissions to update that script.
- `rootDir`: full path to the `tools/appscript/bundle.js` file (that file will
be generated from the source code in `tools/appscript`).

Once everything is setup, run the following command to update the script in the
Google Drive:

```
npm run appscript
```
@tidoust tidoust merged commit 8b400d5 into main Oct 31, 2024
1 check passed
@tidoust tidoust deleted the appscript branch October 31, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant