1 | @echo off
|
2 | pushd "%~dp0\.."
|
3 |
|
4 | echo "Linting files..."
|
5 | call node_modules/.bin/tslint --config tslint.json index.ts bin/dts-generator.ts tests/unit/all.ts
|
6 | if %ERRORLEVEL% NEQ 0 goto exit
|
7 |
|
8 | echo "Building modules..."
|
9 | call node_modules/.bin/tsc --project tsconfig.json
|
10 | if %ERRORLEVEL% NEQ 0 goto exit
|
11 |
|
12 | echo "Building tests..."
|
13 | call node_modules/.bin/tsc --project tests/tsconfig.json
|
14 | if %ERRORLEVEL% NEQ 0 goto exit
|
15 |
|
16 | echo "Running intern..."
|
17 | call npx intern config=tests/intern.json
|
18 | if %ERRORLEVEL% NEQ 0 goto exit
|
19 |
|
20 | echo "Cleanup..."
|
21 | rd /s/q tmp
|
22 |
|
23 | :exit
|
24 | popd
|