Skeleton template for google apps script sheets projects.
- Clone this repository & run
npm install
. - Install Google clasp and login,
or
npx @google/clasp login
(will use the one installed in your node_modules). - Run
clasp create
so that a.clasp.json
is created or create one with the desired projectID. Note: You shouldn't define a customrootDir
. - Update the project name and repo urls in
package.json
. - Write your code and
npm run build
. - Push with
npm run build && clasp push
or for conveniencenpm run push
.
After cloning & scaffolding the repository
- Reset the package.json version to the desired one for the initial release, eg
0.1.0
. - Delete the CHANGELOG.md & .versionbot folder.
- Set the appropriate .github/CODEOWNERS.
- Push the scaffolded project to
master
- Create a new branch and open a PR for it.
- After balenaCI picks up the PR, go to the repository's settings page and add a
master
branch protection rule and mark the balenaCI checks as required.
See: https://github.com/google/clasp
See: https://github.com/google/clasp/blob/master/docs/typescript.md
See: https://developers.google.com/apps-script/guides/libraries