forked from JetBrains/compose-multiplatform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidateExamplesWithJs.sh
More file actions
29 lines (23 loc) · 929 Bytes
/
Copy pathvalidateExamplesWithJs.sh
File metadata and controls
29 lines (23 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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