77
88tasks :
99 compose :
10+ desc : Run docker compose or itkdev-docker-compose if TASK_DOCKER_COMPOSE is set in .task.env
1011 cmds :
1112 - ' {{ .DOCKER_COMPOSE }} {{ .CLI_ARGS }}'
1213 silent : true
1314
1415 composer :
16+ desc : Run composer through phpfpm container
1517 cmds :
1618 - task compose -- exec phpfpm composer {{ .CLI_ARGS }}
1719 silent : true
1820
1921 drush :
22+ desc : Run drush through phpfpm container
2023 cmds :
2124 - task compose -- exec --no-TTY phpfpm vendor/bin/drush {{ .CLI_ARGS }}
2225 silent : true
2326
2427 build-site:new :
28+ desc : Build a new site with a custom theme
2529 cmds :
2630 - task drush -- site:install minimal -y
2731 - task compose -- run phpfpm php /app/web/core/scripts/drupal generate-theme {{.THEMENAME}} --name="{{.THEMENAME_READABLE}}" --path="themes/custom" --starterkit=starterkit_project_theme
@@ -35,17 +39,21 @@ tasks:
3539 msg : " THEMENAME should only contain lowercase a-z and underscores"
3640
3741 build-site:existing-conf :
42+ desc : Build a new site from existing site configuration
3843 cmds :
3944 - task compose -- up --detach
4045 - task composer -- install
4146 - task drush -- site-install --existing-config --yes
4247
43- simulate-github-actions :
48+ check-code :
49+ desc : Check php, twig and markdown code
4450 cmds :
45- - task composer -- normalize
46- - task check-code
51+ - docker run --rm --volume "$PWD:/md" itkdev/markdownlint '**/*.md'
52+ - task composer -- code-analysis
53+ - task composer -- coding-standards-check/twig-cs-fixer
4754
48- check-code :
55+ apply-coding-styles :
56+ desc : Apply coding styles to twig and php
4957 cmds :
5058 - docker run --rm --volume "$PWD:/md" itkdev/markdownlint '**/*.md'
5159 - task composer -- code-analysis
0 commit comments