mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +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/META-INF/ | ||||||
|  | src/main/webapp/generated/ | ||||||
| target/ | target/ | ||||||
| *~ | *~ | ||||||
|   | |||||||
| @@ -97,6 +97,27 @@ | |||||||
|                 </executions> |                 </executions> | ||||||
|             </plugin> |             </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 --> |             <!-- JS/CSS Minification Plugin --> | ||||||
|             <plugin> |             <plugin> | ||||||
|                 <groupId>com.samaxes.maven</groupId> |                 <groupId>com.samaxes.maven</groupId> | ||||||
| @@ -146,6 +167,7 @@ | |||||||
|  |  | ||||||
|                             <jsSourceIncludes> |                             <jsSourceIncludes> | ||||||
|                                 <jsSourceInclude>app/**/*.js</jsSourceInclude> |                                 <jsSourceInclude>app/**/*.js</jsSourceInclude> | ||||||
|  |                                 <jsSourceInclude>generated/**/*.js</jsSourceInclude> | ||||||
|                             </jsSourceIncludes> |                             </jsSourceIncludes> | ||||||
|  |  | ||||||
|                             <!-- Do not minify and include tests --> |                             <!-- Do not minify and include tests --> | ||||||
|   | |||||||
| @@ -35,5 +35,6 @@ angular.module('index', [ | |||||||
|     'notification', |     'notification', | ||||||
|     'pascalprecht.translate', |     'pascalprecht.translate', | ||||||
|     'rest', |     'rest', | ||||||
|     'settings' |     'settings', | ||||||
|  |     'templates-main' | ||||||
| ]); | ]); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user