coffeescript-maven-plugin

Very simple coffeescript maven plugin

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.wpic
ArtifactId

ArtifactId

coffeescript-maven-plugin
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

coffeescript-maven-plugin
Very simple coffeescript maven plugin
Project URL

Project URL

http://github.com/wpic/coffeescript-maven-plugin
Source Code Management

Source Code Management

http://github.com/wpic/coffeescript-maven-plugin

Download coffeescript-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.wpic</groupId>
    <artifactId>coffeescript-maven-plugin</artifactId>
    <version>1.1</version>
</plugin>

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
commons-io : commons-io jar 2.4
com.google.code.maven-play-plugin.com.github.yeungda.jcoffeescript : jcoffeescript jar 1.0

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

Project Modules

There are no modules declared in this project.

Very simple coffeescript maven plugin. It can merges and converts all the coffeescript files into a single file. This plugin use Nashorn engine for Java8 (much faster) also Java5+ fallback. So, use Java8 if you want to boost performance (at least 2 times faster).

Sample usage

<build>
  ...
  <plugins>
     ...
     <plugin>
        <groupId>com.github.wpic</groupId>
        <artifactId>coffeescript-maven-plugin</artifactId>
        <version>1.1</version>
        <configuration>
           <outputFile>${project.build.directory}/${project.artifactId}/js/all.js</outputFile>
        </configuration>
        <executions>
           <execution>
              <phase>compile</phase>
              <goals>
                 <goal>coffeescript</goal>
              </goals>
           </execution>
        </executions>
     </plugin>
     ...
  </plugins>
</build>

Use the last vesion

Snapshots are not available in maven repository, you can find them here.

Parameters

  • inputDir: Source directory contains coffeescript files. src/main/webapp by default.
  • outputDir: Destination directory to save. target/ by default.
  • outputFile: If you set this parameter, all the coffeescripts will merge into the single file (outputDir will be ignore)

History

v1.1

  • Fix throwing exception on compile failure

v1.1-SNAPSHOT

  • Boost performance (Use Nashorn support with Rihno fallback for old version of java)
  • Add filters (Include/Exclude)
  • Fix error handling and more bugs

v1.0

  • First release
com.github.wpic

WPIC Co

Versions

Version
1.1
1.0