Migrate to minify-maven-plugin and Google Closure Compiler.
This commit is contained in:
1 parent
25248ede66
commit
6c00d8428c
14 files changed
+29
-21
No files matched your search
+24
-18
@@ -72,31 +72,37 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Combine all .js into single aggregate -->
|
||||
<!-- JS/CSS Minification Plugin -->
|
||||
<plugin>
|
||||
<groupId>net.alchim31.maven</groupId>
|
||||
<artifactId>yuicompressor-maven-plugin</artifactId>
|
||||
<version>1.3.0</version>
|
||||
<groupId>com.samaxes.maven</groupId>
|
||||
<artifactId>minify-maven-plugin</artifactId>
|
||||
<version>1.6.1</version>
|
||||
<executions>
|
||||
<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>
|
||||
<goal>compress</goal>
|
||||
<goal>minify</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</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>
|
||||
|
||||
</plugins>
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
/*! (C) 2014 Glyptodon LLC - glyptodon.org/MIT-LICENSE */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2013 Glyptodon LLC
|
||||
*
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,14 +6,14 @@
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>src/main/resources/modules/</directory>
|
||||
<directory>src/main/webapp/modules/</directory>
|
||||
<includes>
|
||||
<include>*.js</include>
|
||||
</includes>
|
||||
<outputDirectory></outputDirectory>
|
||||
<outputDirectory>modules/</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>target/</directory>
|
||||
<directory>target/${project.name}-${project.version}/</directory>
|
||||
<includes>
|
||||
<include>*.js</include>
|
||||
</includes>
|
||||
|
||||
Reference in new issue
Block a user