2023-11-09 20:35:36 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-09-30 18:55:24 +06:00
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
2025-04-05 00:42:03 +01:00
|
|
|
# Remove old editor
|
|
|
|
|
rm -rf editor
|
|
|
|
|
|
2025-04-05 00:12:50 +01:00
|
|
|
if [ ! -d ".temp/web-draw" ]; then
|
|
|
|
|
git clone ssh://git@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
|
|
|
|
|
fi
|
2025-04-04 21:03:12 +01:00
|
|
|
|
2025-04-07 12:53:25 +01:00
|
|
|
# Make dir
|
|
|
|
|
mkdir -p packages/editor
|
|
|
|
|
mkdir -p packages/editor/dist
|
2025-04-05 00:12:50 +01:00
|
|
|
|
2025-04-07 12:53:25 +01:00
|
|
|
# Copy the editor dist, package.json
|
|
|
|
|
cp -rf .temp/web-draw/packages/editor/dist packages/editor
|
|
|
|
|
cp -rf .temp/web-draw/packages/editor/package.json packages/editor
|
2025-04-05 00:12:50 +01:00
|
|
|
|
|
|
|
|
# Remove temp directory
|
|
|
|
|
rm -rf .temp
|
|
|
|
|
|
|
|
|
|
# Reinstall so that the editor which was setup gets used
|
2025-04-05 00:28:41 +01:00
|
|
|
rm -rf node_modules
|
2025-04-05 00:12:50 +01:00
|
|
|
pnpm install
|