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.
32 lines
817 B
32 lines
817 B
1 year ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
rm -rf .temp
|
||
|
git clone git@github.com:roadmapsh/web-draw.git .temp/web-draw
|
||
|
|
||
|
rm -rf renderer
|
||
|
mkdir renderer
|
||
|
|
||
|
# copy the files at /src/editor/renderer/* to /renderer
|
||
|
# while replacing any existing files
|
||
|
cp -rf .temp/web-draw/src/editor/renderer/* renderer
|
||
|
|
||
|
# Add @ts-nocheck to the top of each ts and tsx file
|
||
|
# so that the typescript compiler doesn't complain
|
||
|
# about the missing types
|
||
|
find renderer -type f \( -name "*.ts" -o -name "*.tsx" \) -print0 | while IFS= read -r -d '' file; do
|
||
|
if [ -f "$file" ]; then
|
||
|
echo "// @ts-nocheck" > temp
|
||
|
cat "$file" >> temp
|
||
|
mv temp "$file"
|
||
|
echo "Added @ts-nocheck to $file"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
# remove the temporary directory
|
||
|
rm -rf .temp
|
||
|
|
||
|
# ignore the worktree changes for the renderer directory
|
||
|
git update-index --skip-worktree renderer/*
|