TSK-977: Add linting to build pipeline

This commit is contained in:
BVier 2019-12-09 16:25:52 +01:00 committed by Mustapha Zorgati
parent 22b0b2170b
commit e2e7acacc6
2 changed files with 7 additions and 6 deletions

View File

@ -27,6 +27,7 @@ function main() {
WEB) WEB)
set -x set -x
(cd $REL/../web && npm install --silent) (cd $REL/../web && npm install --silent)
(cd $REL/../web && npm run lint)
(cd $REL/../web && npm run build) (cd $REL/../web && npm run build)
;; ;;
LIB) LIB)

View File

@ -3,7 +3,7 @@
"version": 1, "version": 1,
"newProjectRoot": "projects", "newProjectRoot": "projects",
"projects": { "projects": {
"admin": { "taskana-web": {
"root": "", "root": "",
"sourceRoot": "src", "sourceRoot": "src",
"projectType": "application", "projectType": "application",
@ -53,18 +53,18 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "admin:build" "browserTarget": "taskana-web:build"
}, },
"configurations": { "configurations": {
"production": { "production": {
"browserTarget": "admin:build:production" "browserTarget": "taskana-web:build:production"
} }
} }
}, },
"extract-i18n": { "extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n", "builder": "@angular-devkit/build-angular:extract-i18n",
"options": { "options": {
"browserTarget": "admin:build" "browserTarget": "taskana-web:build"
} }
}, },
"test": { "test": {
@ -100,13 +100,13 @@
} }
} }
}, },
"admin-e2e": { "taskana-web-e2e": {
"root": "", "root": "",
"sourceRoot": "e2e", "sourceRoot": "e2e",
"projectType": "application" "projectType": "application"
} }
}, },
"defaultProject": "admin", "defaultProject": "taskana-web",
"schematics": { "schematics": {
"@schematics/angular:component": { "@schematics/angular:component": {
"prefix": "app", "prefix": "app",