This is an automated email from the ASF dual-hosted git repository.

hanahmily pushed a commit to branch feature/5.0.0
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-ui.git


The following commit(s) were added to refs/heads/feature/5.0.0 by this push:
     new 43338d7  Add package script
43338d7 is described below

commit 43338d7d470c89971820d759d0da55633f0f7317
Author: hanahmily <[email protected]>
AuthorDate: Thu Feb 8 11:49:33 2018 +0800

    Add package script
---
 pom.xml                                            | 53 ++++++++++++++++++++++
 src/main/frontend/.gitignore                       |  1 +
 .../additional-spring-configuration-metadata.json  |  8 ----
 3 files changed, 54 insertions(+), 8 deletions(-)

diff --git a/pom.xml b/pom.xml
index 71b8b54..cfc23cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -101,6 +101,9 @@
 
     <build>
         <finalName>skywalking-web</finalName>
+        <resources>
+
+        </resources>
         <plugins>
             <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
@@ -111,12 +114,62 @@
                 </configuration>
             </plugin>
             <plugin>
+                <groupId>com.github.eirslett</groupId>
+                <artifactId>frontend-maven-plugin</artifactId>
+                <version>1.6</version>
+                <configuration>
+                    <workingDirectory>src/main/frontend</workingDirectory>
+                    <nodeVersion>v8.9.4</nodeVersion>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>install node and npm</id>
+                        <goals>
+                            <goal>install-node-and-npm</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>npm install</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <configuration>
+                            <arguments>install</arguments>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>npm run build</id>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <configuration>
+                            <arguments>run build</arguments>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-resources-plugin</artifactId>
                 <configuration>
                     <encoding>${project.build.sourceEncoding}</encoding>
+                    
<outputDirectory>${project.build.directory}</outputDirectory>
+                    <resources>
+                        <resource>
+                            
<targetPath>${basedir}/target/classes/public</targetPath>
+                            <directory>src/main/frontend/dist</directory>
+                        </resource>
+                        <resource>
+                            <targetPath>${basedir}/target/classes</targetPath>
+                            <directory>src/main/resources</directory>
+                        </resource>
+                    </resources>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
         </plugins>
     </build>
 </project>
diff --git a/src/main/frontend/.gitignore b/src/main/frontend/.gitignore
index c03ea9a..2af4ed6 100755
--- a/src/main/frontend/.gitignore
+++ b/src/main/frontend/.gitignore
@@ -13,3 +13,4 @@
 npm-debug.log*
 
 /coverage
+/node
diff --git 
a/src/main/resources/META-INF/additional-spring-configuration-metadata.json 
b/src/main/resources/META-INF/additional-spring-configuration-metadata.json
deleted file mode 100644
index 255fd5a..0000000
--- a/src/main/resources/META-INF/additional-spring-configuration-metadata.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
-  "properties": [
-    {
-      "name": "collector.servers",
-      "type": "java.lang.String[]",
-      "description": "Description for collector.servers."
-  }
-] }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to