aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZero~Informatique2021-07-01 19:38:49 +0200
committerZero~Informatique2021-07-01 20:21:54 +0200
commit011cb4bcf271125b6d216f8def027b154954f25d (patch)
treef6b58199989644d4a4c6b5e054a75753ef113b7e /scripts
parent9a72f5d3a2251b438017b08eec673bb800636e91 (diff)
downloadldgallery-011cb4bcf271125b6d216f8def027b154954f25d.tar.gz
viewer: Switch to YARN instead of NPM
GitHub: closes #287
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev_win_viewer_deps_install.cmd22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/dev_win_viewer_deps_install.cmd b/scripts/dev_win_viewer_deps_install.cmd
new file mode 100644
index 0000000..9e2330d
--- /dev/null
+++ b/scripts/dev_win_viewer_deps_install.cmd
@@ -0,0 +1,22 @@
1@echo off
2set NODE_VERSION=12.22.2
3cd ..\viewer\
4
5chcp 65001
6echo.
7echo === nvm install ===
8nvm install %NODE_VERSION%
9nvm list | find /i "%NODE_VERSION% (Currently"
10if errorlevel 1 (
11 echo.
12 echo === nvm use %NODE_VERSION% ===
13 nvm use %NODE_VERSION%
14
15 ping localhost -n 3 >NUL
16 cmd /c npm install -g yarn
17)
18echo.
19echo === yarn deps ===
20cmd /c rmdir /s /q .\node_modules\
21cmd /c yarn
22echo.