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

Commit 42b5004

Browse files
authored
Adding docroot to drush.wrapper. (#209)
* Adding docroot to drush.wrapper. * Fixing PHPCS violation. * Fixing incorrect grep usage in removal of git artifacts.
1 parent 519e141 commit 42b5004

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

build/phing/build.xml

+2
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@
153153
<echo>4. Run the following command from the new project root:</echo>
154154
<echo>./blt.sh local:setup</echo>
155155
<echo></echo>
156+
<echo>Follow the documentation in ${blt.new.dir}/README.md for anything else.</echo>
157+
<echo></echo>
156158
</target>
157159

158160
<!-- This target is meant to test BLT itself on TravisCI.

template/build/core/phing/tasks/deploy.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@
128128
</target>
129129

130130
<target name="deploy:sanitize" description="Removes sensitive files from the deploy docroot.">
131-
<exec command="find . -type d | grep .git | xargs rm -rf" dir="${deploy.dir}/docroot"/>
132-
<exec command="find . -type d | grep .git | xargs rm -rf" dir="${deploy.dir}/vendor"/>
131+
<exec command="find . -type d | grep '\.git' | xargs rm -rf" dir="${deploy.dir}/docroot"/>
132+
<exec command="find . -type d | grep '\.git' | xargs rm -rf" dir="${deploy.dir}/vendor"/>
133133
<delete>
134134
<fileset dir="${deploy.dir}/docroot">
135135
<include name="core/*.txt"/>

template/drush.wrapper

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ if [ ! -f ${DIR}/vendor/bin/drush ]; then
3737
composer install
3838
fi
3939

40-
vendor/bin/drush.launcher --alias-path=${DIR}/drush/site-aliases "$@"
40+
vendor/bin/drush.launcher --alias-path=${DIR}/drush/site-aliases "$@" -r ${DIR}/docroot

template/tests/phpunit/Bolt/SettingsTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
namespace Drupal\Tests\PHPUnit;
4+
45
/**
56
* Class SettingsTest.
67
*

0 commit comments

Comments
 (0)