Skip to content

Commit

Permalink
scripts: add fix target
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar committed Nov 23, 2019
1 parent b1ad558 commit 07508c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"stylelint-prettier": "^1.1.1"
},
"scripts": {
"fix": "npm run fix:js && npm run fix:styles",
"fix:styles": "npm run lint:styles -- --fix",
"fix:js": "npm run lint:js -- --fix",
"lint": "npm run lint:js && npm run lint:styles",
"lint:js": "eslint js/*.js",
"lint:styles": "stylelint css/*.css",
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
},
"scripts": {
"cs": "php-cs-fixer fix --verbose --dry-run --diff",
"fix": "php-cs-fixer fix --verbose --diff",
"lint": "php-parallel-lint src"
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"dev": "npm run --prefix assets/ dev",
"build": "npm run --prefix assets/ build",
"dist": "npm install --ignore-scripts && $NODE utils/create-zipball.js",
"fix": "npm run fix:client && npm run fix:server",
"fix:client": "npm run --prefix assets/ fix",
"fix:server": "composer run-script fix",
"install-dependencies": "composer install --no-dev --optimize-autoloader --prefer-dist && npm install --prefix assets/",
"lint:client": "npm run --prefix assets/ lint",
"lint:server": "composer run-script lint",
Expand Down

0 comments on commit 07508c1

Please sign in to comment.