You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
929 B

#!/bin/bash
# Script to build most of the examples, to verify if they can compile.
# Don't add examples, which don't depend on maven.pkg.jetbrains.space, because they won't be able to compile.
set -euo pipefail
if [ "$#" -ne 2 ]; then
echo "Specify Compose and Kotlin version. For example: ./validateExamplesWithJs.sh 1.1.1 1.6.10"
exit 1
fi
COMPOSE_VERSION=$1
KOTLIN_VERSION=$2
runGradle() {
pushd $1
./gradlew $2 -Pcompose.version=$COMPOSE_VERSION -Pkotlin.version=$KOTLIN_VERSION --rerun-tasks
popd
}
runGradle chat-mpp jsBrowserProductionWebpack
#runGradle codeviewer jsBrowserProductionWebpack
runGradle falling-balls-mpp jsBrowserProductionWebpack
#runGradle imageviewer jsBrowserProductionWebpack
runGradle minesweeper jsBrowserProductionWebpack
#runGradle todoapp-lite jsBrowserProductionWebpack
#runGradle visual-effects jsBrowserProductionWebpack
#runGradle widgets-gallery jsBrowserProductionWebpack