Skip to content

Commit

Permalink
new(sspak) Added 'pak' and 'unpak' targets for working with a standar…
Browse files Browse the repository at this point in the history
…d sspak location for a site
  • Loading branch information
nyeholt authored and Jake B committed Jul 18, 2018
1 parent a358ac2 commit cf9bd9b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ Installation
* Run `phing -f scripts/build.xml test` to make sure everything's working as expected


## Phing targets

Commonly used targets

* build
* test
* package

Helpful for development:

* `pak` - builds a .sspak file at mysite/build/site.sspak . Useful for CI

## Composer scripts

If your themes use yarn based dependencies, you can add the following post-install
Expand Down
8 changes: 8 additions & 0 deletions buildfile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ define('ENV_DEV', '1');
</if>
</target>

<target name="pak">
<delete file="mysite/build/site.sspak" />
<exec command="sspak save . mysite/build/site.sspak" passthru="true" />
</target>

<target name="unpak">
<exec command="sspak load mysite/build/site.sspak ." passthru="true" />
</target>

<!-- Create a deployable package to use as the base for installing a new site FROM SCRATCH.
Please use the update-package target for creating a package to use for an update -->
Expand Down

0 comments on commit cf9bd9b

Please sign in to comment.