Skip to content

Commit

Permalink
Add callout for bootleg_phoenix (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
brienw authored and holetse committed Jul 27, 2017
1 parent 765579f commit 8738164
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,19 +318,21 @@ end

Bootleg builds elixir apps, if your application has extra steps required make use of the hooks
system to add additional functionality. A common case is for building assets for Phoenix
applications. To build phoenix assets during your build, define an after hook handler for the
`:compile` task and place it inside your `config/deploy.exs`.
applications. To build phoenix assets during your build, include the additional package
`bootleg_phoenix` to your `deps` list. This will automatically perform the additional steps required
for building phoenix releases.

```elixir
after_task :compile do
remote :build do
"[ -f package.json ] && npm install || true"
"[ -f brunch-config.js ] && [ -d node_modules ] && ./node_modules/brunch/bin/brunch b -p || true"
"[ -d deps/phoenix ] && mix phoenix.digest || true"
end
# mix.exs
def deps do
[{:distillery, "~> 1.3"},
{:bootleg, "~> 0.2.0"},
{:bootleg_phoenix, "~> 0.1.0"}]
end
```

For more about `bootleg_phoenix` see: https://github.com/labzero/bootleg_phoenix

## Sharing Tasks

Sharing is a good thing. We love to share, espically awesome code we write. Bootleg supports loading
Expand Down

0 comments on commit 8738164

Please sign in to comment.