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

Commit f645857

Browse files
dpaginigrasmash
authored andcommitted
Fixes #599: remove factory-hooks from default template. (#923)
1 parent 64a68ef commit f645857

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

phing/tasks/acsf.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- Set the acsf repo/branch-->
44
<property name="acsf.package" value="drupal/acsf:^1.33.0" override="false"/>
5-
<target name="acsf:init" description="Initializes ACSF support for project.">
5+
<target name="acsf:init" depends="acsf:init:hooks" description="Initializes ACSF support for project.">
66
<echo>Adding acsf module as a dependency.</echo>
77
<echo>In future, you may use pass a custom value for acsf.package to override default version. E.g., blt acsf:init -Dacsf.package='drupal/acsf:8.1.x-dev'</echo>
88
<exec dir="${repo.root}" command="composer require ${acsf.package}" logoutput="true" checkreturn="true" passthru="true" level="${blt.exec_level}"/>
@@ -20,4 +20,10 @@
2020
<echo>An example alias file for ACSF is located in /drush/site-aliases/example.acsf.aliases.drushrc.php.</echo>
2121
</target>
2222

23+
<target name="acsf:init:hooks" description="Creates the /factory-hooks folder in the repo root." hidden="true">
24+
<copy todir="${repo.root}/factory-hooks" overwrite="false">
25+
<fileset dir="${blt.root}/settings/acsf"/>
26+
</copy>
27+
<echo>New "factory-hooks/" directory created in repo root. Please commit this to your project.</echo>
28+
</target>
2329
</project>

0 commit comments

Comments
 (0)