-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,262 additions
and
175 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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# PHP PSR-2 Coding Standards | ||
# http://www.php-fig.org/psr/psr-2/ | ||
# Drupal editor configuration normalization | ||
# @see http://editorconfig.org/ | ||
|
||
# This is the top-most .editorconfig file; do not search in parent directories. | ||
root = true | ||
|
||
[*.*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
# All files. | ||
[*] | ||
end_of_line = LF | ||
indent_style = space | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{js,scss,yaml,yml}] | ||
indent_size = 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
version: '3' | ||
|
||
# https://taskfile.dev/usage/#env-files | ||
dotenv: ['.env.local', '.env'] | ||
|
||
vars: | ||
# https://taskfile.dev/reference/templating/ | ||
BASE_URL: 'https://{{.TASK_BASE_URL | default .COMPOSE_SERVER_DOMAIN | default .COMPOSE_DOMAIN | default "sharefile2go.local.itkdev.dk"}}' | ||
DOCKER_COMPOSE: '{{.TASK_DOCKER_COMPOSE | default "docker compose"}}' | ||
COMPOSER_INSTALL_ARGUMENTS: '{{.TASK_COMPOSER_INSTALL_ARGUMENTS | default ""}}' | ||
|
||
tasks: | ||
default: | ||
cmds: | ||
- task --list-all | ||
silent: true | ||
|
||
site-install: | ||
prompt: "This will reset your setup. Continue?" | ||
cmds: | ||
- task compose -- down | ||
- task: site-update | ||
- task site-open | ||
# - task site-open:admin | ||
silent: true | ||
|
||
site-update: | ||
cmds: | ||
- task compose -- pull | ||
- task compose-up | ||
- task composer-install | ||
- task console -- --no-interaction doctrine:migrations:migrate | ||
silent: true | ||
|
||
site-url: | ||
cmds: | ||
- echo {{.BASE_URL}} | ||
silent: true | ||
|
||
site-open: | ||
cmds: | ||
- if command -v open 2>&1 >/dev/null; then open "$(task site-url)"; else echo "$(task site-url)"; fi | ||
silent: true | ||
|
||
compose: | ||
cmds: | ||
- '{{.DOCKER_COMPOSE}} {{.CLI_ARGS}}' | ||
|
||
compose-up: | ||
cmds: | ||
- task compose -- up --detach --remove-orphans | ||
silent: true | ||
|
||
composer: | ||
cmds: | ||
- task compose -- exec phpfpm composer {{.CLI_ARGS}} | ||
silent: true | ||
|
||
composer-install: | ||
cmds: | ||
- task composer -- install {{.COMPOSER_INSTALL_ARGUMENTS}} {{.CLI_ARGS}} | ||
silent: true | ||
|
||
console: | ||
cmds: | ||
# Check if we have content on stdin (cf. | ||
# https://unix.stackexchange.com/questions/762992/bash-check-if-the-standard-input-contains-anything) | ||
- >- | ||
if [[ ! -t 0 ]]; then | ||
task compose -- exec --no-TTY phpfpm bin/console {{.CLI_ARGS}}; | ||
else | ||
task compose -- exec phpfpm bin/console {{.CLI_ARGS}}; | ||
fi | ||
silent: true | ||
|
||
coding-standards:apply: | ||
desc: "Apply coding standards" | ||
cmds: | ||
- task: coding-standards:apply:assets | ||
- task: coding-standards:apply:markdown | ||
- task: coding-standards:apply:php | ||
- task: coding-standards:apply:twig | ||
silent: true | ||
|
||
coding-standards:check: | ||
desc: "Apply coding standards" | ||
cmds: | ||
- task: coding-standards:check:assets | ||
- task: coding-standards:check:markdown | ||
- task: coding-standards:check:php | ||
- task: coding-standards:check:twig | ||
silent: true | ||
|
||
coding-standards:apply:assets: | ||
desc: "Apply coding standards for assets" | ||
cmds: | ||
# Prettier does not (yet, fcf. | ||
# https://github.com/prettier/prettier/issues/15206) have an official | ||
# docker image. | ||
# https://hub.docker.com/r/jauderho/prettier is good candidate (cf. https://hub.docker.com/search?q=prettier&sort=updated_at&order=desc) | ||
- docker run --rm --volume "$PWD:/work" jauderho/prettier --write assets | ||
|
||
coding-standards:check:assets: | ||
desc: "Apply and check coding standards for assets" | ||
cmds: | ||
- task: coding-standards:apply:assets | ||
- docker run --rm --volume "$PWD:/work" jauderho/prettier --check assets | ||
|
||
coding-standards:apply:markdown: | ||
desc: "Apply coding standards for Markdown" | ||
cmds: | ||
- docker run --rm --volume "$PWD:/md" peterdavehello/markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'web/*/custom/**/*.md' 'documentation/*.md' --fix | ||
|
||
coding-standards:check:markdown: | ||
desc: "Apply and check coding standards for Markdown" | ||
cmds: | ||
- task: coding-standards:apply:markdown | ||
- docker run --rm --volume "$PWD:/md" peterdavehello/markdownlint markdownlint --ignore '**/node_modules/**' --ignore '**/vendor/**' '*.md' 'web/*/custom/**/*.md' 'documentation/*.md' | ||
|
||
coding-standards:apply:php: | ||
desc: "Apply coding standards for PHP" | ||
cmds: | ||
- task composer -- coding-standards-apply/php | ||
silent: true | ||
|
||
coding-standards:check:php: | ||
desc: "Apply and check coding standards for PHP" | ||
cmds: | ||
- task: coding-standards:apply:php | ||
- task composer -- coding-standards-check/php | ||
silent: true | ||
|
||
coding-standards:apply:twig: | ||
desc: "Apply coding standards for Twig" | ||
cmds: | ||
- task composer -- coding-standards-apply/twig | ||
silent: true | ||
|
||
coding-standards:check:twig: | ||
desc: "Apply and check coding standards for Twig" | ||
cmds: | ||
- task: coding-standards:apply:twig | ||
- task composer -- coding-standards-check/twig | ||
silent: true | ||
|
||
code-analysis: | ||
cmds: | ||
- task composer -- code-analysis | ||
|
||
docker-pull: | ||
desc: "Pull all development docker images" | ||
cmds: | ||
- docker pull jauderho/prettier | ||
- docker pull peterdavehello/markdownlint | ||
- task compose -- pull |
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,16 +1,16 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
div { | ||
padding-left: 1ex; | ||
padding-left: 1ex; | ||
} | ||
|
||
.stderr { | ||
border-left: solid 1ex #ffaaaa; | ||
border-left: solid 1ex #ffaaaa; | ||
} | ||
|
||
.stdout { | ||
border-left: solid 1ex #aaffaa; | ||
border-left: solid 1ex #aaffaa; | ||
} |
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,11 +1,11 @@ | ||
.form-widget input.form-control, | ||
.form-widget textarea.form-control, | ||
.form-widget select.form-control { | ||
max-width: none; | ||
max-width: none; | ||
} | ||
|
||
.edoc-item-list-values { | ||
dd { | ||
margin-left: 1em; | ||
} | ||
dd { | ||
margin-left: 1em; | ||
} | ||
} |
Oops, something went wrong.