Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/turansky/kfc-plugins
Kotlin/JS Fast Configuration
https://github.com/turansky/kfc-plugins
configuration gradle-plugin kotlin kotlin-js
Last synced: about 1 month ago
JSON representation
Kotlin/JS Fast Configuration
- Host: GitHub
- URL: https://github.com/turansky/kfc-plugins
- Owner: turansky
- License: apache-2.0
- Created: 2020-02-11T07:45:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T00:21:48.000Z (3 months ago)
- Last Synced: 2024-10-30T01:53:11.716Z (3 months ago)
- Topics: configuration, gradle-plugin, kotlin, kotlin-js
- Language: Kotlin
- Homepage:
- Size: 2.91 MB
- Stars: 47
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![CI Status](https://github.com/turansky/kfc-plugins/workflows/CI/badge.svg)](https://github.com/turansky/kfc-plugins/actions)
[![CI Status](https://github.com/turansky/kfc-plugins/workflows/gradle%20plugin/badge.svg)](https://github.com/turansky/kfc-plugins/actions)
[![Gradle Plugin Portal](https://img.shields.io/gradle-plugin-portal/v/io.github.turansky.kfc.library?logo=gradle)](https://plugins.gradle.org/plugin/io.github.turansky.kfc.library)
[![Kotlin](https://img.shields.io/badge/kotlin-2.1.0-blue.svg?logo=kotlin)](http://kotlinlang.org)# Kotlin/JS Fast Configuration
## `application`
### Usage
#### `build.gradle.kts`
```kotlin
plugins {
id("io.github.turansky.kfc.application") version "13.3.0"
}
```### Defaults
* Kotlin/JS
* Target `es2015`
* Granularity `per-file`### Bundler
We use [Vite](https://vitejs.dev/)
#### Configuration
You can add your custom `vite.config.mjs` ([example](examples/vite/custom-config/vite.config.mjs))
#### Dev Server
1. Add `index.html` file with module script to JS
entrypoint ([example](examples/vite/vite-dev/src/jsMain/resources/index.html))2. Specify custom config file with `root` to `kotlin` ([example](examples/vite/vite-dev/vite.config.mjs))
3. Start a dev server, run `jsViteRun` task ([example](examples/vite/vite-dev))
### Source Maps
Enable source maps generation:
```properties
kfc.source.maps=true
```