Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building from source without Rails #208

Closed
ajt opened this issue Apr 13, 2012 · 2 comments
Closed

Building from source without Rails #208

ajt opened this issue Apr 13, 2012 · 2 comments

Comments

@ajt
Copy link

ajt commented Apr 13, 2012

Is there a way to easily rebuild the .js files for mercury from the coffeescript files without using rails? I wasn't sure if rails was a requirement or not. I have tried to compile vendor/assets/javascripts/mercury using coffeescript but got many errors.

@jejacks0n
Copy link
Owner

Yup, there's a rake task in the project. You should be able to clone or fork it, set up the project with your standard rvm/bundler setup, and then build it..

rake mercury:build

Then you can take the files in /public and use them as your static (or static and minified) javascripts and css.

It's setup that way so that if you want to make changes, you can test them (with the javascript specs that are included) and then either vender that as your gem, or build and import js / css files manually into your project.


Jeremy Jackson
http://github.com/jejacks0n

On Apr 13, 2012, at 1:09 PM, ajt wrote:

Is there a way to easily rebuild the .js files for mercury from the coffeescript files without using rails? I wasn't sure if rails was a requirement or not. I have tried to compile vendor/assets/javascripts/mercury using coffeescript but got many errors.


Reply to this email directly or view it on GitHub:
#208

@gvarela
Copy link
Collaborator

gvarela commented Apr 17, 2012

To be clear Mercury is built using the Rails / Sprockets asset pipeline. So, it is difficult to build it without that. But, as Jeremy stated it can be built and used outside of rails.

@gvarela gvarela closed this as completed Apr 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants