:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

.Development Overview Diagram
[plantuml,file="dev-overview.png"]
----
@startuml
skinparam nodesep 20
skinparam ranksep 5

top to bottom direction

component gradle <<build.tool>> {
    component kotlinFrontend <<gradle.plugin>> as KF
    component kotlin2js <<transpiler>> as K2JS
    component DCE
}


package root #gold {
    rectangle "build.gradle\nsettings.gradle\ngradle.properties" as GCFG
    rectangle karma.conf.js as KC
    rectangle package.json as PJ
    GCFG -[hidden]--> PJ
}
package root.build  #gold {
}
package root.node_modules as NM #gold {
    component karma
    component webpack
}
component NodeJS
component Browser

gradle .> GCFG : configured\nthrough
gradle --> webpack

K2JS --> root.build : generates\n*.js\n*-tests.js
KF --> KC : initially generates
KC -> PJ : requires
PJ -> NM : adds to

:Developer,\nalmost\ngone\ncrazy;-): as DEV
($ gradlew -t run) as RUN
($ npm install <> --save-dev) as NI
($ npm test) as TEST

DEV --> RUN
DEV --> NI
RUN --> gradle


component npm
NI .> npm : uses
NI -> PJ : updates


DEV --> TEST
TEST .> npm : uses
TEST --> karma : runs
karma --> Browser : displays\ntest results\nvia port 9876

note left of PJ
package.json.lock
end note

@enduml
----
