-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
72 lines (61 loc) · 2.56 KB
/
Copy pathTaskfile.yml
File metadata and controls
72 lines (61 loc) · 2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3"
vars:
# https://taskfile.dev/reference/templating/
DOCKER_COMPOSE: '{{.TASK_DOCKER_COMPOSE | default "docker compose"}}'
tasks:
default:
desc: List available tasks
cmds:
- task --list
silent: true
compose:
desc: Run a docker compose command, e.g. task compose -- run --rm php composer install
cmds:
- "{{.DOCKER_COMPOSE}} {{.CLI_ARGS}}"
composer:install:
desc: Install PHP dependencies
cmds:
- docker run --interactive --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer install
composer:normalize:
desc: Normalize composer.json
cmds:
- docker run --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer normalize
install:
desc: Install Node.js dependencies
cmds:
- task: compose
vars:
CLI_ARGS: run --rm php npm install
dev:
desc: Build assets and watch for changes
cmds:
- task: compose
vars:
CLI_ARGS: run --rm php npm run dev
build:
desc: Build assets
cmds:
- task: compose
vars:
CLI_ARGS: run --rm php npm run build
code-analysis:
desc: Run static analysis (phpstan)
cmds:
- docker run --interactive --rm --volume ${PWD}:/app --env PHP_MEMORY_LIMIT=256M itkdev/php8.3-fpm:latest composer code-analysis
coding-standards:check:
desc: Run all coding standards checks
cmds:
- docker run --rm --volume "$PWD:/app" -w /app shufo/blade-formatter:1.11.11 Templates/*.blade.php --check-formatted
- docker run --interactive --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-check
- docker run --rm -v "$(pwd):/work" tmknom/prettier:latest --check assets
- docker run --rm --volume "$PWD:/md" itkdev/markdownlint '**/*.md'
- docker run --rm --volume "$PWD:/app" --workdir /app peterdavehello/shellcheck shellcheck bin/create-release
- docker run --rm --volume "$PWD:/app" --workdir /app peterdavehello/shellcheck shellcheck bin/deploy
- docker run --rm --volume "$PWD:/app" --workdir /app peterdavehello/shellcheck shellcheck bin/local.create-release
coding-standards:apply:
desc: Apply all coding standards fixes
cmds:
- docker run --rm --volume "$PWD:/app" -w /app shufo/blade-formatter:1.11.11 Templates/*.blade.php --write
- docker run --interactive --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-apply
- docker run --rm -v "$(pwd):/work" tmknom/prettier:latest --write assets
- docker run --rm --volume "$PWD:/md" itkdev/markdownlint '**/*.md' --fix