Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ script:
- find . -maxdepth 1 \( -name '*.php' \) -exec php -lf {} \;
- find src/php/ \( -name '*.php' \) -exec php -lf {} \;

# Run tests
- npm run test
# Run linters
- npm run lint
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"test": "tests"
},
"scripts": {
"test": "npm run stylelint && eslint && npm run phpcs",
"test:playwright": "playwright test -c tests/playwright/playwright.config.ts",
"test:playwright:debug": "npm run test:playwright -- --debug",
"test:playwright:ui": "npm run test:playwright -- --ui",
Expand All @@ -20,9 +19,13 @@
"build": "webpack",
"watch": "webpack --watch",
"bundle": "ts-node scripts/bundle.ts",
"phpcs": "src/vendor/bin/phpcs -s --colors ./src/phpcs.xml",
"phpcbf": "src/vendor/bin/phpcbf ./src/phpcs.xml",
"stylelint": "stylelint --fix 'src/css/**/*.scss'",
"lint": "npm run lint:styles && npm run lint:js && npm run lint:php",
"lint:styles": "stylelint 'src/css/**/*.scss'",
"lint:styles:fix": "stylelint --fix 'src/css/**/*.scss'",
"lint:js": "eslint",
"lint:js:fix": "eslint --fix",
"lint:php": "src/vendor/bin/phpcs -s --colors ./src/phpcs.xml",
"lint:php:fix": "src/vendor/bin/phpcbf ./src/phpcs.xml",
"version": "ts-node scripts/version.ts",
"version-dev": "npm version --git-tag-version=false --preid=dev",
"version-alpha": "npm version --git-tag-version=false --preid=alpha",
Expand Down