Introduce JS unit tests into VID

maven -> npm -> gulp -> jest frameworks added in a mentioned order.

Change-Id: I1865228973eb31188fb052e8c9629f0ac01e48a7
Issue-ID: VID-391
Signed-off-by: Tomasz Golabek <tomasz.golabek@nokia.com>
diff --git a/vid-app-common/pom.xml b/vid-app-common/pom.xml
index 7cd30a2..1ea0691 100755
--- a/vid-app-common/pom.xml
+++ b/vid-app-common/pom.xml
@@ -37,6 +37,9 @@
         <kotlin.version>1.3.11</kotlin.version>
         <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
 
+        <eirslett.version>1.6</eirslett.version>
+        <node.version>v6.16.0</node.version>
+
     </properties>
 
 
@@ -158,6 +161,34 @@
             </plugin>
 
             <plugin>
+                <groupId>com.github.eirslett</groupId>
+                <artifactId>frontend-maven-plugin</artifactId>
+                <version>${eirslett.version}</version>
+                <executions>
+                    <execution>
+                        <id>install node and npm</id>
+                        <goals>
+                            <goal>install-node-and-npm</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                        <configuration>
+                            <nodeVersion>${node.version}</nodeVersion>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>npm run-script build</id>
+                        <configuration>
+                            <arguments>run-script build</arguments>
+                        </configuration>
+                        <goals>
+                            <goal>npm</goal>
+                        </goals>
+                        <phase>generate-resources</phase>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.5.1</version>