This is an Ember addon to build a Rails Asset wrapper for your Ember application which can then be included as a RubyGem without other dependencies in your Rails application.
This package was used to deploy the landing page on Version Badge
If you are using Ember CLI, simply install ember-cli-rails
as a dev dependency of your
application's package.json
:
npm install ember-cli-rails --save-dev
Once ember-cli-rails
is a dependency, just run your build as usual:
ember build --environment=production
The RubyGem will be built into the dist
directory with the name ember-rails-<app name>
matching the name and version you have specified in package.json
You can then distribute this package privately or publicly and include it in your Rails app's Gemfile:
gem 'ember-rails-app-name'
The generated assets are now available to your Rails pages:
<%= stylesheet_link_tag 'ember-rails-app-name/vendor' %>
<%= stylesheet_link_tag 'ember-rails-app-name/application' %>
...
<%= javascript_include_tag 'ember-rails-app-name/vendor' %>
<%= javascript_include_tag 'ember-rails-app-name/application' %>
Please submit an issue if we've missed some key functionality or you're seeing problems. Better yet, fork the code, make the changes, and submit a pull request to speed things along.
If you would like to contribute to this project, just do the following:
- Fork the repo on Github.
- Add your features and make commits to your forked repo.
- Make a pull request to this repo.
- Review will be done and changes will be requested.
- Once changes are done or no changes are required, pull request will be merged.
- The next release will have your changes in it.
Please take a look at the issues page if you want to get started.