{"id":13775209,"url":"https://github.com/ulisses-alves/rollup-plugin-elm","last_synced_at":"2025-04-22T14:09:07.641Z","repository":{"id":25701059,"uuid":"105631996","full_name":"ulisses-alves/rollup-plugin-elm","owner":"ulisses-alves","description":"Import .elm files as ES6 modules.","archived":false,"fork":false,"pushed_at":"2023-03-04T05:37:07.000Z","size":99,"stargazers_count":16,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T23:34:07.830Z","etag":null,"topics":["elm","rollup","rollup-plugin"],"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/ulisses-alves.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}},"created_at":"2017-10-03T08:58:33.000Z","updated_at":"2022-12-29T08:34:45.000Z","dependencies_parsed_at":"2024-01-15T01:03:26.551Z","dependency_job_id":"dfba0fff-cb95-49da-9c9f-ab8303b8648c","html_url":"https://github.com/ulisses-alves/rollup-plugin-elm","commit_stats":{"total_commits":15,"total_committers":3,"mean_commits":5.0,"dds":0.4,"last_synced_commit":"4c1e1a05de1d1d7c7f4535c3362f3853d46892ba"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulisses-alves%2Frollup-plugin-elm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulisses-alves%2Frollup-plugin-elm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulisses-alves%2Frollup-plugin-elm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulisses-alves%2Frollup-plugin-elm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ulisses-alves","download_url":"https://codeload.github.com/ulisses-alves/rollup-plugin-elm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465314,"owners_count":21108244,"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":["elm","rollup","rollup-plugin"],"created_at":"2024-08-03T17:01:35.337Z","updated_at":"2025-04-22T14:09:07.620Z","avatar_url":"https://github.com/ulisses-alves.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Transpilation"],"readme":"# rollup-plugin-elm\r\nImport .elm (Elm 0.19) files as ES6 modules.\r\n\r\n## Usage\r\n```javascript\r\nimport Elm from './App.elm'\r\n\r\nconst root = document.getElementById('app')\r\nconst app = Elm.App.init({ node: root })\r\n```\r\n\r\n### rollup.config.js\r\n```javascript\r\nimport elm from 'rollup-plugin-elm'\r\n\r\nexport default {\r\n  input: 'src/index.js',\r\n  output: {\r\n    file: `dist/bundle.js`,\r\n    format: 'iife'\r\n  },\r\n  plugins: [\r\n    elm({\r\n      exclude: 'elm_stuff/**'\r\n    })\r\n  ]\r\n}\r\n```\r\nCheck the __examples/__ folder for a complete example.\r\n\r\n## Options\r\n```javascript\r\n{\r\n  include: [],\r\n  exclude: [],\r\n  compiler: {\r\n    // Enable/Disable compiler optimizations (default: false)\r\n    optimize: true,\r\n    // Enable/Disable debug mode (default: false)\r\n    debug: false,\r\n    // Path to Elm executable (default: elm)\r\n    pathToElm: path.resolve(__dirname, 'node_modules/elm/bin/elm')\r\n  }\r\n}\r\n```\r\n\r\n## Elm 0.18\r\n\r\nElm 0.18 is supported up to version __1.0.6__ of this package. It can installed by running:\r\n\r\n```npm install --save-dev rollup-plugin-elm@1.0.6```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisses-alves%2Frollup-plugin-elm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulisses-alves%2Frollup-plugin-elm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulisses-alves%2Frollup-plugin-elm/lists"}