|
1 | 1 | <project name="blt" default="update">
|
2 |
| - <target name="create-project" depends="init"> |
| 2 | + <target name="create-project" depends="update"> |
3 | 3 | <exec dir="${repo.root}" command="git init" logoutput="true" checkreturn="true" level="info" passthru="true"/>
|
4 | 4 | <echo>Updating composer dependencies, this make take a while...</echo>
|
5 | 5 | <exec dir="${repo.root}" command="export COMPOSER_PROCESS_TIMEOUT=600; composer update" logoutput="true" checkreturn="true" level="info" passthru="true"/>
|
|
8 | 8 | <exec dir="${repo.root}" command="rm LICENSE.txt" logoutput="true" checkreturn="true" level="info" passthru="true"/>
|
9 | 9 | </target>
|
10 | 10 |
|
11 |
| - <target name="init" depends="blt:rsync-template, blt:update-composer, blt:update-yml, setup:drupal:settings"> |
12 |
| - <echo>BLT files have been copied to your project directory.</echo> |
13 |
| - <echo>Some of your existing files may have been modified.</echo> |
14 |
| - <echo></echo> |
15 |
| - <echo>Please customize ${repo.root}/project.yml.</echo> |
16 |
| - </target> |
17 |
| - |
18 | 11 | <target name="blt:rsync-template">
|
19 | 12 | <echo>Copying files from BLT's template into your project.</echo>
|
20 | 13 | <!-- @todo Do not overwrite structured or executable files. Instead, update them intelligently settings.php, drush.wrapper etc. -->
|
|
24 | 17 | <exec dir="${repo.root}" command="rsync -a --no-g ${blt.root}/template/ ${repo.root}/ --include-from=${blt.update.ignore-existing-file} --ignore-existing" logoutput="true" checkreturn="true" level="info" passthru="true"/>
|
25 | 18 | </target>
|
26 | 19 |
|
27 |
| - <target name="update" depends="init"> |
28 |
| - <!-- @todo Ignore some files, settings.php, project.yml, in update. Instead, change only specific values. --> |
| 20 | + <target name="update" depends="blt:rsync-template, blt:update-composer, blt:update-yml, setup:drupal:settings"> |
29 | 21 | <echo>Some of your customized files may have been modified.</echo>
|
30 | 22 | <echo>Please review changes with "git diff".</echo>
|
31 | 23 | <echo>If your composer.json was modified, you need to run "composer update".</echo>
|
|
0 commit comments