Skip to content

aetheric/maven-plugin-compiler-javascript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Maven Javascript Compiler Plugin

Usage Add the following to your maven build plugins.

<plugin>
	<groupId>nz.co.aetheric.maven</groupId>
	<artifactId>plugin-compiler-javascript</artifactId>
	<version>1.1.0</version>
	<configuration>
		<compilation_level>SIMPLE_OPTIMIZATIONS</compilation_level>
		<recursive>true</recursive>
		<suffix>.min.js</suffix>
		<srcDir>${project.basedir}/src/main/javascript</srcDir>
		<outDir>${project.build.outputDirectory}/META-INF/resources/script</outDir>
		<appendVersion>true</appendVersion>
		<version>1.0.0</version>
	</configuration>
</plugin>

As you can see there are 4 parameters to the operation, all of which are optional:

  1. compilation_level is a optional parameter which uses ADVANCED_OPTIMIZATIONS as default.

  2. recursive is whether the file scanner should follow down directories.

  3. suffix is what gets put at the end of the compiled filename.

  4. srcDir is the location of the uncompiled files.

  5. outDir is the location where the compiled files are put.

  6. appendVersion is whether to append the specified version to each output file.

  7. version is used to add a version number to the compiled files.

About

Maven plugin for the Google Closure Compiler

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.9%
  • JavaScript 1.1%