{"id":23521271,"url":"https://github.com/vaaralav/gas-boilerplate","last_synced_at":"2026-07-18T08:39:15.656Z","repository":{"id":84142893,"uuid":"100366068","full_name":"vaaralav/gas-boilerplate","owner":"vaaralav","description":"Boilerplate for writing Google Apps Script in ES6 with NPM packages","archived":false,"fork":false,"pushed_at":"2018-10-28T18:45:43.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T17:12:30.612Z","etag":null,"topics":["apps-script","boilerplate","es6","flow","gas-boilerplate","google-apps-script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vaaralav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-15T10:20:08.000Z","updated_at":"2021-01-11T23:11:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"4732c870-c7d2-4305-9648-bd7e2a1faca4","html_url":"https://github.com/vaaralav/gas-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fgas-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fgas-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fgas-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaaralav%2Fgas-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaaralav","download_url":"https://codeload.github.com/vaaralav/gas-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239212556,"owners_count":19600830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apps-script","boilerplate","es6","flow","gas-boilerplate","google-apps-script"],"created_at":"2024-12-25T17:11:32.588Z","updated_at":"2025-10-16T15:40:10.840Z","avatar_url":"https://github.com/vaaralav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gas-boilerplate\n\nBoilerplate project for writing Google Apps Script in ES6+ and using NPM packages from node_modules in your project.\n\n## What's included?\n\n- ES6+\n- Webpack\n- Flow\n- Prettier\n- Eslint\n- Clasp\n\n## Prerequisites\n\n1. Connect Google Apps Script to your Google Drive\n\n## Usage: Bootstrap your Apps Script project\n\n### Getting started\n\n```shell\ngit clone https://github.com/vaaralav/gas-boilerplate.git my-awesome-project\ncd my-awesome-project\nrm -rf .git \u0026\u0026 git init # Initialize your project's git repository\nyarn # Install dependencies\nyarn clasp login # Login to Google\nyarn setup \u003cprojectName\u003e # Create an Apps Script project\nyarn build # Compile the example project\nyarn push # Push the compiled script to the server\n```\n\nSee clasp documentation for [`create`](https://github.com/google/clasp#create) and/or [`clone`](https://github.com/google/clasp#clone) command if you'd like to edit an existing Apps Script project or bind the project to a Drive file.\n\n### Development\n\nThe source files are located at `src/`. To start coding open `src/index.js` in your editor.\n\nTo compile and push the project to the server run `yarn build \u0026\u0026 yarn clasp push`.\nAfter that you can open the project in the browser with `yarn clasp open` and try out your top level functions.\n\n#### Scripts\n\n- `yarn setup \u003cprojectName\u003e`: Setup new Apps Script project\n- `yarn lint`: Lint your code\n- `yarn lint:fix`: Lint and autofix your code (uses prettier \u0026 eslint)\n- `yarn build`: Compile your code to `dist/index.js`\n- `yarn flow-typed`: Update type definitions\n- `yarn clasp \u003ccommand\u003e`: Google Apps Script CLI commands. See [clasp documentation](https://github.com/google/clasp#commands).\n\n## Usage for standalone Google Apps Scripts and Node.js\n\nSteps to create and use your Apps Script project over HTTP API.\n\n1. Create new Google Apps Script project, `yarn setup myProject`.\n1. Run `yarn build` in the local project folder.\n1. Run `yarn clasp push` to push `dist/index.js` bundle to the Google Apps Script server.\n1. To test the methods open the project in online editor ,`yarn clasp open`, and select the method from dropdown and press 'Run'.\n1. To deploy the script as executable API connect the script to Cloud Platform project: Resources \u003e Cloud Platform project...\n1. Enable Google Apps Script API or the Cloud Platform project: Click \"View API Console\" in the Cloud Platform project modal, search for \"Google Apps Script API\" and enable it.\n1. Create API credentials in Cloud Platform Console: Go to APIs overview -\u003e Select \"Credentials\" in the sidebar -\u003e Click \"Create credentials\" \u003e OAuth client ID \u003e Other\n1. Use the client ID and client secret in your Node.js client. See an example here [gas-boilerplate-client](https://github.com/vaaralav/gas-boilerplate-client).\n1. Deploy the script as API executable: Publish \u003e Deploy as API executable... \u003e Create new version. Use Current API ID as script ID in your client.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaralav%2Fgas-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaaralav%2Fgas-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaaralav%2Fgas-boilerplate/lists"}