-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3de5b54
commit 2004f35
Showing
2 changed files
with
10 additions
and
8 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 |
---|---|---|
@@ -1,29 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# 버전을 입력받기 | ||
# Get the version of yorkie-js-sdk | ||
read -p "Enter the yorkie-js-sdk version: " version | ||
|
||
# examples 폴더로 이동 | ||
# Change the directory to the examples folder | ||
cd examples | ||
|
||
# 모든 예제 폴더들에 대해 반복 | ||
# Loop through all example folders | ||
for dir in */; do | ||
# 디렉토리인지 확인하고 dist 폴더는 제외 | ||
# 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" | ||
|
||
# npm i와 npm run build 실행 | ||
# 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 |