This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function checkdep() {
18
18
echo " * Testing for dependencies..."
19
19
20
20
21
- checkdep npm " NPM is needed to set up webui"
21
+ command -v npm > /dev/null 2>&1 || command -v yarn > /dev/null 2>&1 || error " NPM or yarn is needed to set up webui"
22
22
checkdep git " Git is required to clone individual subrepos"
23
23
24
24
echo " * Cloning repositories..."
@@ -39,14 +39,21 @@ function sbterr() {
39
39
echo " We would love to set the project up for you, but it seems like you don't have sbt installed."
40
40
echo " Please install sbt and execute $ sbt ';update;fetch;update'"
41
41
echo " Or follow the guide at https://github.com/codeoverflow-org/chatoverflow/wiki/Installation"
42
- exit
43
42
}
44
43
45
- command -v sbt > /dev/null 2>&1 || sbterr
44
+ command -v sbt > /dev/null 2>&1 \
45
+ && sbt " ;update;fetch;update" \
46
+ || sbterr
46
47
47
48
# update project first, then fetch plugins; then update the whole thing again
48
49
# (including plugins this time)
49
- sbt " ;update;fetch;update"
50
+
51
+ echo " * Setting up GUI..."
52
+
53
+ cd gui
54
+
55
+ command -v npm > /dev/null 2>&1 && npm install
56
+ command -v yarn > /dev/null 2>&1 && yarn
50
57
51
58
# done?
52
59
echo " * Success! You can now open the project in IntelliJ (or whatever IDE you prefer)"
You can’t perform that action at this time.
0 commit comments