Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sekky61/create-google-script
Starter template for a Google Apps Script project with bun
https://github.com/sekky61/create-google-script
bun gas google-script template
Last synced: about 1 month ago
JSON representation
Starter template for a Google Apps Script project with bun
- Host: GitHub
- URL: https://github.com/sekky61/create-google-script
- Owner: Sekky61
- License: mit
- Created: 2024-11-30T16:44:47.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-11-30T17:17:28.000Z (about 1 month ago)
- Last Synced: 2024-11-30T18:27:05.941Z (about 1 month ago)
- Topics: bun, gas, google-script, template
- Language: TypeScript
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Script template
My starter template for a Google Script project.
It uses clasp and bun.It supports:
- Typescript
- npm packages
- Easy deployment with versions and bundling
- lint with Biome## Get Started
Clone the repository and that is it.
Bun makes this very easy with [bun create](https://bun.sh/docs/cli/bun-create):
```bash
bun create Sekky61/create-google-script mydir
```## Pushing project
For interacting with clasp, read their [docs](https://github.com/google/clasp/blob/master/docs/README.md).
`bun run login` will log you in globally using your browser.
After logging in, either `bun run create` or `bun run clone` to pair with a project.
This creates a `.clasp.json` file with the info. You may not want to commit it, because it is user-specific.Now with the project paired, `bun run push` or `bun run watch` will update the project on google cloud.
`bun run deploy -- "description"`
## Tips
To run tests, type `bun test`.
See more in the [bun test docs](https://bun.sh/docs/cli/test).You may wish to change the license.
Globals like `console`, `Session` and `Blob` are documented [here](https://developers.google.com/apps-script/reference/base).
Enabling advanced services modifies the appsscript.json file on script.google.com. After enabling an advanced service in the UI, copy the appsscript.json file from script.google.com into your editor to use the advanced services in your project.
## Disclaimer
DISCLAIMER: This script is not affiliated with, endorsed by, or officially supported by Google.
It is an independent tool created for managing Apps Script deployments using clasp.
Use it at your own risk, and refer to official Google documentation for guidance on Apps Script and clasp.