7
7
8
8
tasks :
9
9
compose :
10
+ desc : Run docker compose or itkdev-docker-compose if TASK_DOCKER_COMPOSE is set in .task.env
10
11
cmds :
11
12
- ' {{ .DOCKER_COMPOSE }} {{ .CLI_ARGS }}'
12
13
silent : true
13
14
14
15
composer :
16
+ desc : Run composer through phpfpm container
15
17
cmds :
16
18
- task compose -- exec phpfpm composer {{ .CLI_ARGS }}
17
19
silent : true
18
20
19
21
drush :
22
+ desc : Run drush through phpfpm container
20
23
cmds :
21
24
- task compose -- exec --no-TTY phpfpm vendor/bin/drush {{ .CLI_ARGS }}
22
25
silent : true
23
26
24
27
build-site:new :
28
+ desc : Build a new site with a custom theme
25
29
cmds :
26
30
- task drush -- site:install minimal -y
27
31
- 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:
35
39
msg : " THEMENAME should only contain lowercase a-z and underscores"
36
40
37
41
build-site:existing-conf :
42
+ desc : Build a new site from existing site configuration
38
43
cmds :
39
44
- task compose -- up --detach
40
45
- task composer -- install
41
46
- task drush -- site-install --existing-config --yes
42
47
43
- simulate-github-actions :
48
+ check-code :
49
+ desc : Check php, twig and markdown code
44
50
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
47
54
48
- check-code :
55
+ apply-coding-styles :
56
+ desc : Apply coding styles to twig and php
49
57
cmds :
50
58
- docker run --rm --volume "$PWD:/md" itkdev/markdownlint '**/*.md'
51
59
- task composer -- code-analysis
0 commit comments