Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

middleman #42

Closed
francescoagati opened this issue Apr 2, 2012 · 5 comments
Closed

middleman #42

francescoagati opened this issue Apr 2, 2012 · 5 comments

Comments

@francescoagati
Copy link

middleman use sprocket for building. Is compatible this gem with middleman?

@jwhitley
Copy link
Owner

jwhitley commented Apr 2, 2012

No, because until very recently Sprockets had no native build system to integrate with. The Rails Asset Pipeline build code is part of Rails, not part of Sprockets.

@jwhitley jwhitley closed this as completed Apr 2, 2012
@jwhitley
Copy link
Owner

jwhitley commented Apr 2, 2012

Correction: requirejs-rails will put require.js and order.js on the asset pipeline Javascript path; that may work with Middleman + Sprockets, depending on how Middleman configures Sprockets. It's worth giving a try. As I mentioned, the build rake task won't be useful.

@francescoagati
Copy link
Author

i will try with a repository test.
Thanks

@jwhitley
Copy link
Owner

jwhitley commented Apr 5, 2012

@francescoagati I've been looking over Middleman, and would be curious to know how requirejs-rails works with it. I'm considering Middleman and some other tools for static site generation, and so may end up wanting good RequireJS support in Middleman myself.

@ghost
Copy link

ghost commented Aug 15, 2013

Just wondering if anything ever came of this. I'm curious to see this come through!

I just tried to install requirejs-rails in my latest Middleman project but it failed on requirements:

Bundler could not find compatible versions for gem "rack":
  In Gemfile:
    requirejs-rails (>= 0) ruby depends on
      rack (~> 1.4.5) ruby

    middleman (~> 3.1.4) ruby depends on
      rack (1.5.2)

Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    requirejs-rails (>= 0) ruby depends on
      activesupport (= 3.1.1) ruby

    middleman (~> 3.1.4) ruby depends on
      activesupport (3.2.14)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants