Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
elnebuloso committed Jan 28, 2015
1 parent 384730b commit 3c6a162
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 8.0.1

- added composer.optimize target

## 8.0.0

- updated chains
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.0.0
8.0.1
4 changes: 4 additions & 0 deletions commons/targets/composer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<import file="${phing:commons:commons}/targets/composer/format.xml" />
<import file="${phing:commons:commons}/targets/composer/install.xml" />
<import file="${phing:commons:commons}/targets/composer/optimize.xml" />
<import file="${phing:commons:commons}/targets/composer/update.xml" />
<import file="${phing:commons:commons}/targets/composer/validate.xml" />

Expand All @@ -15,12 +16,15 @@
<echo message="----------------------------------------------------------------------------------------------------" />
<echo message="composer.format Format the composer.json using JSON_PRETTY_PRINT" />
<echo message="composer.install Install dependencies, if composer.lock available, keep exact versions" />
<echo message="composer.optimize Optimizing Composer" />
<echo message="composer.update Install latest versions of the dependencies and update the composer.lock" />
<echo message="composer.validate Validates the composer.json in your project root" />
<echo message="" />
<echo message="Composer Targets Help" />
<echo message="----------------------------------------------------------------------------------------------------" />
<echo message="composer.format:help" />
<echo message="composer.install:help" />
<echo message="composer.optimize:help" />
<echo message="composer.update:help" />
<echo message="composer.validate:help" />
</target>
Expand Down
48 changes: 48 additions & 0 deletions commons/targets/composer/optimize.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>


<project default="composer.optimize">


<target name="composer.optimize:init" hidden="true">
<property name="composer.executable" value="composer" />
</target>


<target name="composer.optimize:before" hidden="true">
<echo message="no actions defined" level="debug" />
</target>


<target name="composer.optimize:main" hidden="true">
<available file="${project.root}/composer.json" type="file" property="composer.json.exists" />

<if>
<isset property="composer.json.exists" />
<then>
<exec executable="${composer.executable}" logoutput="true" passthru="true" level="info" checkreturn="yes">
<arg line="dump-autoload --optimize" />
</exec>
</then>
</if>
</target>


<target name="composer.optimize:after" hidden="true">
<echo message="no actions defined" level="debug" />
</target>


<target name="composer.optimize" depends="composer.optimize:init, composer.optimize:before, composer.optimize:main, composer.optimize:after">
<echo message="successful" />
</target>


<target name="composer.optimize:help" depends="composer.optimize:init">
<echo message="Property Value" />
<echo message="----------------------------------------------------------------------------------------------------" />
<echo message="composer.executable ${composer.executable}" />
</target>


</project>

0 comments on commit 3c6a162

Please sign in to comment.