Skip to content

Commit 196e266

Browse files
committed
Case 27790;Created chain-site-compile-artifact.yml
1 parent f4ad287 commit 196e266

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Usage: drupal site:compile:prod --placeholder="name:subscriptions" --placeholder="root:/vagrant/repos"
2+
command:
3+
name: site:compile:artifact
4+
description: 'Compiles the source, downloading and extracting the packages.'
5+
commands:
6+
# Run composer
7+
- command: site:compose
8+
arguments:
9+
name: '%{{name}}'
10+
options:
11+
destination-directory: '%{{root|/vagrant/repos}}'
12+
# Run npm
13+
- command: exec
14+
arguments:
15+
bin: 'cd %{{root|/vagrant/repos}}/web; find . -type d \( -name node_modules -o -name contrib -o -path ./core \) -prune -o -name package.json -execdir sh -c "npm install" \;'
16+
# Run grunt
17+
- command: exec
18+
arguments:
19+
bin: 'cd %{{root|/vagrant/repos}}/web; find . -type d \( -name node_modules -o -name contrib -o -path ./core \) -prune -o -name Gruntfile.js -execdir sh -c "grunt" \;'

0 commit comments

Comments
 (0)