{"id":15285974,"url":"https://github.com/farism/elm-factory","last_synced_at":"2025-10-07T01:30:27.303Z","repository":{"id":57222556,"uuid":"85498821","full_name":"farism/elm-factory","owner":"farism","description":"Dev and build on Elm applications","archived":true,"fork":false,"pushed_at":"2018-09-10T20:52:00.000Z","size":1521,"stargazers_count":22,"open_issues_count":19,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T08:47:49.899Z","etag":null,"topics":["elm-css","elm-platform","livereload"],"latest_commit_sha":null,"homepage":"http://farism.github.io/elm-factory","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/farism.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-03-19T18:25:43.000Z","updated_at":"2023-01-28T04:16:04.000Z","dependencies_parsed_at":"2022-08-29T02:12:20.033Z","dependency_job_id":null,"html_url":"https://github.com/farism/elm-factory","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Felm-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Felm-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Felm-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farism%2Felm-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farism","download_url":"https://codeload.github.com/farism/elm-factory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235569499,"owners_count":19011184,"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-css","elm-platform","livereload"],"created_at":"2024-09-30T15:08:53.016Z","updated_at":"2025-10-07T01:30:26.890Z","avatar_url":"https://github.com/farism.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm Factory [![npm version](https://badge.fury.io/js/elm-factory.svg)](https://badge.fury.io/js/elm-factory) [![Travis CI](https://api.travis-ci.org/farism/elm-factory.svg?branch=master)](https://travis-ci.org/farism/elm-factory) [![Coverage Status](https://coveralls.io/repos/github/farism/elm-factory/badge.svg?branch=specs)](https://coveralls.io/github/farism/elm-factory?branch=specs) [![Greenkeeper badge](https://badges.greenkeeper.io/farism/elm-factory.svg)](https://greenkeeper.io/)\n\nAn all-in-one, zero-configuration CLI tool for developing, building, and deploying Elm applications. Don't worry about tooling and just code!\n\n### About\n\nElm is an awesome language. It has a lot of great individual tooling. However, using them all together in some type of workflow can be a bit tedious. On top of that, some of the tools (e.g. `elm-reactor`) lack some basic features that would make them into more full-fledged developer tools.\n\nThis is where `Elm Factory` comes in. One of the goals of this project was to not deviate too much from the existing elm tooling ecoystem. It is essentially a CLI tool that is a thin wrapper over a few core libraries while exposing additional functionality, and with only a few basic commands:\n\n- `init` to scaffold new Elm projects\n- `dev` to start up an express server to proxy elm-reactor\n- `build` to create cache-busted and minified production builds\n\n### Features\n- Custom html templates with elm-reactor\n- Stylesheet management via elm-css\n- CSS injection with livereload\n- Define custom proxy endpoints\n- Production mode builds with cache-busting\n\n### Getting Started\n\n```sh\n# Installation\n\nyarn global add elm-factory\nnpm install -g elm-factory\n\n# Create a new project\n\nelm-factory init my-app \u0026\u0026 cd my-app\n\n# Start the elm-factory dev server\n\nelm-factory dev --port=3000 --template=index.dev.hbs\n\n# Build the project for production\n\nelm-factory build --output-path=dist --template=index.prod.hbs\n```\n\nPlease see the [cli usage](https://github.com/farism/elm-factory/blob/master/guides/cli-usage.md) for a full list of options\n\n\n### Configuration\n\nProject configuration is available through an `.elmfactoryrc` or `.elmfactoryrc.json` file:\n\n```json\n{\n  \"main\": \"src/MyApp.elm\",\n  \"build\": {\n    \"html\": \"index.prod.hbs\"\n  },\n  \"dev\": {\n    \"port\": 3000,\n    \"html\": \"index.dev.hbs\"\n  }\n}\n```\n\nPlease see the [configuration page](https://github.com/farism/elm-factory/blob/master/guides/configuration.md) for a full list of options\n\n### Underlying Packages\n\n- `elm-reactor` for on-the-fly compilation\n- `browser-sync` for proxying and livereload\n- `find-elm-dependencies` for dev mode watching\n- `node-elm-compiler` for compiling production builds\n- `elm-css` for managing stylesheets and extracting css assets\n- `gulp` for orchestrating CLI tasks\n- `postcss` for css processing and minification\n- `uglifyjs` for js minification\n\n### Contributing\n\nIdeas and code contributions are welcome! In lieu of a styleguide, this project uses [prettier](https://github.com/prettier/prettier), [husky](https://github.com/typicode/husky), and [lint-staged](https://github.com/okonet/lint-staged) to maintain code style. If you have any questions, just ask.\n\n### Related projects\n- [elm-live](https://github.com/tomekwi/elm-live)\n- [elm-webpack-loader](https://github.com/elm-community/elm-webpack-loader)\n- [elm-webpack-starter](https://github.com/jiwhiz/elm-bootstrap-webpack-starter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarism%2Felm-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarism%2Felm-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarism%2Felm-factory/lists"}