My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

Web Resource Optimizer for Java

Free and Open Source Java project which brings together almost all the modern web tools: JsHint, CssLint, JsMin, Google Closure compressor, YUI Compressor, UglifyJs, Dojo Shrinksafe, Css Variables Support, JSON Compression, Less, Sass, CoffeeScript and much more. In the same time, the aim is to keep it as simple as possible and as extensible as possible in order to be easily adapted to application specific needs.
Easily improve your web application loading time. Keep project web resources (js & css) well organized, merge & minify them at run-time (using a simple filter) or build-time (using maven plugin) and has a dozen of features you may find useful when dealing with web resources.

Code samples

Resource resource = Resource.valueOf("script.coffee", ResourceType.JS);
Reader reader = new FileReader("path/to/script.coffee");
Writer writer = new FileWriter("path/to/script.js");

//Transforming a coffee script file into a javascript file
new CoffeeScriptProcessor().process(resource, reader, writer);

//Using UglifyJs 
new UglifyJsProcessor().process(resource, reader, writer);

//Using BeautifyJs 
new BeautifyJsProcessor().process(resource, reader, writer);

//Using Less 
new LessCssProcessor().process(resource, reader, writer);

//Using Sass 
new SassCssProcessor().process(resource, reader, writer);

Read more about how processors can be reused by your application.

Latest News

20 February 2012 - A new stable release (wro4j-1.4.4) is ready. For a complete list of issues, see: Issues page or Visit ReleaseNotes page.


Docs


Community

  • Easily report problems to @wro4j on twitter.
  • Fork or follow wro4j on github
  • Ask general questions, provide feedback to the team on our public mailing list.
    • In order to avoid spam, your messages will be moderated.
    • If you want to skip moderation, become the member of the group.
  • Use Google Moderator to ask questions, add suggestions or ideas for improvement.

Issues

http://code.google.com/p/wro4j/issues/list Search for existing issues, add a comment about your problem, and star the issue to vote for it. Click the 'New issue' link to create a new issue.


Want to contribute?

  • Fork the project on Github. Note: the main development is performed on github (google code source is synced not very often).
  • Wandering what to work on? See task/bug list and pick up something you would like to work on.
  • Create an issue or fix one from issues list. Before starting to commit, take a look on WorkingWithGit wiki page.
  • If you know the answer to a question posted to our mailing list - don't hesitate to write a reply.
  • Share your ideas or ask questions on mailing list - that helps us improve javadocs/FAQ.
  • If you miss a particular feature - browse or ask on the mailing list, show us a sample code and describe the problem.
  • Write a blog post about how you use or extend wro4j.
  • Please suggest changes to javadoc/exception messages when you find something unclear.
  • If you have problems with documentation, find it non intuitive or hard to follow - let us know about it, we'll try to make it better according to your suggestions. Any constructive critique is greatly appreciated. Don't forget that this is an open source project developed and documented in spare time.
Powered by Google Project Hosting