-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update example version to v0.4.28 (#877)
* Update example version to v0.4.28 * Add update:examples script --------- Co-authored-by: Youngteac Hong <susukang98@gmail.com>
- Loading branch information
1 parent
25bb409
commit 83a6369
Showing
11 changed files
with
169 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,6 @@ | |
"vite": "^3.2.7" | ||
}, | ||
"dependencies": { | ||
"yorkie-js-sdk": "^0.4.27" | ||
"yorkie-js-sdk": "^0.4.28" | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Get the version of yorkie-js-sdk | ||
read -p "Enter the yorkie-js-sdk version: " version | ||
|
||
# Change the directory to the examples folder | ||
cd examples | ||
|
||
# Loop through all example folders | ||
for dir in */; do | ||
# Check if it is a directory and exclude the dist folder | ||
echo $dir | ||
if [ -d "$dir" ] && [ "$dir" != "dist/" ]; then | ||
# Move to the example folder | ||
cd "$dir" | ||
|
||
# Execute npm i and npm run build | ||
npm i "yorkie-js-sdk@$version" && npm run build | ||
|
||
# Check the result of the execution | ||
if [ $? -ne 0 ]; then | ||
echo "Error occurred in $dir" | ||
else | ||
echo "$dir build succeeded" | ||
fi | ||
|
||
# Move back to the examples folder | ||
cd .. | ||
fi | ||
done |