fixes
This commit is contained in:
33
vendor/nunomaduro/termwind/Makefile
vendored
Normal file
33
vendor/nunomaduro/termwind/Makefile
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# Well documented Makefiles
|
||||
DEFAULT_GOAL := help
|
||||
help:
|
||||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-40s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
|
||||
|
||||
##@ [Docker]
|
||||
start: ## Spin up the container
|
||||
docker-compose up -d
|
||||
|
||||
stop: ## Shut down the containers
|
||||
docker-compose down
|
||||
|
||||
build: ## Build all docker images
|
||||
docker-compose build
|
||||
|
||||
##@ [Application]
|
||||
composer: ## Run composer commands. Specify the command e.g. via "make composer ARGS="install|update|require <dependency>"
|
||||
docker-compose run --rm app composer $(ARGS)
|
||||
|
||||
lint: ## Run the Linter
|
||||
docker-compose run --rm app ./vendor/bin/pint -v
|
||||
|
||||
test-lint: ## Run the Linter Test
|
||||
docker-compose run --rm app ./vendor/bin/pint --test -v
|
||||
|
||||
test-types: ## Run the PHPStan analysis
|
||||
docker-compose run --rm app ./vendor/bin/phpstan analyse --ansi
|
||||
|
||||
test-unit: ## Run the Pest Test Suite
|
||||
docker-compose run --rm app ./vendor/bin/pest --colors=always
|
||||
|
||||
test: ## Run the tests. Apply arguments via make test ARGS="--init"
|
||||
make test-lint && make test-types && make test-unit
|
13
vendor/nunomaduro/termwind/docker-compose.yml
vendored
Normal file
13
vendor/nunomaduro/termwind/docker-compose.yml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: termwind-docker
|
||||
container_name: termwind-docker
|
||||
stdin_open: true
|
||||
tty: true
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile
|
||||
volumes:
|
||||
- .:/usr/src/app
|
11
vendor/nunomaduro/termwind/docker/Dockerfile
vendored
Normal file
11
vendor/nunomaduro/termwind/docker/Dockerfile
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM php:8.2-cli-alpine
|
||||
|
||||
# INSTALL AND UPDATE COMPOSER
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
RUN composer self-update
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
|
||||
# INSTALL YOUR DEPENDENCIES
|
||||
RUN composer install --prefer-dist
|
@@ -89,6 +89,10 @@ final class InheritStyles
|
||||
*/
|
||||
private function applyJustifyBetween(array $elements): array
|
||||
{
|
||||
if (count($elements) <= 1) {
|
||||
return $elements;
|
||||
}
|
||||
|
||||
[$totalWidth, $parentWidth] = $this->getWidthFromElements($elements);
|
||||
$space = ($parentWidth - $totalWidth) / (count($elements) - 1);
|
||||
|
||||
@@ -146,6 +150,10 @@ final class InheritStyles
|
||||
*/
|
||||
private function applyJustifyAround(array $elements): array
|
||||
{
|
||||
if (count($elements) === 0) {
|
||||
return $elements;
|
||||
}
|
||||
|
||||
[$totalWidth, $parentWidth] = $this->getWidthFromElements($elements);
|
||||
$space = ($parentWidth - $totalWidth) / count($elements);
|
||||
|
||||
|
Reference in New Issue
Block a user