Skip to content

Commit

Permalink
Add Google spreadsheet AppScript code and bundling logic (#187)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
tidoust authored Oct 31, 2024
1 parent 6138732 commit 8b400d5
Show file tree
Hide file tree
Showing 11 changed files with 3,124 additions and 77 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
config.json
node_modules
node_modules
tools/appscript/bundle.js
.clasp.json
Loading

0 comments on commit 8b400d5

Please sign in to comment.