Skip to content

Commit 35d910e

Browse files
committed
Updated tasks
1 parent 42e73f3 commit 35d910e

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tasks:
2222
- task rename
2323

2424
# Remove build scripts
25-
- rmdir deploy-templates/scripts
25+
- rm -Rf deploy-templates/scripts
2626

2727
# Move the rest of the files "here"
2828
- mv deploy-templates/* .
@@ -48,4 +48,4 @@ tasks:
4848
desc: Sed command fails in github actions, so we require darwin platform to avoid. @todo better approach.
4949
cmds:
5050
- docker run --rm --volume=$PWD:/app itkdev/php8.3-fpm:latest sed -i -e 's/{PROJECTNAME}/{{.PROJECTNAME}}/g' README.md CHANGELOG.md
51-
platforms: ['darwin']
51+
platforms: ['darwin']

deploy-templates/Taskfile.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@ vars:
77

88
tasks:
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

Comments
 (0)