Skip to content

Commit

Permalink
Merge pull request #724 from boxuk/BWP-115
Browse files Browse the repository at this point in the history
[BWP-115] Cleanup `bin` folder
  • Loading branch information
jdamner authored Jan 13, 2025
2 parents 2fd7505 + 4eea536 commit 3e5cfd4
Show file tree
Hide file tree
Showing 24 changed files with 2,228 additions and 833 deletions.
14 changes: 0 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ debug.log

/node_modules/

/bin/*
!/bin/docker
!/bin/.gitkeep
!/bin/install
!/bin/vip-install
!/bin/clearcache
!/bin/dump-di-cache
!/bin/rebuild
!/bin/create-mu-plugin
!/bin/makepot
!/bin/pot2po
!/bin/po2mo
!/bin/backstop_report

.env
/.env.local
/.env.local.php
Expand Down
Empty file removed bin/.gitkeep
Empty file.
17 changes: 0 additions & 17 deletions bin/backstop_report

This file was deleted.

9 changes: 0 additions & 9 deletions bin/clearcache

This file was deleted.

15 changes: 0 additions & 15 deletions bin/create-mu-plugin

This file was deleted.

3 changes: 0 additions & 3 deletions bin/docker/clearcache

This file was deleted.

3 changes: 3 additions & 0 deletions bin/docker/npx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

bin/docker/nodejs npx "$@"
8 changes: 0 additions & 8 deletions bin/docker/wpscan

This file was deleted.

3 changes: 3 additions & 0 deletions bin/docker/xdebug/composer
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

bin/docker/xdebug/php /usr/local/bin/composer "$@"
8 changes: 8 additions & 0 deletions bin/docker/xdebug/php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# If container is running, exec inside, else run a new container
if [ "$(docker inspect -f '{{.State.Running}}' app_xdebug 2>/dev/null)" = "true" ]; then
docker-compose exec --user www-data app_xdebug php -d memory_limit=1G "$@"
else
docker-compose run --rm --user www-data app_xdebug php -d memory_limit=1G "$@"
fi
3 changes: 3 additions & 0 deletions bin/docker/xdebug/phpcbf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

bin/docker/xdebug/composer run phpcbf "$@"
3 changes: 3 additions & 0 deletions bin/docker/xdebug/phpcs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

bin/docker/xdebug/composer run phpcs "$@"
3 changes: 3 additions & 0 deletions bin/docker/xdebug/phpstan
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

bin/docker/xdebug/composer run phpstan "$@"
2 changes: 1 addition & 1 deletion bin/docker/xdebug/phpunit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

docker-compose exec --user www-data app_xdebug ./bin/phpunit "$@"
bin/docker/xdebug/composer run phpunit "$@"
2 changes: 1 addition & 1 deletion bin/docker/xdebug/wp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

docker-compose exec --user www-data app_xdebug php -d memory_limit=1G /usr/local/bin/wp "$@"
bin/docker/xdebug/php /usr/local/bin/wp "$@"
19 changes: 0 additions & 19 deletions bin/dump-di-cache

This file was deleted.

57 changes: 0 additions & 57 deletions bin/makepot

This file was deleted.

15 changes: 0 additions & 15 deletions bin/po2mo

This file was deleted.

18 changes: 0 additions & 18 deletions bin/pot2po

This file was deleted.

9 changes: 0 additions & 9 deletions bin/rebuild

This file was deleted.

2 changes: 0 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ services:
- profiling

volumes:
vr_yarn_cache:
vr_node_modules:
maildata:

networks:
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
],
"config": {
"vendor-dir": "wp-content/vendor",
"bin-dir": "bin",
"classmap-authoritative": true,
"sort-packages": true,
"preferred-install": "dist",
Expand Down
1 change: 0 additions & 1 deletion docker/wpscan/.env.dist

This file was deleted.

Loading

0 comments on commit 3e5cfd4

Please sign in to comment.