{"id":13782590,"url":"https://github.com/michaldarda/parcel-rails","last_synced_at":"2025-05-11T16:30:32.885Z","repository":{"id":48893572,"uuid":"120297567","full_name":"michaldarda/parcel-rails","owner":"michaldarda","description":"Integration of Parcel Javascript module bundler with Rails","archived":false,"fork":false,"pushed_at":"2020-05-18T01:56:15.000Z","size":102,"stargazers_count":68,"open_issues_count":6,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T04:18:43.103Z","etag":null,"topics":["javascript","parcel","parcel-bundler","parceljs","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/michaldarda.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-05T11:45:04.000Z","updated_at":"2023-09-19T12:59:09.000Z","dependencies_parsed_at":"2022-09-13T17:51:35.016Z","dependency_job_id":null,"html_url":"https://github.com/michaldarda/parcel-rails","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaldarda%2Fparcel-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaldarda%2Fparcel-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaldarda%2Fparcel-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaldarda%2Fparcel-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaldarda","download_url":"https://codeload.github.com/michaldarda/parcel-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253595469,"owners_count":21933393,"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":["javascript","parcel","parcel-bundler","parceljs","rails","ruby"],"created_at":"2024-08-03T18:01:39.626Z","updated_at":"2025-05-11T16:30:32.582Z","avatar_url":"https://github.com/michaldarda.png","language":"Ruby","funding_links":[],"categories":["Integration with other languages, frameworks"],"sub_categories":["Other"],"readme":"# parcel-rails\n\n[![Gem Version](https://badge.fury.io/rb/parcel-rails.svg)](https://badge.fury.io/rb/parcel-rails)\n[![Maintainability](https://api.codeclimate.com/v1/badges/4b0a3f36a6b1970a88e5/maintainability)](https://codeclimate.com/github/michaldarda/parcel-rails/maintainability)\n[![Build Status](https://travis-ci.org/michaldarda/parcel-rails.svg?branch=master)](https://travis-ci.org/michaldarda/parcel-rails)\n\nGem integrates [parcel](https://parceljs.org/) JS module bundler into your Rails application. It is inspired by gems such as\n[breakfast](https://github.com/devlocker/breakfast) or [webpacker](https://github.com/rails/webpacker).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'parcel-rails'\n```\n\nThen run\n\n    $ bin/rails g parcel\n\n### Development\n\nCurrently `parcel` is not integrated with `rails s` so you need a process manager like [foreman]() to run both `rails s` and `parcel`.\n\nCreate `Procfile.dev`, with the following content:\n\n```\nweb: bin/rails s\nparcel: bin/rails parcel:serve\n```\n\nThen run `foreman start -f Procfile.dev`\n\n### Production\n\nGem hooks up to the `assets:precompile` and `assets:clobber`, so no special setup is required.\n\nYou can start parcel's compilation process manually by running\n\n    rake parcel:compile\n\n### Including in views\n\nUse Rails generic helpers to include assets in your views\n\n    javascript_include_tag '/parcels/application'\n    stylesheet_link_tag '/parcels/application'\n\n### Configuration\n\nAfter running generator, configuration can be found in config/initializers/parcel.rb.\n\n\tconfig.parcel.entry_points = %w(app/javascript/application.js)\n\tconfig.parcel.destination = 'public/parcels'\n\n#### Warning\n\nCurrently only single entry point is supported, it is limitation coming from Parcel itself and not the gem.\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/michaldarda/parcel-rails/blob/master/CHANGELOG.md)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/michaldarda/parcel-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the *parcel-rails* project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/michaldarda/parcel-rails/blob/master/CODE_OF_CONDUCT.md).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaldarda%2Fparcel-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaldarda%2Fparcel-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaldarda%2Fparcel-rails/lists"}