Giter VIP home page Giter VIP logo

closure-sprockets's Introduction

https://metrics.lecoq.io/igrigorik

closure-sprockets's People

Contributors

berthartm avatar dogenpunk avatar egorkhmelev avatar guilleiguaran avatar igrigorik avatar postmodern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

closure-sprockets's Issues

Dependencies script triggers infinite loop

I'm seeing Closure's base.js doing an import of deps.js. This, in turn, seems to trigger a loop, whereby deps.js is being imported infinitely. I can get around it by setting CLOSURE_NO_DEPS to true.

Wondering if you had encountered this? I used your readme example on a bare Rails project.

Namespace all classes

I'm trying to use closure-sprockets outside of Rails and noticed that all classes are defined at the top-level.

Routing error on deps.js

Just trying to set this up on a fairly new project to play with closure.

I'm getting the following routing error...
ActionController::RoutingError (No route matches [GET] "/deps.js")

Looking at the source, the following line is being put into the head after my first call to goog.require()...

<script type="text/javascript" src="deps.js"></script>

I assume this should be routed to something like src="assets/deps.js"; however, I'm not sure what the "right" approach is for this with the asset pipeline and vendor dir.

undefined method `shellescape' for #<Pathname:>

Using Rails 4.1.7, Sprockets 2.11.3 gives this error when running rake assets:precompile. Note: this only happens when using the latest source from github. e.g.

gem "closure-sprockets", :github => "igrigorik/closure-sprockets"

Sprockets::CircularDependencyError

I'm seeing this error only on an OSX install:
"Sprockets::CircularDependencyError
vendor/assets/javascripts/closure-library/closure/goog/base.js has already been required"

Merely including application.js in my layout triggers it. Even if application.js doesn't provide or require anything. As far as I can tell, the OSX installation is exactly the same as my Linux installation, but it's working fine on Linux.

Unexpected token '<' for soyutils.js

Using latest closure-sprockets in my Gemfile via "gem 'closure-sprockets', :git=>'git://github.com/igrigorik/closure-sprockets.git'". Getting "Unexpected token '<'" error on soyutils.js. Appears to be an HTML file instead of JS.

Source maps support

Since closure compiler supports Source Maps, it would be great to have these automatically linked/generated when using the rails asset pipeline.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.