mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Merge pull request #154 from glyptodon/html2js
GUAC-1161: Pre-cache Angular templates during build.
This commit is contained in:
1
guacamole/.gitignore
vendored
1
guacamole/.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
src/main/webapp/META-INF/
|
||||
src/main/webapp/generated/
|
||||
target/
|
||||
*~
|
||||
|
@@ -97,6 +97,27 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- Pre-cache Angular templates with maven-angular-plugin -->
|
||||
<plugin>
|
||||
<groupId>com.keithbranton.mojo</groupId>
|
||||
<artifactId>angular-maven-plugin</artifactId>
|
||||
<version>0.3.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
<goals>
|
||||
<goal>html2js</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<sourceDir>${basedir}/src/main/webapp/app/</sourceDir>
|
||||
<include>**/*.html</include>
|
||||
<target>${basedir}/src/main/webapp/generated/templates-main/templates.js</target>
|
||||
<prefix>app</prefix>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!-- JS/CSS Minification Plugin -->
|
||||
<plugin>
|
||||
<groupId>com.samaxes.maven</groupId>
|
||||
@@ -146,6 +167,7 @@
|
||||
|
||||
<jsSourceIncludes>
|
||||
<jsSourceInclude>app/**/*.js</jsSourceInclude>
|
||||
<jsSourceInclude>generated/**/*.js</jsSourceInclude>
|
||||
</jsSourceIncludes>
|
||||
|
||||
<!-- Do not minify and include tests -->
|
||||
|
@@ -35,5 +35,6 @@ angular.module('index', [
|
||||
'notification',
|
||||
'pascalprecht.translate',
|
||||
'rest',
|
||||
'settings'
|
||||
'settings',
|
||||
'templates-main'
|
||||
]);
|
||||
|
Reference in New Issue
Block a user