https://github.com/rykov/ember-rails
Build Ember CLI app into a Rails Asset
https://github.com/rykov/ember-rails
ember ember-cli rails rubygem
Last synced: over 1 year ago
JSON representation
Build Ember CLI app into a Rails Asset
- Host: GitHub
- URL: https://github.com/rykov/ember-rails
- Owner: rykov
- License: mit
- Created: 2015-08-20T15:41:45.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2024-07-08T03:21:07.000Z (almost 2 years ago)
- Last Synced: 2025-02-20T14:51:36.560Z (over 1 year ago)
- Topics: ember, ember-cli, rails, rubygem
- Language: JavaScript
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rails Asset Wrapper for Ember CLI apps
[](https://badge.fury.io/js/ember-cli-rails)
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.
## Demo
This package was used to deploy the landing page on [Version Badge](https://badge.fury.io/)
## Getting started
If you are using Ember CLI, simply install `ember-cli-rails` as a dev dependency of your
application's `package.json`:
```bash
npm install ember-cli-rails --save-dev
```
## Usage
Once `ember-cli-rails` is a dependency, just run your build as usual:
```bash
ember build --environment=production
```
The RubyGem will be built into the `dist` directory with the name `ember-rails-`
matching the name and version you have specified in `package.json`
You can then distribute this package [privately](https://gemfury.com) or
[publicly](https://rubygems.org) and include it in your Rails app's Gemfile:
```ruby
gem 'ember-rails-app-name'
```
The generated assets are now available to your Rails pages:
```erb
<%= 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' %>
```
## Contribution and Improvements
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.
### Submitting updates
If you would like to contribute to this project, just do the following:
1. Fork the repo on Github.
2. Add your features and make commits to your forked repo.
3. Make a pull request to this repo.
4. Review will be done and changes will be requested.
5. Once changes are done or no changes are required, pull request will be merged.
6. The next release will have your changes in it.
Please take a look at the issues page if you want to get started.