@@ -11,20 +11,30 @@ IF "%MISSING_REQUIREMENT%"=="true" (
11
11
ECHO * All requirements are installed
12
12
)
13
13
14
+ SET " npm = true"
14
15
SET " yarn = true"
15
16
CALL :check_optional_requirement yarn
16
17
IF " %MISSING_REQUIREMENT% " == " true" (
17
- SET " MISSING_REQUIREMENT = false"
18
- CALL :check_optional_requirement npm
19
- IF " %MISSING_REQUIREMENT% " == " true" (
20
- ECHO ! NPM or yarn is needed to set up webui
21
- PAUSE
22
- exit /b
23
- ) ELSE (
24
- SET " yarn = false"
25
- )
18
+ ECHO * Note: Yarn is not installed.
19
+ SET " yarn = false"
26
20
)
27
21
22
+ set " MISSING_REQUIREMENT = false"
23
+ CALL :check_optional_requirement npm
24
+ IF " %MISSING_REQUIREMENT% " == " true" (
25
+ ECHO * Note: npm is not installed.
26
+ SET " npm = false"
27
+ )
28
+
29
+ IF " %npm% " == " false" (
30
+ IF " %yarn% " == " false" (
31
+ ECHO ! NPM or yarn is needed to set up webui
32
+ PAUSE
33
+ exit /b
34
+ )
35
+ )
36
+
37
+
28
38
CALL :check_folder chatoverflow https://github.com/codeoverflow-org/chatoverflow chatoverflow
29
39
CALL :check_folder chatoverflow/api https://github.com/codeoverflow-org/chatoverflow-api chatoverflow/api
30
40
CALL :check_folder chatoverflow/gui https://github.com/codeoverflow-org/chatoverflow-gui chatoverflow/gui
@@ -35,23 +45,25 @@ cd chatoverflow/
35
45
SET " MISSING_REQUIREMENT = false"
36
46
CALL :check_optional_requirement sbt
37
47
IF " %MISSING_REQUIREMENT% " == " true" (
38
- echo ! We would love to set the project up for you, but it seems like you don't have sbt installed.
39
- echo ! Please install sbt and execute $ sbt ';update;fetch;update'
40
- echo ! Or follow the guide at https://github.com/codeoverflow-org/chatoverflow/wiki/Installation
48
+ ECHO ! We would love to set the project up for you, but it seems like you don't have sbt installed.
49
+ ECHO ! Please install sbt and execute $ sbt ';update;fetch;update'
50
+ ECHO ! Or follow the guide at https://github.com/codeoverflow-org/chatoverflow/wiki/Installation
41
51
) ELSE (
42
52
ECHO * Found sbt.
43
53
sbt " ;update;fetch;update"
44
54
)
45
55
46
56
cd gui/
47
57
58
+ ECHO * Installing GUI (this may take a while...)
59
+
48
60
IF " %yarn% " == " true" (
49
61
yarn
50
62
) ELSE (
51
63
npm install
52
64
)
53
65
54
- echo * Success! You can now open the project in IntelliJ (or whatever IDE you prefer)
66
+ ECHO * Success! You can now open the project in IntelliJ (or whatever IDE you prefer)
55
67
56
68
57
69
PAUSE
0 commit comments