git lab ci update

This commit is contained in:
Jérémy Munsch 2022-11-24 11:17:43 +01:00
parent 33b523ff82
commit b3f79cb114
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 6 additions and 6 deletions

View file

@ -63,7 +63,7 @@ eslint:
paths:
- node_modules/
script:
- npm run eslint-ci --silent > eslint-report.xml
- npm run eslint-ci --silent 2>/dev/null 1> eslint-report.xml
artifacts:
when: on_failure
expose_as: 'eslint'
@ -85,7 +85,7 @@ stylelint:
paths:
- node_modules/
script:
- npm run stylelint-ci --silent > stylelint-report.json
- npm run stylelint-ci --silent 2>/dev/null 1> stylelint-report.json
artifacts:
when: on_failure
expose_as: 'stylelint'

View file

@ -8,10 +8,10 @@
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production",
"eslint": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources",
"eslint-ci": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources -f junit",
"stylelint": "npx stylelint '**/*.scss'",
"stylelint-ci": "npx stylelint '**/*.scss' -f json"
"eslint": "node ./node_modules/.bin/eslint --max-warnings 0 -c .eslintrc.json ./resources",
"eslint-ci": "node ./node_modules/.bin/eslint --max-warnings 0 -c .eslintrc.json ./resources -f junit",
"stylelint": "node ./node_modules/.bin/stylelint --max-warnings 0 '**/*.scss'",
"stylelint-ci": "node ./node_modules/.bin/stylelint --max-warnings 0 '**/*.scss' -f json"
},
"devDependencies": {
"@fancyapps/fancybox": "^3.5.7",