Skip to content

Commit

Permalink
[TASK] Rename npm commands to fit general naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
cumuru committed Jul 30, 2024
1 parent 48dfc14 commit 9bee5c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
npm ci
- name: "Run command"
run: |
npm run lint:${{ matrix.command }}
npm run ci:lint:${{ matrix.command }}
unit-tests:
name: "Unit tests"
runs-on: ubuntu-24.04
Expand Down
4 changes: 2 additions & 2 deletions .gitlab/pipeline/jobs/javascript-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ javascript-lint:
extends: .default-frontend
stage: lint
script:
- npm run lint:js
- npm run ci:lint:js

style-lint:
extends: .default-frontend
stage: lint
script:
- npm run lint:style
- npm run ci:lint:style
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"npm": "^10.5.0"
},
"scripts": {
"lint:js": "eslint 'Resources/Public/**/*.js'",
"lint:js:fix": "eslint 'Resources/Public/**/*.js' --quiet --fix",
"lint:style": "stylelint Resources/Public/**/*.css",
"lint:style:fix": "stylelint Resources/Public/**/*.css --fix"
"ci:lint:js": "eslint 'Resources/Public/**/*.js'",
"fix:lint:js": "eslint 'Resources/Public/**/*.js' --quiet --fix",
"ci:lint:style": "stylelint Resources/Public/**/*.css",
"fix:lint:style": "stylelint Resources/Public/**/*.css --fix"
},
"devDependencies": {
"eslint": "^9.2.0",
Expand Down

0 comments on commit 9bee5c6

Please sign in to comment.