08. 스프링 (Spring ) - 메이븐 (Maven) 을 이용한 NPM Install, Run Build
<plugin>
<groupId>org.codehaus.mojo</groupId> <!-- 그룹 아이디 -->
<artifactId>exec-maven-plugin</artifactId> <!-- 플러그인명 -->
<version>1.6.0</version> <-- 버전 -->
<executions> <-- 실행 --->
<execution> <-- NPM Install -->
<id>font-end install</id>
<goals>
<goal>exec</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution> <-- NPM Run -->
<id>font-end unit test</id>
<goals>
<goal>exec</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>test:unit</argument>
</arguments>
</configuration>
</execution>
<execution> <!-- NPM Build -->
<id>font-end build package</id>
<goals>
<goal>exec</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>build</argument>
</arguments>
</configuration>
</execution>
<execution> <!-- e2e Test -->
<id>front-end e2e test</id>
<goals>
<goal>exec</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<executable>npm</executable>
<arguments>
<argument>run</argument>
<argument>test:integration</argument>
</arguments>
</configuration>
</execution>
</executions>
<configuration>
<workingDirectory>${basedir}/front-end</workingDirectory> <!-- 프론트 엔드 경로 -->
</configuration>
</plugin>
'10. Spring > 기초' 카테고리의 다른 글
02. 스프링 (Spring) - application.properties (0) | 2020.08.27 |
---|---|
00. Spring (스프링) 시작 전 (0) | 2020.06.09 |
댓글
이 글 공유하기
다른 글
-
02. 스프링 (Spring) - application.properties
02. 스프링 (Spring) - application.properties
2020.08.27 -
00. Spring (스프링) 시작 전
00. Spring (스프링) 시작 전
2020.06.09