Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 18be0e5

Browse files
committed
This scripts creates symlink of the shared unmanagedSourceDirectories for older Node.js projects, so Intellij IDEA recognize source.
1 parent 35291a6 commit 18be0e5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

script/setup.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
SOURCE_DIR=$(pwd)/app/nodejs-v14/src/main
4+
5+
V12_DIR=$(pwd)/app/nodejs-v12/src/main
6+
if [ -e "$V12_DIR" ]; then
7+
echo "V12 dir already exists."
8+
else
9+
ln -s "$SOURCE_DIR" "$V12_DIR";
10+
echo "V12 dir created.";
11+
fi
12+
13+
V10_DIR=$(pwd)/app/nodejs-v10/src/main
14+
if [ -e "$V10_DIR" ]; then
15+
echo "V10 dir already exists."
16+
else
17+
ln -s "$SOURCE_DIR" "$V10_DIR";
18+
echo "V1 dir created.";
19+
fi

0 commit comments

Comments
 (0)