forked from Taritsyn/MsieJavaScriptEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-js.cmd
More file actions
34 lines (26 loc) · 692 Bytes
/
Copy pathbuild-js.cmd
File metadata and controls
34 lines (26 loc) · 692 Bytes
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
@echo off
setlocal
cd ./src/MsieJavaScriptEngine/
::--------------------------------------------------------------------------------
:: Build
::--------------------------------------------------------------------------------
echo Installing Node.js packages ...
echo.
call npm install
if errorlevel 1 goto error
echo.
echo Minifying JS files ...
echo.
call npm run -s minify-js
if errorlevel 1 goto error
echo.
::--------------------------------------------------------------------------------
:: Exit
::--------------------------------------------------------------------------------
echo Succeeded!
goto exit
:error
echo *** Error: The previous step failed!
:exit
cd ../../
endlocal