forked from microsoft/fsi-experiences
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallTool.cmd
39 lines (30 loc) · 935 Bytes
/
InstallTool.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
SET location=%CD%
echo %date%, %time% "%location%"
IF NOT "%1" == "build_machine" goto :skipPNPMInstall
call curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm@6
:skipPNPMInstall
:: ----------------Instaling frontend libs---------------
cd %location%\frontend\
call pnpm install-libs --frozen-lockfile
IF %errorlevel% gtr 0 (
echo %date%, %time% install libs failed! %errorlevel%
EXIT 1
) ELSE (
echo %date%, %time% install libs command was successful
)
call pnpm build-libs
IF %errorlevel% gtr 0 (
echo %date%, %time% build libs failed! %errorlevel%
EXIT 1
) ELSE (
echo %date%, %time% build libs command was successful
)
IF "%1" == "build_machine" goto :skipPCFNPM
::----------------Instaling the entire workspace---------------
cd %location%\frontend\
call pnpm i --frozen-lockfile
:skipPCFNPM
cd %location%
echo %date%, %time% finished installing js successfully
EXIT 0