Skip to content
Snippets Groups Projects
Commit 145aee65 authored by Lucas Hedding's avatar Lucas Hedding
Browse files

use the new format in composer.json for pwd

parent de405162
No related branches found
No related tags found
No related merge requests found
...@@ -55,14 +55,13 @@ ...@@ -55,14 +55,13 @@
}, },
"scripts": { "scripts": {
"si": "drush si -v --db-url=sqlite://sites/default/files/.sqlite testing", "si": "drush si -v --db-url=sqlite://sites/default/files/.sqlite testing",
"phpcs": "PWD=$(pwd) && phpcs --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 --ignore=$PWD/web/,$PWD/vendor/", "phpcs": "phpcs --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 web/modules/custom",
"phpcbf": "PWD=$(pwd) && phpcbf --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 --ignore=$PWD/web/,$PWD/vendor/", "phpcbf": "phpcbf --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 web/modules/custom",
"lint": "parallel-lint --exclude web --exclude vendor .", "lint": "parallel-lint --exclude web --exclude vendor .",
"runserver": "cd web && php -S 0.0.0.0:8888 .ht.router.php", "webserver": "cd web && php -S 0.0.0.0:8888 .ht.router.php",
"chromedriver": "chromedriver --port=9515 --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log --no-sandbox", "chromedriver": "chromedriver --port=9515 --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log --no-sandbox",
"create-symlinks": "cd web/modules/${PWD##*/} && find ../../.. -maxdepth 1 ! -name .git ! -name web ! -name vendor -print | while read file; do ln -s $file .; done", "unit": "phpunit --verbose web/modules/custom",
"unit": "phpunit --list-tests web/modules/${PWD##*/} && phpunit --verbose web/modules/${PWD##*/}", "phpstan": "phpstan analyse web/modules/custom",
"phpstan": "phpstan analyse web/modules/${PWD##*/}",
"post-update-cmd": ["Spoons\\ScriptHandler::createSymlinks"] "post-update-cmd": ["Spoons\\ScriptHandler::createSymlinks"]
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment