-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update example version to v0.4.28 #877
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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" | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Handle directory change errors. Add error handling to the - cd "$dir"
+ cd "$dir" || exit Committable suggestion
Suggested change
ToolsShellcheck
|
||||||
|
||||||
# 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 .. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Handle directory change errors. Add error handling to the - cd ..
+ cd .. || exit Committable suggestion
Suggested change
|
||||||
fi | ||||||
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle directory change errors.
Add error handling to the
cd
command to ensure the script exits if the directory change fails.Committable suggestion
Tools
Shellcheck