This looks good. I'm looking forward to contributing. If we can produce a unified view on how to develop js I don't see any reason not to adopt this.
Rich -----Original Message----- From: nicolas de loof [mailto:[EMAIL PROTECTED] Sent: 01 October 2007 06:10 To: Maven Users List Subject: Re: Using maven for JavaScript projects I've created a wiki entry (http://hammerfest.wiki.sourceforge.net/mavan-javascript-tools) to resume the ideas exposed in this thread. please be nice and don't blame me for my ugly english ;-) (any native english reader is welcome to fix my linguistics errors) Nico 2007/9/27, Adam Altemus <[EMAIL PROTECTED]>: > Hey all, > > Sorry for coming into this discussion late. If anyone wants to use anything > from our JavaScript plugin, feel free to help yourself. It can be found at > http://ossi.mobilvox.com/maven-js-plugin or > http://sf.net/projects/maven-js-plugin We're using a modded version of > JsMin, which has shown a higher compression ratio than DOJO's Shrinksafe. > Also, we put in a few other features to customize the compression and what > can be done with it. > > I'd like to contribute more to > this but, time "is not on my side" so to speak right now. This is > definitely cool stuff though. > > Thanks, > > Adam > http://www.mobilvox.com > > On 9/27/07, Harlan Iverson <[EMAIL PROTECTED]> wrote: > > > > Yea, definitely alright and encouraged :) The first project is GPL soon to > > be LGPL, but the POM I'd consider to be whatever Selenium is since I > > mostly > > took my executions from there; and the second is MIT. > > > > Harlan > > > > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote: > > > > > > Thanks a lot for those links, i'll take a look tomorow. > > > > > > Is it ok with you that I pick up code and/or ideas from this projects > > > ? I didn't found a License notice on the first one. The second one is > > > MIT-licensed, not sure if I can get code an re-package it under apache > > > license ? > > > > > > Nico. > > > > > > 2007/9/27, Harlan Iverson <[EMAIL PROTECTED]>: > > > > It looks like there is a good array of tools coming to light from this > > > > thread. I, myself, have been tackling the problem of making JS library > > > > development more like Java development, as far as automated running of > > > unit > > > > tests, documentation, packaging, etc, in recent months. > > > > > > > > I see a growing demand for a nice tool chain of things like jslint, > > > > shrinksafe, jsunit + jscoverage, selenium, jsdoc, and dependency > > > management. > > > > Maybe it's because I just came back to JS after several years with a > > > bunch > > > > of Java development under my belt; but I see all these tools and feel > > > like > > > > they should be integrated. Especially when I make the connection > > between > > > > web2.0 and people who promote Agile development practice. JS tools are > > > > hardly in the state to accommodate good Agile, IMO. If integration > > were > > > > better, it would be a different story. > > > > > > > > My original approach was to create an Ant script that would download > > > various > > > > things using the <get> task, and use Maven Antlib for JSUnit, Selenium > > > and > > > > ShrinkSafe dependencies. But now I am getting to the point where I > > want > > > to > > > > break my library into multiple parts (project-core, project-ext, > > > > project-ext-gui, etc) and Maven seems like the natural answer. And of > > > course > > > > when Maven comes into the picture, I want to manage my other JS > > > dependencies > > > > as such. > > > > > > > > So last night I gave it a shot, and it seems to work well using war > > > > packaging and their built-in overlay behavior. There are a few kinks > > to > > > work > > > > out, and probably Mojos to write, but I think it will work. > > > > > > > > My immediate need is for JSUnit, which I have hacked into a series of > > > > executions (see pom link below). I'll definitely be looking at some of > > > these > > > > tools and seeing how I can use them (namely the ShrinkSafe mojo!), and > > > > hopefully getting a JSUnit mojo out of them at the very least. I've > > > never > > > > written a plugin (beyond hello world), but I'm eager to give it a > > shot. > > > > > > > > I have high hopes that Maven can bring the state of JS development up > > to > > > par > > > > with the Agile way that so many web2.0 people want to develop. I'm > > > looking > > > > forward to hearing more of everyone's great ideas! > > > > > > > > Harlan > > > > > > > > ps. > > > > Here's my main POM with JSUnit (in-progress proof of concept, by no > > > means a > > > > final product). The executions for JSUnit are basically a copy of > > > > Selenium's: > > > > http://soashable.googlecode.com/svn/xmpp4js/branches/maven/pom.xml > > > > > > > > And here's my old Ant script "JSLibBuilder": > > > > http://soashable.googlecode.com/svn/jslibbuilder/trunk/ > > > > > > > > > > > > On 9/27/07, nicolas de loof <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I myself make test based on scriptaculous and prototype. I'm not > > > > > developer on this project so this is only a proof-of-concept. > > > > > Prototype is based on multiple simple js files and requires some > > > > > packaging, so maven fits naturally. scriptaculous has a dependency > > on > > > > > prototype, so it's a good example for js dependencies. > > > > > > > > > > I'll soon setup a sample project to demonstrate building prototype > > > > > using my plugin... > > > > > > > > > > > > > > > I just added some initial (not yet working...) support for jsDoc in > > my > > > > > plugin. > > > > > You can checkout > > > > > > > > > > > > > > > https://hammerfest.svn.sourceforge.net/svnroot/hammerfest/maven-javascri pt-plugin/trunk/ > > > > > > > > > > I never saw any quality-metric tool for javascript. jslinker could > > be > > > > > a very interesting contrib for this purpose. I also never wrote a > > > > > report-Mojo, so cannot help much on that side... > > > > > > > > > > > > > > > 2007/9/27, Richard Chamberlain < [EMAIL PROTECTED]>: > > > > > > Maybe we could create an example dev project (or archetype) that > > > uses > > > > > > these plugins if there isn't one already? It would be a good > > > starting > > > > > > point for people who want to use maven for JavaScript. > > > > > > > > > > > > -----Original Message----- > > > > > > From: nicolas de loof [mailto:[EMAIL PROTECTED] > > > > > > Sent: 27 September 2007 11:51 > > > > > > To: Maven Users List > > > > > > Subject: Re: Using maven for JavaScript projects > > > > > > > > > > > > I just commited a second Mojo that does the merge of multiple js > > > files. > > > > > > > > > > > > With this, a JS projet can be splitted into multiple js files and > > > > > > merged into a main artifact.js > > > > > > The CompressMojo also has been updated to allow attaching a > > > compressed > > > > > > version of the artifact on install/deploy. > > > > > > > > > > > > To Manos : > > > > > > how do you integrate with jsDoc ? AFAIK this is a JS based tool, > > not > > > > > > really simple to invoke from a Java Mojo. Or maybe you use a JS > > Mojo > > > ? > > > > > > > > > > > > Would you like to colaborate on a common javascript plugin ? Would > > > you > > > > > > publish it as part of the Mojo project ? > > > > > > > > > > > > 2007/9/27, nicolas de loof <[EMAIL PROTECTED]>: > > > > > > > That was one goal of my plugin : provide a maven extention to > > > allow > > > > > > > "js" packaging type. > > > > > > > > > > > > > > I proposed for contrib on the mojo dev list but got fiew > > interest. > > > > > > > > > > > > > > My goal is to allow build projects like scriptaculous using > > maven > > > : > > > > > > > dependency on prototype, merging of multiple individual .js, > > > > > > > attachement of compressed version... > > > > > > > > > > > > > > Your help is welcome if you have > > > > > > > - ideas > > > > > > > - experience on JS toolkits and/or maven > > > > > > > - time ! > > > > > > > > > > > > > > Nico. > > > > > > > > > > > > > > > > > > > > > > > > > > > > 2007/9/27, Richard Chamberlain <[EMAIL PROTECTED]>: > > > > > > > > Thanks for that. I'll look into it, have you had any > > experiences > > > > > > with > > > > > > > > dependency management in JavaScript? Our company has a lot of > > > > > > > > JavaScript, some of which are common libraries, shared across > > > > > > projects. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > Richard > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Manos Batsis [mailto:[EMAIL PROTECTED] ] > > > > > > > > Sent: 26 September 2007 12:41 > > > > > > > > To: Maven Users List > > > > > > > > Subject: Re: Using maven for JavaScript projects > > > > > > > > > > > > > > > > > > > > > > > > I've worked with Ross Simpson on a Maven Javascript Tools > > Plugin > > > > > > [1]. > > > > > > > > Currently the plugin has two reporting mojos, for JSDoc > > Toolkit > > > and > > > > > > > > JSLint respectively. We intent to add support for stuff like > > > JSUnit, > > > > > > > > ECMAUnit etc. I just shared the code on CVS two days ago. It > > > needs > > > > > > more > > > > > > > > work but it is usable. > > > > > > > > > > > > > > > > For compression you can use the MobilVox Maven JavaScript > > Plugin > > > > > > [2], > > > > > > > > works great. I use it myself for sarissa. > > > > > > > > > > > > > > > > [1] https://sourceforge.net/projects/mvn-jstools > > > > > > > > [2] https://sourceforge.net/projects/maven-js-plugin > > > > > > > > > > > > > > > > Cheers, > > > > > > > > > > > > > > > > Manos > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > -- > > > > Harlan Iverson > > > > http://blog.devspan.com > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > Harlan Iverson > > http://blog.devspan.com > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]