UNPKG

generator-prospa

Version:

Create fully working Single Page Applications using various technology combinations

39 lines (38 loc) 1.81 kB
<plugin> <groupId>com.github.eirslett</groupId> <artifactId>frontend-maven-plugin</artifactId> <version>${frontend-maven-plugin.version}</version> <configuration> <nodeVersion>${node.version}</nodeVersion> <yarnVersion>${yarn.version}</yarnVersion> <workingDirectory>${frontend.app.dir}</workingDirectory> <installDirectory>${project.build.directory}</installDirectory> </configuration> <executions> <execution> <id>install-frontend-tools</id> <goals> <goal>install-node-and-<%= frontEndPackageTool %></goal> </goals> </execution> <execution> <id><%= frontEndPackageTool %>-install</id> <goals> <goal><%= frontEndPackageTool %></goal> </goals> <configuration> <arguments>install</arguments> </configuration> </execution> <execution> <id>build-frontend</id> <goals> <goal><%= frontEndPackageTool %></goal> </goals> <phase>prepare-package</phase> <configuration> <arguments><% if (frontEndPackageTool === 'npm') { %>run <%}%>build</arguments> </configuration> </execution> </executions> </plugin>