-
Notifications
You must be signed in to change notification settings - Fork 0
/
crossbow.yaml
70 lines (59 loc) · 1.47 KB
/
crossbow.yaml
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
env:
PHP: docker-compose exec --user www-data php
MAGE: docker-compose exec --user www-data php ./bin/magento
THEME: Magento/luma
tasks:
build:
- wipe-pub
- cache
- deploy
- bundle
- workbox
workbox:
adaptor: sh
command: |
$PHP workbox injectManifest pub/static/frontend/Magento/luma/en_GB/Jh_Offline/workbox-cli-config.js
wipe-pub:
adaptor: sh
command: |
$PHP rm -rf pub/static
cache:
adaptor: sh
command: |
$MAGE cache:flush
$MAGE setup:upgrade
deploy:
adaptor: sh
command: |
$MAGE setup:static-content:deploy en_GB -f --theme ${THEME}
(cp):
pub:
tasks:
- '@sh mkdir -p magento/pub'
- adaptor: sh
command: |
rm -rf magento/pub/**
docker cp $(docker-compose ps -q php):/var/www/pub/. magento/pub/.
bundle:
adaptor: sh
command: >
$PHP m2-builder build
--config pub/static/frontend/${THEME}/en_GB/Jh_Build/config.json
revert:
adaptor: sh
command: >
$PHP m2-builder build
--config pub/static/frontend/${THEME}/en_GB/Jh_Build/config.json
php:
adaptor: sh
command: $PHP $CB_CLI_TRAILING
mage:
adaptor: sh
command: $MAGE $CB_CLI_TRAILING
open:
adaptor: sh
command: >
/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
--user-data-dir=/tmp/foo
--ignore-certificate-errors
--unsafely-treat-insecure-origin-as-secure=https://shop.pwa.m2