|
1 | 1 | <project name="blt" default="update">
|
2 | 2 | <target name="create-project" hidden="true">
|
3 | 3 | <exec dir="${repo.root}" command="git init" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
|
| 4 | + |
| 5 | + <!-- Remove files leftover from acquia/blt-project. --> |
| 6 | + <delete failonerror="false"> |
| 7 | + <fileset dir="${repo.root}"> |
| 8 | + <include name=".travis.yml"/> |
| 9 | + <include name="LICENSE.txt"/> |
| 10 | + <include name="README.md"/> |
| 11 | + </fileset> |
| 12 | + </delete> |
| 13 | + |
| 14 | + <!-- Pull in initial template files. --> |
| 15 | + <exec dir="${repo.root}" command="blt blt:rsync-template" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/> |
| 16 | + <exec dir="${repo.root}" command="blt blt:update-composer" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/> |
| 17 | + |
4 | 18 | <echo>Updating composer dependencies, this make take a while...</echo>
|
5 | 19 | <exec dir="${repo.root}" command="export COMPOSER_PROCESS_TIMEOUT=600; composer update --no-interaction" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
|
6 | 20 | <copy file="${repo.root}/docroot/profiles/contrib/lightning/lightning.extend.yml" tofile="${repo.root}/docroot/sites/default/lightning.extend.yml"/>
|
7 | 21 |
|
8 |
| - <!--Write project.machine_name to project.yml.--> |
| 22 | + <!--Write project.machine_name to project.yml, using name of working directory as value.. --> |
9 | 23 | <exec dir="${repo.root}" command="result=${PWD##*/}; printf '%s\n' "${PWD##*/}"" logoutput="false" checkreturn="true" level="${blt.exec_level}" passthru="false" outputProperty="dirname"/>
|
10 |
| - <exec dir="${repo.root}" command="${composer.bin}/drupal yaml:update:value ${blt.config-files.project} project.machine_name '${dirname}'" logoutput="true" checkreturn="false" level="${blt.exec_level}" passthru="true"/> |
| 24 | + <exec dir="${repo.root}" command="${composer.bin}/yaml-cli update:value ${blt.config-files.project} project.machine_name '${dirname}'" logoutput="true" checkreturn="false" level="${blt.exec_level}" passthru="true"/> |
11 | 25 |
|
12 | 26 | <!-- Remove default git remote -->
|
13 |
| - <exec dir="${repo.root}" command="${composer.bin}/drupal yaml:update:value ${blt.config-files.project} git.remotes.0 ''" logoutput="true" checkreturn="false" level="${blt.exec_level}" passthru="true"/> |
| 27 | + <exec dir="${repo.root}" command="${composer.bin}/yaml-cli update:value ${blt.config-files.project} git.remotes.0 ''" logoutput="true" checkreturn="false" level="${blt.exec_level}" passthru="true"/> |
14 | 28 |
|
15 | 29 | <exec dir="${repo.root}" command="git add -A" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
|
16 | 30 | <exec dir="${repo.root}" command="git commit -m 'Initial commit.'" logoutput="true" checkreturn="true" level="${blt.exec_level}" passthru="true"/>
|
|
0 commit comments