Mojo

proposal : maven javascript plugin

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

Following a recent thread on maven user list, I've created a javascript plugin to help developping in this language.

The plugin provides :

  • javascript dependencies handling
  • assembling javascript librairies from code splitted in multiple tiny source files
  • putting js dependencies in the webapplication scripts folder
  • copy "inplace" javascript dependencies for use with jetty:run or war:inplace
  • compressing webapplication scripts before packaging as a war
  • package a javascript library as a javascript archive (used for js dependencies)
  • attach a compressed version of the javascript archive

Planned :

  • run js tests using jsunit (integrate with surefire ?)
  • suport alternative compression methods (dojo shrinksafe, yahoo compressor...)
  • nicer integration with the war plugin ?
    a reporting plugin :
  • check code with jslint
  • generate jsdoc
  • test coverage with jscoverage

The plugin is available on my sandbox repo :
https://hammerfest.svn.sourceforge.net/svnroot/hammerfest/maven-javascript-plugin/trunk/

The site has been deployed for review, with some early documentation
http://hammerfest.sourceforge.net/maven-javascript-plugin/

The jsmin code (compressor mojo) uses a BSD like license that (AFAIK) is compatible to be redistributed in an apache -licensed project.

Activity

Hide
nicolas de loof added a comment -

Raphaël Piéroni invited me as a commiter to Mojo, so that I can include the plugin and support it.

Thanks to Arnauld Heritier, Carlos Sanchez and John Casey for voting.

Show
nicolas de loof added a comment - Raphaël Piéroni invited me as a commiter to Mojo, so that I can include the plugin and support it. Thanks to Arnauld Heritier, Carlos Sanchez and John Casey for voting.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: