1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

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: install:
- npm install - npm install
script: script:
- npm run lint
- npm run build - npm run build

View File

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

View File

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