Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 169fcfa

Browse files
committed
Improving upgrade path.
1 parent 4350ea7 commit 169fcfa

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

phing/tasks/blt.xml

+6-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020

2121
<target name="blt:rsync-template">
2222
<echo>Copying files from BLT's template into your project.</echo>
23-
<!-- @todo Do not overwrite structured or executable files. Instead, update them intelligently. composer.json, project.yml, settings.php, drush.wrapper etc. -->
24-
<exec dir="${repo.root}" command="rsync -a --no-g --no-p --update ${blt.root}/template/ ${repo.root}/ --exclude 'project.yml' --exclude 'composer.json'" logoutput="true" checkreturn="true"/>
25-
<exec dir="${repo.root}" command="rsync -a --no-g --no-p --update ${blt.root}/template/project.yml ${repo.root}/ --ignore-existing" logoutput="true" checkreturn="true"/>
26-
<exec dir="${repo.root}" command="rsync -a --no-g --no-p --update ${blt.root}/template/README.md ${repo.root}/ --ignore-existing" logoutput="true" checkreturn="true"/>
23+
<!-- @todo Do not overwrite structured or executable files. Instead, update them intelligently settings.php, drush.wrapper etc. -->
24+
<exec dir="${repo.root}" command="rsync -a --no-g ${blt.root}/template/ ${repo.root}/ --exclude '/project.yml' --exclude '/composer.json' --exclude '/README.md'" logoutput="true" checkreturn="true"/>
25+
26+
<!--Rsync files without overwriting existing-->
27+
<exec dir="${repo.root}" command="rsync -a --no-g ${blt.root}/template/project.yml ${repo.root}/ --ignore-existing" logoutput="true" checkreturn="true"/>
28+
<exec dir="${repo.root}" command="rsync -a --no-g ${blt.root}/template/README.md ${repo.root}/ --ignore-existing" logoutput="true" checkreturn="true"/>
2729
</target>
2830

2931
<target name="update" depends="init, blt:update-yml, configure">

phing/tasks/validate.xml

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
</target>
6363

6464
<target name="validate:phpcs:fileset" description="Runs PHP Code Sniffer against only custom modules.">
65+
<echo>Code sniffing ${fileset_refid}</echo>
6566
<!-- Sniff tests. -->
6667
<phpcodesniffer
6768
standard="${phpcs.ruleset}"

scripts/blt/convert-to-composer.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
7373
echo ""
7474
echo "* Restart your terminal session to register your new blt alias."
7575
echo "* Review your codebase and commit the desired changes."
76-
echo "* If you have a custom Phing build file, you will likely need to update it and add it to project.yml under the 'import' key. See readme/extending-blt.md."
77-
echo "* If you are not using Lightning, remove lightning-specific target-hooks from project.yml."
78-
# .travis.yml
79-
# hash salt in settings.php
80-
# readme overrides
76+
echo " * If you have a custom Phing build file, you will likely need to update it and add it to project.yml under the 'import' key. See readme/extending-blt.md."
77+
echo " * If you are not using Lightning, remove lightning-specific target-hooks from project.yml."
78+
# link to online docs
79+
80+
./vendor/bin/drupal yaml:get:value project.yml project.hash_salt > salt.txt
81+
# remove project.hash_salt, project.themes, project.vendor from project.yml
8182

8283
else
8384
exit 1

0 commit comments

Comments
 (0)