mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Migrate to minify-maven-plugin and Google Closure Compiler.
This commit is contained in:
@@ -72,31 +72,37 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<!-- Combine all .js into single aggregate -->
|
<!-- JS/CSS Minification Plugin -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>net.alchim31.maven</groupId>
|
<groupId>com.samaxes.maven</groupId>
|
||||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
<artifactId>minify-maven-plugin</artifactId>
|
||||||
<version>1.3.0</version>
|
<version>1.6.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
<id>default-minify</id>
|
||||||
|
<configuration>
|
||||||
|
|
||||||
|
<charset>UTF-8</charset>
|
||||||
|
<jsEngine>CLOSURE</jsEngine>
|
||||||
|
|
||||||
|
<jsSourceDir>/</jsSourceDir>
|
||||||
|
<jsTargetDir>/</jsTargetDir>
|
||||||
|
<jsFinalFile>guacamole.js</jsFinalFile>
|
||||||
|
|
||||||
|
<jsSourceFiles>
|
||||||
|
<jsSourceFile>common/license.js</jsSourceFile>
|
||||||
|
</jsSourceFiles>
|
||||||
|
|
||||||
|
<jsSourceIncludes>
|
||||||
|
<jsSourceInclude>modules/**/*.js</jsSourceInclude>
|
||||||
|
</jsSourceIncludes>
|
||||||
|
|
||||||
|
</configuration>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>compress</goal>
|
<goal>minify</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
|
||||||
<nosuffix>true</nosuffix>
|
|
||||||
<jswarn>false</jswarn>
|
|
||||||
<aggregations>
|
|
||||||
<aggregation>
|
|
||||||
<output>${project.build.directory}/guacamole.js</output>
|
|
||||||
<includes>
|
|
||||||
<include>${basedir}/src/main/resources/common/license.js</include>
|
|
||||||
<include>**/*.js</include>
|
|
||||||
</includes>
|
|
||||||
</aggregation>
|
|
||||||
</aggregations>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
/*! (C) 2014 Glyptodon LLC - glyptodon.org/MIT-LICENSE */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2013 Glyptodon LLC
|
* Copyright (C) 2013 Glyptodon LLC
|
||||||
*
|
*
|
@@ -6,14 +6,14 @@
|
|||||||
</formats>
|
</formats>
|
||||||
<fileSets>
|
<fileSets>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<directory>src/main/resources/modules/</directory>
|
<directory>src/main/webapp/modules/</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>*.js</include>
|
<include>*.js</include>
|
||||||
</includes>
|
</includes>
|
||||||
<outputDirectory></outputDirectory>
|
<outputDirectory>modules/</outputDirectory>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<directory>target/</directory>
|
<directory>target/${project.name}-${project.version}/</directory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>*.js</include>
|
<include>*.js</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
Reference in New Issue
Block a user