{"id":13492657,"url":"https://github.com/phenax/esbuild-plugin-elm","last_synced_at":"2025-04-14T15:35:33.332Z","repository":{"id":37016197,"uuid":"341999922","full_name":"phenax/esbuild-plugin-elm","owner":"phenax","description":"An esbuild plugin for building elm projects","archived":false,"fork":false,"pushed_at":"2023-08-22T13:08:50.000Z","size":98,"stargazers_count":29,"open_issues_count":3,"forks_count":16,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-11T01:42:20.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/phenax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"phenax","custom":["https://www.buymeacoffee.com/phenax"]}},"created_at":"2021-02-24T18:42:12.000Z","updated_at":"2025-04-03T09:06:57.000Z","dependencies_parsed_at":"2024-06-19T17:10:17.545Z","dependency_job_id":"003176cb-3460-4e27-9826-5fc30f897073","html_url":"https://github.com/phenax/esbuild-plugin-elm","commit_stats":{"total_commits":63,"total_committers":11,"mean_commits":"5.7272727272727275","dds":"0.38095238095238093","last_synced_commit":"6592c71085e6fef29cdaa93630dc209e1b6d8c42"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fesbuild-plugin-elm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fesbuild-plugin-elm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fesbuild-plugin-elm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phenax%2Fesbuild-plugin-elm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phenax","download_url":"https://codeload.github.com/phenax/esbuild-plugin-elm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248906937,"owners_count":21181245,"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":[],"created_at":"2024-07-31T19:01:07.964Z","updated_at":"2025-04-14T15:35:33.312Z","avatar_url":"https://github.com/phenax.png","language":"JavaScript","funding_links":["https://github.com/sponsors/phenax","https://www.buymeacoffee.com/phenax"],"categories":["JavaScript"],"sub_categories":[],"readme":"# esbuild-plugin-elm\nAn esbuild plugin for building elm projects\n\n[![npm](https://img.shields.io/npm/v/esbuild-plugin-elm?color=%2351e980\u0026style=flat-square)](https://www.npmjs.com/package/esbuild-plugin-elm)\n\n\n\n### Install\nAdd this plugin to your project's dev-dependencies by running the following -\n\n```\nyarn add -D esbuild-plugin-elm\n// OR\nnpm install -D esbuild-plugin-elm\n```\n\n\n### Usage\n\nA simple example can be found in [./examples/basic/](https://github.com/phenax/esbuild-plugin-elm/tree/main/examples/basic).\n\n```js\nesbuild.build({\n  entryPoints: ['src/index.js'],\n  bundle: true,\n  outfile: 'dist/bundle.js',\n  plugins: [\n    ElmPlugin(options) // options are documented below\n  ],\n}).catch(e =\u003e (console.error(e), process.exit(1)))\n```\n\n### Import paths\n\nImport paths will be resolved using the paths listed in `source-directories` in `elm.json`. If none resolve, the import is assumed to be relative to the importing file.\n\n### Options\n\n* `debug` *(default: `false`)*:\n\n  Enable the time-travelling debugger\n\n* `optimize` *(default: `NODE_ENV === 'production'`)*:\n\n  Optimize the js output (true by default if `NODE_ENV` is production)\n\n* `pathToElm` *(default: `node_modules/.bin/elm || elm`)*:\n\n  Specify an explicit path to the elm executable\n\n* `clearOnWatch` *(default: `false`)*:\n\n  Clear the console before re-building on file changes\n\n* `cwd` *(default: `\u003cPWD\u003e`)*:\n\n  The current working directory/elm project root\n\n* `verbose` *(default: `false`)*:\n\n  Enable verbose output of `node-elm-compiler`\n\n\n### Tutorials\n\n* [How to Install Elm, on a Rails App, via esbuild, using `esbuild-plugin-elm`](https://benkoshy.github.io/2022/02/08/elm-via-esbuild-on-rails.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenax%2Fesbuild-plugin-elm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphenax%2Fesbuild-plugin-elm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphenax%2Fesbuild-plugin-elm/lists"}