Initial commit

This commit is contained in:
Isaac Parenteau committed 2018-07-07 20:43:51 -05:00
commit 880e39de2e
511 files changed
+38363

No files matched your search

+178
View File
@@ -0,0 +1,178 @@
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.locusworks</groupId>
<artifactId>portal</artifactId>
<version>1.0.0-RELEASE</version>
</parent>
<artifactId>portal_client</artifactId>
<name>Portal Web Client</name>
<packaging>pom</packaging>
<description>The Portal client which houses all the css, html and javascript files for the client. It uses AngularJS 1.x with Angular-Material. Data is sent/received to/from the server via rest requests as json.
Vendor packages are retrieved via yarn and nodejs. They are compiled and injected into the index.html before the whole application is minimized</description>
<properties>
<main.basedir>${project.parent.basedir}</main.basedir>
</properties>
<profiles>
<profile>
<id>webapp_distribution</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.6.1</version>
<configuration>
<filesets>
<fileset>
<directory>dist</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
<fileset>
<directory>app/yarn_components</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.6</version>
<executions>
<!--Install Node and yarn -->
<execution>
<id>install node and yarn</id>
<phase>initialize</phase>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration>
<arguments>set strict-ssl false</arguments>
<nodeVersion>v8.9.4</nodeVersion>
<yarnVersion>v1.3.2</yarnVersion>
</configuration>
</execution>
<!--Run yarn install -->
<execution>
<id>yarn install</id>
<phase>generate-sources</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
</execution>
<execution>
<id>webpack build</id>
<goals>
<goal>webpack</goal>
</goals>
<!-- optional: the default phase is "generate-resources" -->
<phase>generate-sources</phase>
<configuration>
<!-- optional: if not specified, it will run webpack's default build
(and you can remove this whole <configuration> section.) -->
<arguments>-p</arguments>
</configuration>
</execution>
<!-- run grunt build -->
<execution>
<id>grunt build</id>
<phase>compile</phase>
<goals>
<goal>grunt</goal>
</goals>
<configuration>
<arguments>build</arguments>
</configuration>
</execution>
<!-- run grunt tests -->
<execution>
<id>grunt test</id>
<phase>compile</phase>
<goals>
<goal>grunt</goal>
</goals>
<configuration>
<arguments>unitTests</arguments>
</configuration>
</execution>
<!-- run grunt clean -->
<execution>
<id>grunt clean</id>
<phase>compile</phase>
<goals>
<goal>grunt</goal>
</goals>
<configuration>
<arguments>build</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- Cleans out the dist folder for lighting quick server builds and deploys
for development -->
<!-- Must serve client via grunt -->
<profile>
<id>debug</id>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.6.1</version>
<configuration>
<phase>clean</phase>
<filesets>
<fileset>
<directory>dist</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
<executions>
<execution>
<id>delete-dist</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>