forked from episerver/EPiServer.Forms.Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.cmd
27 lines (20 loc) · 801 Bytes
/
build.cmd
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
@ECHO OFF
SETLOCAL
REM Installing node modules
CALL npm install
REM Set Release or Debug configuration.
IF "%1"=="Debug" (set CONFIGURATION=Debug) ELSE (set CONFIGURATION=Release)
ECHO Building in %CONFIGURATION%
REM Set the build version. Using defaults when no params are given (common when running locally).
IF "%2"=="" ( SET BUILD=01 ) ELSE ( SET BUILD=%2 )
IF "%3"=="" ( SET BRANCH=developerbuild ) ELSE ( SET BRANCH=%3 )
@REM CALL npm run build:setversion -- --build %BUILD% --jirabranch %BRANCH%
@REM IF %errorlevel% NEQ 0 EXIT /B %errorlevel%
REM Build javascript and less files
CALL npm run build
IF %errorlevel% NEQ 0 EXIT /B %errorlevel%
REM Build react views
CALL npm run webpack
REM Build the C# solution.
dotnet build -c %CONFIGURATION%
IF %errorlevel% NEQ 0 EXIT /B %errorlevel%