JS: Use the same output paths for JPS and Maven-based builds

#KT-22586 Fixed

Original commit: ae37cc30a1
This commit is contained in:
Alexey Sedunov
2018-03-12 20:53:32 +03:00
parent a4fd51a823
commit 78ee6ba693
10 changed files with 107 additions and 6 deletions
@@ -0,0 +1,16 @@
my_js/
lib/
kotlin.js
kotlin.meta.js
myproject/
root-package.kjsm
myproject.js
myproject.meta.js
my_test-js/
lib/
kotlin.js
kotlin.meta.js
myproject-tests/
root-package.kjsm
myproject-tests.js
myproject-tests.meta.js
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="kotlin-language" name="Kotlin">
<configuration version="3" platform="JavaScript " useProjectSettings="false">
<productionOutputPath>$MODULE_DIR$/target/my_js/myproject.js</productionOutputPath>
<testOutputPath>$MODULE_DIR$/target/my_test-js/myproject-tests.js</testOutputPath>
<compilerSettings />
<compilerArguments>
<option name="sourceMapPrefix" value="" />
<option name="sourceMapEmbedSources" value="inlining" />
<option name="pluginOptions">
<array />
</option>
<option name="pluginClasspaths">
<array />
</option>
</compilerArguments>
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/kotlin" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/kotlin" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="IDEA_JDK" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="kotlinProject" />
</component>
</module>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
</component>
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/kotlinProject.iml" filepath="$PROJECT_DIR$/kotlinProject.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk-15="true" project-jdk-name="IDEA_JDK" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
}
@@ -0,0 +1,3 @@
fun main(args: Array<String>) {
}