Norbi
05/30/2024, 5:24 PMjsBrowserDevelopmentRun
to effectively run Compose HTML apps with IDEA CE in development mode? (Without using additional 3rd-party frameworks like kobweb.)
When I start the JS app it seems to invoke the "development mode" Gradle tasks:
> Task ...:compileDevelopmentExecutableKotlinJs
> Task ...:jsDevelopmentExecutableCompileSync
But later when I compile the code using CTRL+F9 after a code change, the following (very slow) "production mode" tasks are executed:
> Task ...:compileProductionExecutableKotlinJs
> Task ...:jsProductionExecutableCompileSync
> Task ...:jsBrowserProductionWebpack
> Task ...:jsBrowserDistribution
> Task ...:assemble
I perform a "full build" because I make modifications in server side code as well.
For similar reasons, I don't want to use --continuous
for running the webapp.
Thanks.David Herman
05/30/2024, 5:42 PM./gradlew build
which probably does everything.
Have you tried just creating a run configuration targeting jsBrowserDevelopmentRun
and using that?David Herman
05/30/2024, 5:43 PMDavid Herman
05/30/2024, 5:44 PMjsBrowserDevelopmentRun
you can probably just create your own gradle task in your build script which depends on all the other tasks you care about and then make a run configuration based on that.Norbi
05/30/2024, 5:56 PMjust create your own gradle task in your build scriptGood idea, thanks!
Norbi
05/30/2024, 6:01 PMmy guess is CTRL+F9 runsIt seems to run a dynamically generated Gradle command, listing all projects and executing./gradlew build
assemble
, classes
, etc. for all of them, like:
19:55:13: Executing ':assemble :PRJ1:testClasses :PRJ2:assemble :PRJ3:classes ...'
(I don't get why it doesn't let Gradle to handle transitive tasks...)