pom.xml 4.14 KB
Newer Older
Colin PUY's avatar
Colin PUY committed
1 2 3 4 5 6 7
<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">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.bonitasoft.web</groupId>
        <artifactId>ui-designer</artifactId>
8
        <version>1.8-SNAPSHOT</version>
Colin PUY's avatar
Colin PUY committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22
    </parent>

    <artifactId>ui-designer-frontend</artifactId>

    <packaging>pom</packaging>

    <build>
        <directory>build</directory>
        <plugins>
            <plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <executions>
                    <execution>
23
                        <id>install node and yarn</id>
Colin PUY's avatar
Colin PUY committed
24
                        <goals>
25
                            <goal>install-node-and-yarn</goal>
Colin PUY's avatar
Colin PUY committed
26 27
                        </goals>
                    </execution>
28
                    <execution>
29
                        <id>yarn install</id>
30
                        <goals>
31
                            <goal>yarn</goal>
32
                        </goals>
33
                        <phase>generate-resources</phase>
34 35 36 37
                        <configuration>
                            <arguments>install</arguments>
                        </configuration>
                    </execution>
Colin PUY's avatar
Colin PUY committed
38
                    <execution>
39
                        <id>yarn build</id>
Colin PUY's avatar
Colin PUY committed
40
                        <goals>
41
                            <goal>yarn</goal>
Colin PUY's avatar
Colin PUY committed
42 43 44 45 46
                        </goals>
                        <phase>generate-resources</phase>
                        <configuration>
                            <arguments>run build</arguments>
                        </configuration>
47 48
                    </execution>
                    <execution>
49
                        <id>yarn test</id>
50
                        <goals>
51
                            <goal>yarn</goal>
52 53 54 55 56
                        </goals>
                        <phase>test</phase>
                        <configuration>
                            <arguments>run test</arguments>
                        </configuration>
Colin PUY's avatar
Colin PUY committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                    <descriptors>
                        <descriptor>assembly.xml</descriptor>
                    </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>make-assembly</id>
                        <phase>package</phase>
                        <goals>
                            <goal>single</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>e2e</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.eirslett</groupId>
                        <artifactId>frontend-maven-plugin</artifactId>
                        <executions>
90
                            <execution>
91
                                <id>install node and yarn</id>
92
                                <goals>
93
                                    <goal>install-node-and-yarn</goal>
94 95
                                </goals>
                            </execution>
Colin PUY's avatar
Colin PUY committed
96 97 98
                            <execution>
                                <id>e2e tests</id>
                                <goals>
99
                                    <goal>yarn</goal>
Colin PUY's avatar
Colin PUY committed
100 101 102
                                </goals>
                                <phase>integration-test</phase>
                                <configuration>
Colin PUY's avatar
Colin PUY committed
103
                                    <arguments>run e2e:headless</arguments>
Colin PUY's avatar
Colin PUY committed
104 105 106 107 108 109 110 111 112
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>