UNPKG

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