Skip to content

Commit

Permalink
Merge pull request #7 from rob006/php-scoper
Browse files Browse the repository at this point in the history
Prefix dependencies using php-scoper
  • Loading branch information
joedolson committed Aug 18, 2023
2 parents 8d222e0 + b75b4fe commit c24de5f
Show file tree
Hide file tree
Showing 212 changed files with 5,059 additions and 14,349 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/
/node_modules/
/src/vendor/
/node_modules/
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@
"squizlabs/php_codesniffer": "^3.5",
"wp-coding-standards/wpcs": "^2.2",
"wp-phpunit/wp-phpunit": "^5.8",
"yoast/phpunit-polyfills": "^1.0"
"yoast/phpunit-polyfills": "^1.0",
"humbug/php-scoper": "^0.17.5"
},
"require": {
"composer/installers": "~1.0"
},
"scripts": {
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
"lint": "phpcs --standard=phpcs.xml.dist",
"test": "phpunit -c phpunit.xml.dist --verbose"
"test": "phpunit -c phpunit.xml.dist --verbose",
"scope": [
"@php ./vendor/bin/php-scoper add-prefix -d src/vendor -o ../vendor_prefixed -c ../../scoper.inc.php --force",
"composer dump-autoload --working-dir src/vendor_prefixed --classmap-authoritative"
]
},
"config": {
"allow-plugins": {
Expand Down
Loading

0 comments on commit c24de5f

Please sign in to comment.