Skip to content

Commit 46b2f6d

Browse files
committed
Added build batch script (Windows)
1 parent 315fd26 commit 46b2f6d

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.DS_Store
2+
node_modules/
3+
/dist/
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
/test/unit/coverage/
8+
/test/e2e/reports/
9+
selenium-debug.log
10+
11+
# Editor directories and files
12+
.idea
13+
.vscode
14+
*.suo
15+
*.ntvs*
16+
*.njsproj
17+
*.sln

build.bat

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
REM This script will build then aggregating the dist files for the two directories into one for release - WINDOWS
3+
IF EXIST dist (
4+
echo Final dist folder found
5+
) ELSE (
6+
echo Creating dist folder
7+
mkdir dist
8+
)
9+
echo Building admin
10+
cd admin
11+
call npm run build
12+
echo Copying admin files
13+
xcopy dist ..\dist /s /e /y
14+
cd ..
15+
cd main
16+
echo Building main
17+
call npm run build
18+
echo Copying main files
19+
xcopy dist ..\dist /s /e /y
20+
cd ..
21+
echo Done

0 commit comments

Comments
 (0)