Add the lint to CI script (#403)

This commit is contained in:
mtgto 2020-03-13 04:30:48 +09:00 committed by GitHub
parent 354f8decc0
commit d10a8a5b61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -7,4 +7,5 @@ matrix:
install:
- npm install
script:
- npm run lint
- npm run build

View File

@ -57,6 +57,7 @@ before_build:
build_script:
- npm install
- npm run lint
- ps: |
if($isLinux) {
npm run dist:lin

View File

@ -26,7 +26,7 @@
"symlink:win": "rm -rf ./jslib && cmd /c mklink /J .\\jslib ..\\jslib",
"symlink:mac": "npm run symlink:lin",
"symlink:lin": "rm -rf ./jslib && ln -s ../jslib ./jslib",
"lint": "tslint src/**/*.ts || true",
"lint": "tslint src/**/*.ts",
"lint:fix": "tslint src/**/*.ts --fix",
"build": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main\" \"npm run build:renderer\"",
"build:main": "webpack --config webpack.main.js",