Code Monkey home page Code Monkey logo

grails-resources's People

Contributors

arturgajowy avatar beckje01 avatar burtbeckwith avatar cmagnuson avatar davydotcom avatar graemerocher avatar halfbaked avatar herwix avatar houbie avatar jakubnabrdalik avatar kgeis avatar ldaley avatar lhotari avatar marcpalmer avatar matthurne avatar mauk81 avatar mckenfra avatar mgotink avatar michaelcameron avatar pjungermann avatar puneetbehl avatar robfletcher avatar savcha avatar saw303 avatar seanparmelee avatar spoonman avatar tednaleid avatar tomaslin avatar topr avatar verglor 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  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

grails-resources's Issues

JS Bundler - bundling js files without trailing semicolon cause js error

I'm working on twitter-bootstrap plugin. I notice a problem with some javascript files which has no trailing semicolon at the end. It works fine when browser loads files separately, but when bundled to one file produce not valid javascript code.
It can be handled by adding semicolon (;) at the end of every js file to be included or bundler process can add semicolon. Second solution I think is cleaner, because doesn't require to change js files. What do you think about it?

Thanks,
Karol

Resources Plugin is not working in Grails 3.2.4

Steps to Reproduce

I have installed runtime "org.grails.plugins:resources:1.2.14"
I have created ApplicationResources.groovy inside config directory with a module
I have given <r:require modules="moduleName"/> in a gsp

Expected Behaviour

It should load the static resources

Actual Behaviour

Nothing is happening

Environment Information

Operating System: Mac OS
Grails Version: 3.2.5
JDK Version: 1.7
Container Version (If Applicable): TODO

String index out of range

Some script is accessing /static/css/ on my Grails application. That results in a "String index out of range" exception:

Message: String index out of range: 6
    Line | Method
->> 1963 | substring                in java.lang.String
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    570 | makeFileForURI           in org.grails.plugin.resource.ResourceProcessor
|    262 | beginPrepare . . . . . . in org.grails.plugin.resource.ResourceMeta

Version 1.2.14

ignore commented out css

I have the following code commented out in one of my css files :

/* .acLoading { background : url('indicator.gif') right center no-repeat; }*/

and getting the following errors:

[main] ERROR resource.ResourceMeta - While processing /bundle-bundle_css_head.css, /css/reset.css, /css/bleep.css, /css/nav.css, /css/modules.css, /css/track_list.css, /css/player.css, /css/jgrowl.css, a resource was required but not found: /css/indicator.gif [main] WARN util.ResourceMetaStore - Cannot locate resource [/css/indicator.gif] [main] WARN mapper.cssrewriter - Cannot resolve CSS resource, leaving link as is: resource:/css/indicator.gif

is bug? commented out css should be ignored? ..

Resources doesn't play nicely with jquery plugin configs

I was trying to use resources plugin with the latest version of JQuery.

On the plain JQuery plugin I could do that:

jquery {
sources = 'jquery' // Holds the value where to store jQuery-js files /web-app/js/
version = '1.6.4' // The jQuery version in use
}

And the JQuery tag would know how to find that in my own /js/jquery/ directory.
<g:javascript library="jquery" />

I don't want to update the plugin jquery version on the plugin directory, but the resources plugin can't find the .js on my dir. It keeps giving me this exception:

java.lang.IllegalArgumentException: Module [jquery] depends on resource [/plugins/jquery-1.6.1.1/js/jquery/jquery-1.6.4.min.js] but the file cannot be found

I tried to find where to fix that so I could provide a pull request or something like that, but I couldn't. so far. Any help where to find that or maybe you guys could fix that either. :)

Thanks by the way for the great plugin.

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.