For Java, there is something like Sprocket

Sprocket is a Ruby library for managing JavaScript dependencies. This allows you to declare dependencies in specially formatted comments in JavaScript files and have all the necessary files on the server side. (Read more here: http://getsprockets.org/ )

Where I work, we have a real need for such a structure, but it should be in the form of a Java library.

Is there such a thing? What other solutions did you use to manage your JavaScript dependencies?

+5
source share
6 answers

You can also use juicer to combine javascript files, although it is also written in ruby.
Another option that I think will suit you is using the combiner of Nikolai K. Zakas, if you do not need all the functions of a juicer and an asterisk. It is quite simple, written in java ( .jar ), and the source can be found in the author repository . You can also branch out the source to customize it according to your needs.

+2
source

You might look at webutilities .

+3
source

Wicket. - Java, .

Wicket (, Javascript, CSS ..) , .

+2

, -, JAWR!

+1

java- jruby. . , . , Servlet-3.0 web.xml, -- --, jruby runtime sprockets, .

: https://github.com/benmmurphy/java_sprockets

0

Yes, it exists and is even richer in functionality https://github.com/QubitProducts/miniMerge .

Ii is also very fast and very small (a few kilobytes)! All you need is java.

I use it in my projects, this is not only for JS, I use it also with CSS and HTML.

The great thing is that you can specify a file or directory as input content and tag-based filtering!

0
source

All Articles