Commit Graph

119 Commits

Author SHA1 Message Date
James Strachan 541f3d4e78 got more map code compiling to JS and running as unit tests 2012-07-03 07:43:15 +01:00
Stepan Koltsov 8d2bd30585 kdoc: constants for names 2012-06-25 23:55:30 +04:00
Stepan Koltsov be1b9a011b kdoc: link to generated html source from kdoc 2012-06-25 23:55:30 +04:00
Stepan Koltsov caddc84950 kdoc: KClass: remove unnecessary name parameter 2012-06-25 23:55:29 +04:00
Stepan Koltsov 5cd062f95b kdoc: compute source file relative paths in model 2012-06-25 23:55:29 +04:00
Stepan Koltsov 631832b325 kdoc: change highlighter2 into doclet 2012-06-25 23:55:29 +04:00
Stepan Koltsov 8372ad7ec2 kdoc: cleanup 2012-06-25 23:55:28 +04:00
James Strachan 2aceeebc95 enabled the ListTest to demonstrate KT-2314 - we can re-enable the kotlin-js-tests-junit test case when this is fixed 2012-06-25 10:14:20 +01:00
James Strachan 7803393aa4 fixed up the JS generation of the Dom stdlib code 2012-06-25 10:04:13 +01:00
James Strachan c09106fe68 fixed the JS maven plugin so it can generate a single JS file with all the required kotlin JS inside 2012-06-25 10:03:46 +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 1c26d7212f added some documentation on how the JavaScript generation and testing of the standard library works 2012-06-21 16:12:23 +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 0a3809fa2e disabled a failing unit test for JS generation (will re-enable soon...) and made the generated QUnit test code work with many test classes 2012-06-19 08:12:28 -05: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
Stepan Koltsov 7c17c84f0b working on syntax highlighter2 for kdoc 2012-06-18 01:42:11 +04:00
James Strachan 895b49d509 added better error messages and test case names for the JUnit running of QUnit tests 2012-06-16 08:25:32 +01:00
Stepan Koltsov 2a91e15384 KDocSmallTest 2012-06-16 00:22:22 +04:00
Stepan Koltsov a65bb5b060 kdoc: fix generated by strings 2012-06-16 00:22:22 +04:00
James Strachan 965c433421 add a junit and selenium based test case of the JS compiled version of the kotlin standard ilbrary test cases 2012-06-15 21:09:56 +01:00
Stepan Koltsov 309bb96390 remove warnings in kdoc code 2012-06-15 15:55:50 +04:00
Stepan Koltsov ec17f75236 fix kdoc test on windows 2012-06-15 15:41:25 +04:00
Stepan Koltsov f074d493c8 work around broken kdoc test 2012-06-14 22:44:44 +04:00
Stepan Koltsov e4dfbc5726 check compiler exit code in test 2012-06-14 19:31:34 +04: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 5b85e861b7 fixed bad source links in generated kdoc 2012-06-14 09:37:31 +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 74a138212e added support for public properties at the package level to kdoc 2012-06-12 16:14:56 +01:00
Leonid Shalupov b243c5765d publish compiler with attach-artifact in maven 2012-06-04 23:47:25 +04:00
James Strachan ee1e7d5906 attempt to fix the build - whoops, sorry again :) 2012-06-01 08:38:27 +01:00
James Strachan 57ffb91514 fix possible NPE 2012-05-31 09:38:26 +01:00
James Strachan 2d4354af6c fixed possible NPE 2012-05-31 09:32:03 +01:00
James Strachan 872f08303e allow the JS maven plugin to copy the kotlin JS library file - or append it 2012-05-30 16:43:33 +01:00
James Strachan e41f59779e avoid mandatory properties for optional things on the plugin 2012-05-30 16:43:04 +01:00
James Strachan c639d598f6 fixed the build - whoops :) 2012-05-30 16:42:35 +01:00
James Strachan 4cff5f9759 modified the JS compiler so that it can have definitions and library sources specified or discovered on the classpath; so for example we can then discover the kotlin standard library kotlin that needs to be compiled; plus the JS library definitions (which map to the kotlin-lib.js file) 2012-05-30 15:51:08 +01:00
James Strachan d7573b49a6 allow the JS compiler to take a list of files, verbose flag and a flag to indicate if a main call is required; plus added a test case to ensure we can compile some of the kotlin standard library using the K2JSCompiler directly 2012-05-30 11:31: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 7f53b2f111 workaround for windows test failure 2012-05-28 19:50:22 +01:00
James Strachan 4d7ab80c3e workaround for windows test failure 2012-05-28 19:08:31 +01:00
James Strachan 6486023feb workaround for windows test failure 2012-05-28 18:48:53 +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
James Strachan 1254aa9e6f allow the JS compiler to reference the JS library source so that maven based JS compilation can work & use the new kotlin.browser API 2012-05-26 07:45:10 +01:00
Evgeny Gerashchenko 1ff9c86083 Reverted K2JVMCompilerArguments.altHeaders->jdkHeaders usage. 2012-05-23 17:52:16 +04:00
Evgeny Gerashchenko ea36cf9fb0 Reverted all changes related to renaming jdkHeaders to altHeaders. 2012-05-23 17:05:09 +04:00
James Strachan 53a9fff0bc attempt to fix compile error introduced by Stepan's refactoring 2012-05-23 09:30:03 +01:00