|
|
@ -2,6 +2,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
set -e |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Remove old editor |
|
|
|
|
|
|
|
rm -rf editor |
|
|
|
|
|
|
|
|
|
|
|
if [ ! -d ".temp/web-draw" ]; then |
|
|
|
if [ ! -d ".temp/web-draw" ]; then |
|
|
|
git clone ssh://git@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1 |
|
|
|
git clone ssh://git@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1 |
|
|
|
fi |
|
|
|
fi |
|
|
@ -10,13 +13,10 @@ cd .temp/web-draw |
|
|
|
pnpm install |
|
|
|
pnpm install |
|
|
|
npm run build -- --filter=@roadmapsh/editor |
|
|
|
npm run build -- --filter=@roadmapsh/editor |
|
|
|
|
|
|
|
|
|
|
|
# Remove old editor |
|
|
|
cd ../../ |
|
|
|
rm -rf editor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copy new editor |
|
|
|
# Copy new editor |
|
|
|
cp -rf packages/editor ../../editor |
|
|
|
cp -rf .temp/web-draw/packages/editor editor |
|
|
|
|
|
|
|
|
|
|
|
cd ../../ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
editor_changed_files=$(git ls-files -m editor) |
|
|
|
editor_changed_files=$(git ls-files -m editor) |
|
|
|
|
|
|
|
|
|
|
|