{"id":22359057,"url":"https://github.com/bwireman/esgleam","last_synced_at":"2025-07-30T12:32:16.115Z","repository":{"id":37793994,"uuid":"474406922","full_name":"bwireman/esgleam","owner":"bwireman","description":"esbuild plugin for gleam 🌸","archived":false,"fork":false,"pushed_at":"2023-03-06T13:00:52.000Z","size":82,"stargazers_count":19,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-17T11:53:59.714Z","etag":null,"topics":["bundler","esbuild","gleam","javascript","minifier","plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/esgleam","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/bwireman.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}},"created_at":"2022-03-26T16:41:37.000Z","updated_at":"2024-11-07T10:44:33.000Z","dependencies_parsed_at":"2023-02-16T07:15:22.677Z","dependency_job_id":null,"html_url":"https://github.com/bwireman/esgleam","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/bwireman%2Fesgleam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Fesgleam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Fesgleam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwireman%2Fesgleam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwireman","download_url":"https://codeload.github.com/bwireman/esgleam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228133891,"owners_count":17874561,"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":["bundler","esbuild","gleam","javascript","minifier","plugin"],"created_at":"2024-12-04T15:19:20.156Z","updated_at":"2024-12-04T15:19:20.946Z","avatar_url":"https://github.com/bwireman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esgleam\n\nAn [esbuild](https://esbuild.github.io/) plugin for [gleam](https://gleam.run/) ✨\n\n[![npm](https://img.shields.io/npm/v/esgleam)](https://www.npmjs.com/package/esgleam)\n[![npm](https://img.shields.io/npm/dt/esgleam)](https://www.npmjs.com/package/esgleam)\n[![commits](https://img.shields.io/github/last-commit/bwireman/esgleam)](https://github.com/bwireman/esgleam/commit/main)\n[![mit](https://img.shields.io/github/license/bwireman/esgleam?color=brightgreen)](https://github.com/bwireman/esgleam/blob/main/LICENSE)\n[![gleam js](https://img.shields.io/badge/%20gleam%20%E2%9C%A8-js%20%F0%9F%8C%B8-pink)](https://gleam.run/news/v0.16-gleam-compiles-to-javascript/)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen)](http://makeapullrequest.com)\n---\n\nGleam is a beautiful little language that compiles to JS and to Erlang. Esbuild is an excellent little js bundler. It's a great match! 🌸\n\n## Usage\n\n```shell\n# install\nnpm i --save-dev esgleam esbuild\n# or\nyarn add --dev esgleam esbuild\n```\n\nin conjunction with esbuild\n\u003e more info @ https://esbuild.github.io/plugins/#using-plugins\n\n```javascript\n// add to your esbuild config file\nimport esbuild from \"esbuild\"\nimport esgleam from \"esgleam\"\n\nesbuild.build({\n    entryPoints: ['./src/main.gleam'],\n    bundle: true,\n    outfile: 'out.js',\n    plugins: [esgleam.esgleam({ main_function: \"main\", project_root: \".\" })],\n}).catch(() =\u003e process.exit(1))\n```\n\n### Options\n\n```typescript\nexport interface EsGleamOptions {\n    // path to the root of the gleam project\n    // default: \".\"\n    project_root?: string;\n    // if defined the output file will call this function with no args\n    // useful for bundled js files\n    main_function?: string;\n    // other flags to be passed to the gleam compiler\n    compile_args?: string[];\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwireman%2Fesgleam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwireman%2Fesgleam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwireman%2Fesgleam/lists"}