forked from toolkit-for-ynab/toolkit-for-ynab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
30 lines (21 loc) · 890 Bytes
/
build.bat
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
@ECHO OFF
rem Populate feature files like feed changes by reading through the code and hooking up
rem all the calls we need, as well as processing settings files
python populateFeaturesFiles.py
echo [ INFO] Checking code style with ESLint...
call npm run eslint --silent || goto :errexit
rem Transpile the source/ directory, putting the files in src/ which is where Kango expects to see them.
echo [ INFO] Transpiling code with Babel on ES2015 preset...
rem rd /s /q src
call npm run babel --silent || goto :errexit
rem Copy any non JS files across that babel didn't bring with it. Ignore existing files we just transpiled.
echo [ INFO] Copying non JS files...
robocopy source src /E /XC /XN /XO /NFL /NDL /NJH /NJS
rem Run the Kango build.
python lib\kango-framework-latest\kango.py build .
rem Clean up.
rd /s /q src
goto :exit
:errexit
echo Build errors encountered
:exit