{"id":18011251,"url":"https://github.com/mahaker/esbuild-gas-plugin","last_synced_at":"2025-04-05T22:04:13.901Z","repository":{"id":40521867,"uuid":"380752690","full_name":"mahaker/esbuild-gas-plugin","owner":"mahaker","description":"esbuild plugin for Google Apps Script.","archived":false,"fork":false,"pushed_at":"2025-03-10T11:54:28.000Z","size":119,"stargazers_count":36,"open_issues_count":6,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T21:02:53.463Z","etag":null,"topics":["deno","esbuild","esbuild-plugin","gas","google-apps-script","hacktoberfest","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mahaker.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":"2021-06-27T13:53:38.000Z","updated_at":"2025-03-10T12:38:50.000Z","dependencies_parsed_at":"2025-03-06T03:09:03.935Z","dependency_job_id":"f0ce7299-488e-4344-8d81-a42cf2be66ae","html_url":"https://github.com/mahaker/esbuild-gas-plugin","commit_stats":{"total_commits":31,"total_committers":4,"mean_commits":7.75,"dds":"0.19354838709677424","last_synced_commit":"03644a394cd14de83e9c0e95d19f6e5b716ecd9b"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaker%2Fesbuild-gas-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaker%2Fesbuild-gas-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaker%2Fesbuild-gas-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahaker%2Fesbuild-gas-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahaker","download_url":"https://codeload.github.com/mahaker/esbuild-gas-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406085,"owners_count":20933803,"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":["deno","esbuild","esbuild-plugin","gas","google-apps-script","hacktoberfest","typescript"],"created_at":"2024-10-30T03:08:12.633Z","updated_at":"2025-04-05T22:04:13.882Z","avatar_url":"https://github.com/mahaker.png","language":"TypeScript","funding_links":[],"categories":["Development"],"sub_categories":["Lists \u0026 collections"],"readme":"# esbuild-gas-plugin\n\n[![npm version](https://badge.fury.io/js/esbuild-gas-plugin.svg)](https://www.npmjs.com/package/esbuild-gas-plugin)\n![test](https://github.com/mahaker/esbuild-gas-plugin/actions/workflows/test.yml/badge.svg)\n\nesbuild plugin for Google Apps Script.\n\nThis is inspired by [gas-webpack-plugin](https://github.com/fossamagna/gas-webpack-plugin).\n\n## Install\n\n```\nnpm install -D esbuild-gas-plugin\n// or\nyarn add -D esbuild-gas-plugin\n// or\npnpm add -D esbuild-gas-plugin\n```\n\n## Usage\n\nAdd this to Your build script file, and paste `dist/bundle.js` to script editor.\n\nA simple example can be found in [here](https://github.com/mahaker/openapi-gas-example).\n\n### Node\n\n```ts\n// build.js\nconst { GasPlugin } = require('esbuild-gas-plugin');\n\nrequire('esbuild').build({\n  entryPoints: ['src/index.ts'],\n  bundle: true,\n  outfile: 'dist/bundle.js',\n  plugins: [GasPlugin]\n}).catch((e) =\u003e {\n  console.error(e)\n  process.exit(1)\n})\n```\n\nand\n\n```sh\nnode build.js\n```\n\n### Deno\n\n```ts\n// build.ts\nimport { build, stop } from 'https://deno.land/x/esbuild@v0.12.15/mod.js'\nimport { GasPlugin } from 'npm:esbuild-gas-plugin@0.7.0'\nimport httpFetch from 'https://deno.land/x/esbuild_plugin_http_fetch@v1.0.2/index.js'\n\nawait build({\n  entryPoints: ['src/index.ts'],\n  bundle: true,\n  outfile: 'dist/bundle.js',\n  plugins: [httpFetch, GasPlugin ]\n})\nstop()\n```\n\nand \n\n```sh\ndeno run --allow-read --allow-env --allow-run --allow-write build.ts\n# or\ndeno run -A build.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahaker%2Fesbuild-gas-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahaker%2Fesbuild-gas-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahaker%2Fesbuild-gas-plugin/lists"}