diff options
author | zeroinformatique | 2021-07-02 18:08:13 +0200 |
---|---|---|
committer | GitHub | 2021-07-02 18:08:13 +0200 |
commit | 08ac32103fb5f8cca1861267dfd07a7c0d2faf62 (patch) | |
tree | 6e70da08a58890eac806d98a127551e9f67994a9 /scripts/dev_win_viewer_deps_install.cmd | |
parent | 1cf6dd4243a72935d382d62bb2a79ff13186e70d (diff) | |
parent | 90b0994ea7be0052fc6d868c98e1de8c835f2ba1 (diff) | |
download | ldgallery-08ac32103fb5f8cca1861267dfd07a7c0d2faf62.tar.gz |
Merge pull request #299 from ldgallery/oz-yarn
viewer: compilation chain upgrade
Diffstat (limited to 'scripts/dev_win_viewer_deps_install.cmd')
-rw-r--r-- | scripts/dev_win_viewer_deps_install.cmd | 22 |
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 | ||
2 | set NODE_VERSION=12.22.2 | ||
3 | cd ..\viewer\ | ||
4 | |||
5 | chcp 65001 | ||
6 | echo. | ||
7 | echo === nvm install === | ||
8 | nvm install %NODE_VERSION% | ||
9 | nvm list | find /i "%NODE_VERSION% (Currently" | ||
10 | if 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 | ) | ||
18 | echo. | ||
19 | echo === yarn deps === | ||
20 | cmd /c rmdir /s /q .\node_modules\ | ||
21 | cmd /c yarn | ||
22 | echo. | ||