1
@if "%DEBUG%" == "" @echo off
2
@rem ##########################################################################
4
@rem Hvigor startup script for Windows
6
@rem ##########################################################################
8
@rem Set local scope for the variables with windows NT shell
9
if "%OS%"=="Windows_NT" setlocal
12
if "%DIRNAME%" == "" set DIRNAME=.
16
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
17
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
19
set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js
26
if defined NODE_HOME goto findNodeFromNodeHome
28
%NODE_EXE% --version >NUL 2>&1
29
if "%ERRORLEVEL%" == "0" goto execute
32
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
34
echo Please set the NODE_HOME variable in your environment to match the
35
echo location of your NodeJs installation.
40
set NODE_HOME=%NODE_HOME:"=%
41
set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE%
43
if exist "%NODE_EXE_PATH%" goto execute
45
echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH.
47
echo Please set the NODE_HOME variable in your environment to match the
48
echo location of your NodeJs installation.
54
"%NODE_EXE%" "%WRAPPER_MODULE_PATH%" %*
56
if "%ERRORLEVEL%" == "0" goto hvigorwEnd
62
if "%OS%" == "Windows_NT" endlocal