Skip to content

Starter template for a Google Apps Script project with bun

License

Sekky61/create-google-script

Repository files navigation

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
  • Tests in CI

Get Started

Clone the repository and that is it. Bun makes this very easy with bun create:

bun create Sekky61/create-google-script mydir

Pushing project

For interacting with clasp, read their docs.

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.

You may wish to change the license.

Globals like console, Session and Blob are documented here.

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.

About

Starter template for a Google Apps Script project with bun

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published