-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathbuild-frontend.cmd
More file actions
41 lines (32 loc) · 819 Bytes
/
build-frontend.cmd
File metadata and controls
41 lines (32 loc) · 819 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
35
36
37
38
39
40
41
@echo off
setlocal
::--------------------------------------------------------------------------------
:: Build
::--------------------------------------------------------------------------------
echo Starting to build the frontend for ASP.NET MVC 4 sample ...
echo.
echo Installing Node.js packages ...
echo.
call npm install
if errorlevel 1 goto error
echo.
echo Installing Bower packages ...
echo.
call bower install
if errorlevel 1 goto error
echo.
echo Building client-side assets ...
echo.
call gulp
if errorlevel 1 goto error
echo.
::--------------------------------------------------------------------------------
:: Exit
::--------------------------------------------------------------------------------
echo Succeeded!
goto exit
:error
echo *** Error: The previous step failed!
:exit
cd ../../
endlocal