JS backend: maven projects: extract library js-files to target/js/lib, set scope=test for stdlib in browser-example*

This commit is contained in:
Michael Nedzelsky
2014-12-01 19:07:15 +03:00
parent 85a16c3c51
commit b71101942e
7 changed files with 21 additions and 47 deletions
+8 -14
View File
@@ -17,11 +17,17 @@
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<artifactId>kotlin-js-library</artifactId>
<version>${project.version}</version>
</dependency>
<!-- testing -->
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
@@ -34,11 +40,6 @@
<version>${selenium.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-js-library</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
@@ -58,13 +59,6 @@
<goal>js</goal>
</goals>
</execution>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compile</id>
<phase>test-compile</phase>
@@ -91,7 +85,7 @@
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-js-library</artifactId>
<version>${project.version}</version>
<outputDirectory>${project.build.directory}/js</outputDirectory>
<outputDirectory>${project.build.directory}/js/lib</outputDirectory>
<includes>*.js</includes>
</artifactItem>
</artifactItems>
@@ -9,7 +9,7 @@
</div>
<script type="text/javascript" src="src/js/jquery.js"></script>
<script src="target/js/kotlin.js"></script>
<script src="target/js/lib/kotlin.js"></script>
<script type="text/javascript" src="target/js/browser-example.js"></script>
<!--