-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add docker for local dev purpose
- Loading branch information
Showing
304 changed files
with
433 additions
and
917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.git/ | ||
.settings | ||
.buildpath | ||
.project | ||
vendor | ||
nbproject/ | ||
**/nbactions.xml | ||
**/nb-configuration.xml | ||
build/ | ||
**/.idea/ | ||
**/composer.lock | ||
**/*.swp | ||
website/node_modules | ||
**/tests/.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG VERSION= | ||
|
||
FROM php:${VERSION}-cli | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
RUN \ | ||
apt-get update -yq; \ | ||
apt-get install -yq unzip libicu-dev libonig-dev libxml2-dev; \ | ||
pecl install pcov libsodium; \ | ||
docker-php-ext-enable pcov sodium; \ | ||
docker-php-ext-install dom tokenizer json mbstring intl xml xmlwriter simplexml iconv | ||
|
||
RUN echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
.PHONY: help | ||
|
||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
build-php: ## Build PHP image for given version | ||
@echo "Build php $(filter-out $@,$(MAKECMDGOALS))" | ||
@DOCKER_BUILDKIT=1 docker build -t "twbs-helper-php:$(filter-out $@,$(MAKECMDGOALS))" --build-arg "VERSION=$(filter-out $@,$(MAKECMDGOALS))" . | ||
|
||
install: | ||
@$(call run-php,$(filter-out $@,$(MAKECMDGOALS)) composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader) | ||
|
||
shell: | ||
@$(call run-php,$(filter-out $@,$(MAKECMDGOALS)) bash) | ||
|
||
test: | ||
@$(call run-php,$(filter-out $@,$(MAKECMDGOALS)) composer test) | ||
|
||
test-update: | ||
@$(call run-php,$(filter-out $@,$(MAKECMDGOALS)) composer test:update-snapshot) | ||
|
||
lint-fix: | ||
@$(call run-php,$(filter-out $@,$(MAKECMDGOALS)) composer cbf) | ||
|
||
ci: | ||
@$(call run-php,$(filter-out $@,$(MAKECMDGOALS)) composer ci) | ||
|
||
generate-docs: | ||
@$(call run-php,$(filter-out $@,$(MAKECMDGOALS)) composer generate-docs) | ||
|
||
## Run PHP for given version | ||
define run-php | ||
@docker run -it --rm -u $(shell id -u):$(shell id -g) -v ${PWD}:/usr/src/app -w /usr/src/app twbs-helper-php:$(1) | ||
endef | ||
|
||
############################# | ||
# Argument fix workaround | ||
############################# | ||
%: | ||
@: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,8 @@ | |
|
||
### [Code coverage](https://codecov.io/gh/neilime/twbs-helper-module) | ||
|
||
### [Development](https://neilime.github.io/twbs-helper-module/docs/development/) | ||
|
||
## Author | ||
|
||
👤 **ESCEMI <[email protected]>** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...te/Documentation/Tests/__snapshots__/Components/Alerts/Example/Additional_content__1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | ||
<?xml encoding="utf-8" ?><html><body><div class="alert alert-success" role="alert"> | ||
<div class="alert alert-success" role="alert"> | ||
<h4 class="alert-heading">Well done!</h4> | ||
<p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p> | ||
<hr> | ||
<p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p> | ||
</div></body></html> | ||
</div> |
5 changes: 2 additions & 3 deletions
5
.../TestSuite/Documentation/Tests/__snapshots__/Components/Alerts/Example/Dismissing__1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | ||
<?xml encoding="utf-8" ?><html><body><div class="alert alert-dismissible alert-warning fade show" role="alert"> | ||
<div class="alert alert-dismissible alert-warning fade show" role="alert"> | ||
<strong>Holy guacamole!</strong> You should check in on some of those fields below. | ||
<button aria-label="Close" class="btn-close" data-bs-dismiss="alert" name="button" type="button" value=""></button> | ||
</div></body></html> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
tests/TestSuite/Documentation/Tests/__snapshots__/Components/Badges/Examples/Buttons__1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | ||
<?xml encoding="utf-8" ?><html><body><button class="btn btn-primary" name="button" type="button" value=""> | ||
<button class="btn btn-primary" name="button" type="button" value=""> | ||
Notifications | ||
<span class="badge bg-secondary">4</span> | ||
</button></body></html> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
.../TestSuite/Documentation/Tests/__snapshots__/Components/Button_group/Mixed_styles__1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | ||
<?xml encoding="utf-8" ?><html><body><div aria-label="Basic mixed styles example" class="btn-group" role="group"> | ||
<div aria-label="Basic mixed styles example" class="btn-group" role="group"> | ||
<button class="btn btn-danger" name="button" type="button" value="">Left</button> | ||
<button class="btn btn-warning" name="button" type="button" value="">Middle</button> | ||
<button class="btn btn-success" name="button" type="button" value="">Right</button> | ||
</div></body></html> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...stSuite/Documentation/Tests/__snapshots__/Components/Button_group/Outlined_styles__1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> | ||
<?xml encoding="utf-8" ?><html><body><div aria-label="Basic outlined example" class="btn-group" role="group"> | ||
<div aria-label="Basic outlined example" class="btn-group" role="group"> | ||
<button class="btn btn-outline-primary" name="button" type="button" value="">Left</button> | ||
<button class="btn btn-outline-primary" name="button" type="button" value="">Middle</button> | ||
<button class="btn btn-outline-primary" name="button" type="button" value="">Right</button> | ||
</div></body></html> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.