JS: add ant tasks for publishing kotlin-test-js to NPM (KT-19682)
This commit is contained in:
@@ -124,11 +124,24 @@
|
||||
</publish-to-npm>
|
||||
</target>
|
||||
|
||||
<target name="publish-kotlin-test-js-to-npm">
|
||||
<publish-to-npm template="kotlin-test" version="${kotlin.deploy.version}" tag="${kotlin.deploy.tag}">
|
||||
<copy file="${js.stdlib.output.dir}/kotlin-test.js" todir="${package_deploy_dir}" failonerror="true" />
|
||||
<copy file="${js.stdlib.output.dir}/kotlin-test.meta.js" todir="${package_deploy_dir}" failonerror="true" />
|
||||
</publish-to-npm>
|
||||
</target>
|
||||
|
||||
<!-- Used on TeamCity-->
|
||||
<target name="unzip-jslib.jar">
|
||||
<unzip src="${output}/kotlinc/lib/kotlin-stdlib-js.jar" dest="${js.stdlib.output.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- Used on TeamCity-->
|
||||
<target name="unzip-test-jslib.jar">
|
||||
<unzip src="${output}/kotlinc/lib/kotlin-test-js.jar" dest="${js.stdlib.output.dir}"/>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="run-nodejs-tests" description="Run JS backend tests in node.js" depends="download-nodejs-and-npm">
|
||||
<npm command="install" dir="js/js.translator/testData" />
|
||||
<npm command="run" dir="js/js.translator/testData" failonerror="false">
|
||||
|
||||
Reference in New Issue
Block a user