Commit Graph

31 Commits

Author SHA1 Message Date
Michael Nedzelsky c42a9840de JS backend: add support for reflection types 2014-07-30 17:50:11 +04:00
Ilya Ryzhenkov 516bae17d7 StringBuilder builder and appendln 2014-06-24 23:49:15 +04:00
Ilya Ryzhenkov ab45439256 Convert iterable of pairs to map, improve generic toMap(mutableMap) function #KT-4166 Fixed 2014-06-10 11:11:03 +04:00
Ilya Ryzhenkov 06873e9d09 Library paths updated after migration to new stdlib generators 2014-03-19 20:25:12 +04:00
Zalim Bashorov 5f847bc7e7 JS backend: fixes after rename testFiles -> testData 2014-03-11 20:04:01 +04:00
Erokhin Stanislav 4c57d70be9 JS backend: remove ECMA 3, but several tests is broken.
Main reason: overload extention property:

Int.bar = 1
String.bar = 2
2013-09-17 21:43:25 +04:00
Leonid Shalupov 293aca2648 js-library: cleanup before build 2013-02-24 17:22:13 +04:00
James Strachan 0506708e70 include the maps.js standard JS file in the maven plugin (fixing up issues caused by the refactoring of kotlin_lib.js into 2 files) 2012-10-25 16:56:13 +01:00
Svetlana Isakova f987aa4faa removed JLang and LUtil from file named in stdlib 2012-09-10 20:15:19 +04:00
Evgeny Gerashchenko 39daa11e13 Fixed maven build. Renamed usages of upto to rangeTo. Excluded DownTo.kt from js lib compilation. 2012-08-08 17:25:43 +04:00
James Strachan 7d0b03de76 added the dom events API to the kotlin standard library and get it compiling as JS too (not unit tested yet mind you ;) 2012-07-25 02:57:53 +01:00
James Strachan b25c27bfed added first cut of the DOM events API (its not all compiling to JS yet though due to Class<T> not being supported) 2012-07-24 11:10:50 +01:00
James Strachan 9cd231ae60 removed old cruft 2012-07-19 10:14:06 +01:00
James Strachan 36078216b7 re-include jQuery and html5 JS APIs into the kotlin-js-library now it seems KT-2316 is fixed 2012-07-19 08:30:16 +01:00
James Strachan b4dace2c29 added a native array() function for the JS generation; also refactored the code generated collection APIs so that most of them can be used with JavaScript and included more array based APIs into the JS generation 2012-07-05 15:49:10 +01:00
James Strachan 9d64960720 enabled the Map tests as they seem to work fine again now 2012-07-05 11:04:31 +01:00
James Strachan 925e5b2236 refactored the JS kotlin code so that we've a simple naming convention (*Code.kt") to refer to library code which needs to generate JS code to separate those files from the pure definitions which just refer to existing JS code already - this will help make it easier to keep the maven build and the js test cases in sync 2012-07-05 10:34:00 +01:00
James Strachan 541f3d4e78 got more map code compiling to JS and running as unit tests 2012-07-03 07:43:15 +01:00
James Strachan 4a4cf0467f more of the stdlib compiling to JS 2012-06-23 06:58:40 +01:00
James Strachan b712719ae4 added some more kotlin standard library code for the JS translation 2012-06-22 19:17:00 +01:00
James Strachan 7b36a22264 enabled the compiling of most of the collections based standard kotlin library to JavaScript 2012-06-22 14:52:13 +01:00
James Strachan 8a6b752357 refactored the standard library so most of the collection APIs in the standard library can be compiled to JS 2012-06-21 15:53:39 +01:00
James Strachan 071e276e08 started compiling more of the kotlin library to JS; now testing the String methods in JS 2012-06-19 07:23:42 -05:00
James Strachan 3546a9ff54 added an integration test that compiles the JS unit tests and generates the QUnit test case 2012-06-14 15:32:57 +01:00
James Strachan b571871a27 fixed mvn build (so that the mvn plugin can compile test cases) 2012-06-13 16:25:08 +01:00
James Strachan ee1e7d5906 attempt to fix the build - whoops, sorry again :) 2012-06-01 08:38:27 +01:00
James Strachan c639d598f6 fixed the build - whoops :) 2012-05-30 16:42:35 +01:00
James Strachan 4921aeafc3 refactored the maven plugin to use the vanilla K2JSCompiler directly and avoid using the K2JVMCompiler when generating JS code; also included a default LibrarySourceConfig which detects JS library code on the classpath which works nicer in maven/ant style worlds where dependencies tend to be specified rather than file paths to zip files 2012-05-29 17:28:15 +01:00
James Strachan 1a77c36040 got the kotlin/Dom.kt, Preconditions.kt and AbstractIterator.kt compiling as JS; needs more testing of using these APIs from JS though... 2012-05-29 15:02:17 +01:00
James Strachan 2898abb245 simplified the kotlin-js-library source generation so we can selectively include some of the kotlin standard library for use in JS compilation 2012-05-29 08:49:36 +01:00
James Strachan ec1a7f44ae create a standard jar of the kotlin JS source that needs to be compiled when generating JS code so its easy to reuse using regular maven dependencies in build tools; updated the examples to reuse this so that its easy to build JS code without needing to know where on the file system a kotlin checkout lives 2012-05-28 17:16:12 +01:00