From b71101942e288ddb44a66d9af58ba4901b5e4cc9 Mon Sep 17 00:00:00 2001 From: Michael Nedzelsky Date: Mon, 1 Dec 2014 19:07:15 +0300 Subject: [PATCH] JS backend: maven projects: extract library js-files to target/js/lib, set scope=test for stdlib in browser-example* --- .../browser-example-with-library/pom.xml | 8 +++--- .../browser-example-with-library/sample.html | 4 +-- libraries/examples/browser-example/pom.xml | 22 ++++++---------- .../examples/browser-example/sample.html | 2 +- libraries/tools/kotlin-js-library/pom.xml | 26 +++---------------- libraries/tools/kotlin-js-tests/pom.xml | 2 +- .../kotlin-js-tests/src/test/web/index.html | 4 +-- 7 files changed, 21 insertions(+), 47 deletions(-) diff --git a/libraries/examples/browser-example-with-library/pom.xml b/libraries/examples/browser-example-with-library/pom.xml index 3cbd3741aca..af2afb1ef1b 100644 --- a/libraries/examples/browser-example-with-library/pom.xml +++ b/libraries/examples/browser-example-with-library/pom.xml @@ -26,13 +26,13 @@ ${project.version} + org.jetbrains.kotlin kotlin-stdlib ${project.version} + test - - org.seleniumhq.selenium selenium-java @@ -90,14 +90,14 @@ org.jetbrains.kotlin kotlin-js-library ${project.version} - ${project.build.directory}/js + ${project.build.directory}/js/lib *.js org.jetbrains.kotlin kotlin-js-library-example ${project.version} - ${project.build.directory}/js + ${project.build.directory}/js/lib *.js diff --git a/libraries/examples/browser-example-with-library/sample.html b/libraries/examples/browser-example-with-library/sample.html index 8b9fa333d20..0c3cf97a246 100644 --- a/libraries/examples/browser-example-with-library/sample.html +++ b/libraries/examples/browser-example-with-library/sample.html @@ -9,8 +9,8 @@ - - + + + + org.jetbrains.kotlin + kotlin-stdlib + ${project.version} + test + org.seleniumhq.selenium selenium-java @@ -34,11 +40,6 @@ ${selenium.version} test - - org.jetbrains.kotlin - kotlin-js-library - ${project.version} - @@ -58,13 +59,6 @@ js - - compile - compile - - compile - - test-compile test-compile @@ -91,7 +85,7 @@ org.jetbrains.kotlin kotlin-js-library ${project.version} - ${project.build.directory}/js + ${project.build.directory}/js/lib *.js diff --git a/libraries/examples/browser-example/sample.html b/libraries/examples/browser-example/sample.html index 869440d86c5..f8c59c90eaf 100644 --- a/libraries/examples/browser-example/sample.html +++ b/libraries/examples/browser-example/sample.html @@ -9,7 +9,7 @@ - +