Update .gitlab-ci.yml, package.json

This commit is contained in:
Vincent BRIDIER 2022-11-23 16:29:23 +00:00
parent 67b48bc698
commit 21c289d072
2 changed files with 8 additions and 4 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'
@ -115,4 +115,4 @@ front-build:
needs:
- phpcs
- eslint
- stylelint
- stylelint

View file

@ -7,7 +7,11 @@
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
"production": "mix --production",
"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": {
"@fortawesome/fontawesome-svg-core": "^6.1.2",