Commit 145aee65 authored by heddn's avatar heddn
Browse files

use the new format in composer.json for pwd

parent de405162
......@@ -55,14 +55,13 @@
},
"scripts": {
"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/",
"phpcbf": "PWD=$(pwd) && phpcbf --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": "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 .",
"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",
"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 --list-tests web/modules/${PWD##*/} && phpunit --verbose web/modules/${PWD##*/}",
"phpstan": "phpstan analyse web/modules/${PWD##*/}",
"unit": "phpunit --verbose web/modules/custom",
"phpstan": "phpstan analyse web/modules/custom",
"post-update-cmd": ["Spoons\\ScriptHandler::createSymlinks"]
},
"minimum-stability": "dev",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment