Building from source without Rails #208

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

Comments

Projects
None yet
3 participants

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.

Owner

jejacks0n commented Apr 13, 2012

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

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 closed this Apr 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment