computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
777 B
34 lines
777 B
#!/usr/bin/env bash |
|
|
|
set -e |
|
|
|
# Remove old editor |
|
rm -rf editor |
|
|
|
if [ ! -d ".temp/web-draw" ]; then |
|
git clone ssh://git@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1 |
|
fi |
|
|
|
# Make dir |
|
mkdir -p packages/editor |
|
mkdir -p packages/editor/dist |
|
|
|
# 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 |
|
|
|
# Remove temp directory |
|
rm -rf .temp |
|
|
|
editor_changed_files=$(git ls-files -m packages/editor) |
|
|
|
echo "editor_changed_files: $editor_changed_files" |
|
|
|
for file in $editor_changed_files; do |
|
echo "Assuming $file is unchanged" |
|
git update-index --assume-unchanged $file |
|
done |
|
|
|
# Reinstall so that the editor which was setup gets used |
|
rm -rf node_modules |
|
pnpm install
|
|
|