Maven Javascript Compiler Plugin

The organisation-level parent for all Aetheric Engineering modules.

Лицензия

Лицензия

Категории

Категории

JavaScript Языки программирования Maven Компиляция и сборка
Группа

Группа

nz.co.aetheric.maven
Идентификатор

Идентификатор

plugin-compiler-javascript
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

Maven Javascript Compiler Plugin
The organisation-level parent for all Aetheric Engineering modules.
Ссылка на сайт

Ссылка на сайт

https://github.com/aetheric/maven-plugin-compiler-javascript
Система контроля версий

Система контроля версий

https://github.com/aetheric/maven-plugin-compiler-javascript.git

Скачать plugin-compiler-javascript

Как подключить последнюю версию

<plugin>
    <groupId>nz.co.aetheric.maven</groupId>
    <artifactId>plugin-compiler-javascript</artifactId>
    <version>1.1.0</version>
</plugin>

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-core jar 3.2.1
org.apache.maven : maven-plugin-api jar 3.2.1
com.google.javascript : closure-compiler jar v20140508

provided (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3

test (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.shared : maven-plugin-testing-harness jar 1.1

Модули Проекта

Данный проект не имеет модулей.

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.

nz.co.aetheric.maven

Aetheric Engineering

Версии библиотеки

Версия
1.1.0