forked from h2oai/wave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.ps1
33 lines (27 loc) · 937 Bytes
/
setup.ps1
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
# Setup UI.
Set-Location ui
npm ci
npm run build
if ($LastExitCode -ne 0) { exit $LastExitCode }
Set-Location ..
# Setup Py tests.
Set-Location py
python -m venv venv
.\venv\Scripts\python -m pip install --upgrade pip
.\venv\Scripts\python -m pip install --editable h2o_wave
.\venv\Scripts\pip install httpx typing_extensions
echo "# Generated in hatch_build.py\n__platform__ = 'linux'\n__arch__ = 'amd64'" > h2o_wave/h2o_wave/metadata.py
if ($LastExitCode -ne 0) { exit $LastExitCode }
Set-Location ..
# Setup VSC.
Set-Location tools\vscode-extension
npm ci
python -m venv venv
.\venv\Scripts\python -m pip install --upgrade pip
.\venv\Scripts\python -m pip install -r requirements.txt
npm run compile
if ($LastExitCode -ne 0) { exit $LastExitCode }
Set-Location ..\..
# Build waved.
go build -ldflags '-X main.Version=DEV -X main.BuildDate=20230317152454' -o waved cmd/wave/main.go
if ($LastExitCode -ne 0) { exit $LastExitCode }