mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-02-23 11:05:52 +01:00
31 lines
621 B
Bash
31 lines
621 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
# Change working directory to the directory of this script
|
||
|
cd "$(dirname "$0")"
|
||
|
|
||
|
if [ ! -d "./developer-roadmap" ]; then
|
||
|
git clone --depth 1 -b master git@github.com:kamranahmedse/developer-roadmap.git
|
||
|
fi
|
||
|
|
||
|
echo "Removing old directories"
|
||
|
rm -rf ../src/videos
|
||
|
rm -rf ../src/guides
|
||
|
rm -rf ../src/roadmaps
|
||
|
|
||
|
rm -rf ../public/jsons
|
||
|
rm -rf ../public/pdfs
|
||
|
|
||
|
echo "=== Migrating Roadmaps ==="
|
||
|
node roadmap-migrator.cjs
|
||
|
|
||
|
echo "=== Migrating Content ==="
|
||
|
# node content-migrator.cjs
|
||
|
|
||
|
echo "=== Migrating Guides ==="
|
||
|
# node guide-migrator.cjs
|
||
|
|
||
|
echo "=== Migrating Videos ==="
|
||
|
# node video-migrator.cjs
|