blob: e1a124d8a1f04ef3a8d113b7c8fb4ed642e436bf (
plain)
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
40
41
42
43
44
|
@echo off
set NODE_VERSION=12.16.1
set VUECLI_VERSION=4.2.3
cd ..\viewer\
chcp 65001
echo.
echo === nvm install ===
nvm install %NODE_VERSION%
nvm list | find /i "%NODE_VERSION% (Currently"
if errorlevel 1 (
echo.
echo === nvm use %NODE_VERSION% ===
nvm use %NODE_VERSION%
echo.
echo === npm install @vue/cli@%VUECLI_VERSION% ===
ping localhost -n 3 >NUL
cmd /c npm install -g @vue/cli@%VUECLI_VERSION%
)
echo.
vue --version | find /i "%VUECLI_VERSION%"
if errorlevel 1 (
echo ======================================================================
echo Warning: vue/cli doesn't match the requested version: %VUECLI_VERSION%
echo.
echo CTRL+C to quit and update, or press a key to ignore this warning...
echo ======================================================================
echo.
pause
)
echo.
echo === npm install ===
cmd /c npm install
echo.
echo === npm prune ===
cmd /c npm prune
echo.
echo === npm dedupe ===
cmd /c npm dedupe
echo.
echo === vue ui ===
title Vue UI - server
vue ui
|