Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lppedd/kotlin-externals
Kotlin externals for a variety of JS libraries
https://github.com/lppedd/kotlin-externals
Last synced: 20 days ago
JSON representation
Kotlin externals for a variety of JS libraries
- Host: GitHub
- URL: https://github.com/lppedd/kotlin-externals
- Owner: lppedd
- License: mit
- Created: 2024-02-22T14:38:48.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-02T10:49:55.000Z (2 months ago)
- Last Synced: 2024-10-10T18:43:47.051Z (about 1 month ago)
- Language: Kotlin
- Size: 1.81 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kotlin-externals
Additional Kotlin externals for a variety of JS libraries.
### Initial generation
Unlike what you may find under [kotlin-wrappers][1], our externals are not entirely auto-generated.
Usually:1. An initial generation is done with [Karakum][2]. The project may not compile at this point.
2. A formatting round is done with the IntelliJ IDEA formatter
3. An additional formatting round is done with Ktlint
4. Each file is manually reviewed and adjusted### Updates
Each project keeps the collection of `.d.ts` files used for the Kotlin sources generation process.
When a npm library version is bumped under `gradle.properties`, the task
```
./gradlew :project-name:copyTsDeclarations
```is run.
At this point the updates to the TypeScript declarations will be highlighted
in the VCS changes, allowing us to manually port them to the Kotlin sources.[1]: https://github.com/JetBrains/kotlin-wrappers
[2]: https://github.com/karakum-team/karakum