diff options
Diffstat (limited to 'viewer/win_start_vueui.cmd')
-rw-r--r-- | viewer/win_start_vueui.cmd | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/viewer/win_start_vueui.cmd b/viewer/win_start_vueui.cmd new file mode 100644 index 0000000..cee15e8 --- /dev/null +++ b/viewer/win_start_vueui.cmd | |||
@@ -0,0 +1,32 @@ | |||
1 | @echo off | ||
2 | set NODE_VERSION=12.14.0 | ||
3 | set VUECLI_VERSION=4.1.1 | ||
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 | echo. | ||
16 | echo === npm install @vue/cli@%VUECLI_VERSION% === | ||
17 | ping localhost -n 3 >NUL | ||
18 | cmd /c npm install -g @vue/cli@%VUECLI_VERSION% | ||
19 | ) | ||
20 | echo. | ||
21 | echo === npm install === | ||
22 | cmd /c npm install | ||
23 | echo. | ||
24 | echo === npm prune === | ||
25 | cmd /c npm prune | ||
26 | echo. | ||
27 | echo === npm dedupe === | ||
28 | cmd /c npm dedupe | ||
29 | echo. | ||
30 | echo === vue ui === | ||
31 | title Vue UI - server | ||
32 | vue ui | ||