diff --git a/goofy-client/package.json b/goofy-client/package.json index 310f839529508c8157f02fdb810d445bc16042dd..3e4a707edb90b5725194df0d91da67e98e4172e3 100644 --- a/goofy-client/package.json +++ b/goofy-client/package.json @@ -9,6 +9,8 @@ "start": "run-s \"ng -- serve --port 4200 --disable-host-check --proxy-config proxy.conf.json\" --", "build": "ng build", "test": "ng test", + "ci-build": "ng build", + "ci-test": "ng test", "lint": "nx workspace-lint && ng lint", "e2e": "ng e2e", "affected:apps": "nx affected:apps", diff --git a/goofy-client/pom.xml b/goofy-client/pom.xml new file mode 100644 index 0000000000000000000000000000000000000000..eff5d29fe397f4805c80f007c52e5abc18918a43 --- /dev/null +++ b/goofy-client/pom.xml @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <parent> + <groupId>de.itvsh.ozg</groupId> + <artifactId>goofy</artifactId> + <version>0.0.1-SNAPSHOT</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <artifactId>goofy-client</artifactId> + <packaging>pom</packaging> + + <build> + <plugins> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>3.1.0</version> + <configuration> + <filesets> + <fileset> + <directory>dist</directory> + <includes> + <include>*</include> + <include>**/*</include> + </includes> + </fileset> + </filesets> + </configuration> + </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + + <execution> + <id>test-application</id> + <phase>test</phase> + <configuration> + <workingDirectory>./</workingDirectory> + <executable>npm</executable> + <arguments> + <argument>run</argument> + <argument>ci-test</argument> + </arguments> + </configuration> + <goals> + <goal>exec</goal> + </goals> + </execution> + + <execution> + <id>build-application</id> + <phase>compile</phase> + <configuration> + <workingDirectory>./</workingDirectory> + <executable>npm</executable> + <arguments> + <argument>run</argument> + <argument>ci-build</argument> + </arguments> + </configuration> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <activation> + <property> + <name>!skipNpmInstall</name> + </property> + </activation> + <id>npmInstall</id> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>3.0.0</version> + <executions> + <execution> + <id>install-dependencies</id> + <phase>generate-sources</phase> + <configuration> + <workingDirectory>./</workingDirectory> + <executable>npm</executable> + <arguments> + <argument>install</argument> + </arguments> + </configuration> + <goals> + <goal>exec</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project> diff --git a/pom.xml b/pom.xml index 23128e2f238fabba1833e440187d3313f5c8d99a..04146c088f9b509b45c682a1048f1c9cedb14825 100644 --- a/pom.xml +++ b/pom.xml @@ -10,6 +10,7 @@ <packaging>pom</packaging> <modules> + <module>goofy-client</module> <module>goofy-server</module> <module>goofy-api</module> <module>goofy-service</module>