-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Wasm] Refactor environments in KotlinJsTarget and KotlinJsSubtarget
Actually subtargets were like environments in KGP. Now all environments which we have (nodejs, browser and d8) have responsibilities to register task which are necessary for only them (like test and everything which is need to test and to setup NPM project). Additional configurations are moved to other instances (Configurators). SubTarget could work without knowledge of specific configurators. Configurators could implement additional logic, for example bundle functionaility of webpack can be added separately (browser subtarget could work fine without it). NodeJs configurator could register run tasks, which could not be mandatory. So we keep all mandatory in SubTargets and extract all "optional" functionality to "configurators". It can help to toggle optional features. ^KT-72175 fixed
- Loading branch information
1 parent
d2e6c35
commit 08ac97b
Showing
45 changed files
with
1,223 additions
and
791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.