Hi Adam,
I want the plugin to be able to work on a directory structure similar
to:
[project root]
src
main
javascript
test
javascript
I want the plugin to also do some compilation of Javascript files that would
include combining specified javascript files together, removing certain
lines (like debugging lines starting with ';;;'), and running them through
some other commandline javascript processing programs (like jsmin, or
jslint).
I was thinking of tagging along with the compile targets to do the combining
of scripts, and removing of debug lines. Then the test targets to run *unit
tests, and programs like jslint. Then tagging along with the package targets
to provide compressed/minified artifacts. And lastly, may making the
documentation targets run jsdoc (or something similar).
Hope that makes sense.
I have been looking through the Groovy, and Scala plugins to see how they
work. I'm not sure what classes I really need, and which ones I don't (Eg.
I'm not sure I need a JavascriptSourceSet, or if I can just specify the
extra source directories?), or if I really need/want to extend from the
JavaPlugin as the Groovy and Scala plugins do.
I haven't gotten this far yet, but I'm assuming the instructions from Walter
are for making the plugin usable via "apply plugin: 'javascript'" vs. "apply
plugin: JavascriptPlugin".
Any help would be greatly appreciated.
Thanks,
Eric
On Sat, Aug 14, 2010 at 10:46 PM, Adam Murdoch <[email protected]> wrote:
> On 13/08/10 10:14 AM, Eric Berry wrote:
>
>> Hello,
>> I hope this is the right list. I've been looking around for a Javascript
>> plugin - similar to the one available for Maven 2. I wasn't able to find one
>> through a simple google search.
>>
>> So, I've started one but I need some help understanding how to hook up my
>> own JavascriptCompiler. I was using the Scala plugin as an example, but
>> couldn't find the ScalaCompiler.class mentioned in the source file.
>>
>>
> What sort of things do you want the plugin/task to do? The Scala plugin
> might not necessarily be the best example.
>
>
>
> --
> Adam Murdoch
> Gradle Developer
> http://www.gradle.org
> CTO, Gradle Inc. - Gradle Training, Support, Consulting
> http://www.gradle.biz
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
Learn from the past. Live in the present. Plan for the future.
Blog: http://www.townsfolkdesigns.com/blogs/elberry
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans