-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
65 lines (55 loc) · 2 KB
/
Taskfile.yml
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
version: '3'
dotenv: ['.env', '.env.defaults']
includes:
deploy: ./vendor/lullabot/drainpipe/tasks/deploy.yml
drupal: ./vendor/lullabot/drainpipe/tasks/drupal.yml
github: ./vendor/lullabot/drainpipe/tasks/github.yml
sass: ./vendor/lullabot/drainpipe/tasks/sass.yml
snapshot: ./vendor/lullabot/drainpipe/tasks/snapshot.yml
test: ./vendor/lullabot/drainpipe/tasks/test.yml
javascript: ./vendor/lullabot/drainpipe/tasks/javascript.yml
output: prefixed
silent: true
#vars:
# DRAINPIPE_SASS: |
# web/themes/custom/mytheme/style.scss:web/themes/custom/mytheme/style.css
# DRAINPIPE_JAVASCRIPT: |
# web/themes/custom/mytheme/script.js:web/themes/custom/mytheme/script.min.js
tasks:
sync:
desc: "Sync a database from production and import it"
cmds:
# Replace this with a command to fetch your database.
- ./vendor/bin/drush site:install -y
- echo "🧹 Sanitising database"
- ./vendor/bin/drush sql:sanitize --yes
build:
desc: "Builds the project for production"
deps: [drupal:composer:production]
cmds:
- echo "Nothing to do"
#- task: assets
build:dev:
desc: "Builds the project for development"
deps: [drupal:composer]
cmds:
# @see https://architecture.lullabot.com/adr/20211026-one-time-login-first-drupal-user-account/
- ./vendor/bin/drush user:unblock --uid=1
# Ignore the below modules in sites/default/settings.php e.g.
# $settings['config_exclude_modules'] = ['stage_file_proxy', 'field_ui', 'views_ui'];
# - ./vendor/bin/drush pm:enable stage_file_proxy views_ui field_ui -y
# Drush aliases will be passed through e.g. task update site=@staging
update:
desc: "Runs the Drupal update process"
cmds:
- task: drupal:update
# assets:
# desc: "Builds assets such as CSS & JS"
# cmds:
# - yarn install
# - task: javascript:compile
# - task: sass:compile
#
# assets:watch:
# desc: "Builds assets such as CSS & JS, and watches them for changes"
# deps: [sass:watch, javascript:watch]