Reorganize stdlib-js sources specific to the current JS backend

Move kotlin-stdlib-js project and the sources specific to the current backend to 'stdlib/js-v1' directory,
but leave sources that can be shared with the new IR backend in the common 'stdlib/js' location
with exception for 'stdlib/js/src/generated', which is used exclusively for current backend.
This simplifies sourceset configuration when building stdlib with the new backend.
This commit is contained in:
Svyatoslav Kuzmich
2019-04-11 16:25:40 +03:00
parent 9dd9efd4aa
commit b1d303b027
70 changed files with 72 additions and 115 deletions
+3 -7
View File
@@ -1,9 +1,5 @@
## Kotlin Standard Library for JS
This directory contains shared sources of Kotlin/JS Standard Library for current and IR backends.
This module produces a `kotlin-stdlib-js` jar which contains all the Kotlin standard kotlin library code compiled to JavaScript.
Note that `stdlib/js/src/generated` is not shared but used exclusively for current `js-v1` backend.
The tests of this module can be run and debugged inside any browser by opening the **web/index.html** file in this directory to run the test cases using [Mocha](https://mochajs.org/).
You should execute `installMocha` gradle task before running these tests to fetch the required Mocha dependency and `testClasses` task to compile test code.
These tests are also run during CI build with [Node.js plugin](https://github.com/srs/gradle-node-plugin).
Kotlin/JS Standard Library module is moved to `libraries/stdlib/js-v1`.