I just want to test kotlin capabilities to compile to JavaScript. The project consists in four modules:
- Common: Just extension functions used across all the projects.
- DatePicker: An entire basic date picker library written entirely in Kotlin using kotlinx.html.
- TimePicker: An entire basic time picker library written entirely in Kotlin using kotlinx.html.
- Main: A project that integrates all on an appointment selection page.
Just run:
./gradlew clean build
This will generate the index.html and all the files necessary to run the unit tests using qunit.
Navigate to web/index.html folder and open it on any browser.
Below, you can find some screenshots:
There are three generated HTML files under web:
- test-common.html
- test-datepicker.html
- test-timepicker.html
Opening every file on a browser will run qunit tests for every module.
- Kotlin - Kotlin language
- Gradle - Dependency Management
- Kotlinx.html - DSL to build HTML
- Gilbert Guevara - Initial work
This project is licensed under the MIT License - see the LICENSE file for details