# `mix phoenix_cap.update`
[🔗](https://github.com/elchemista/phoenix_cap/blob/v0.1.0/lib/mix/tasks/phoenix_cap.update.ex#L1)

Updates bundled Cap widget and WASM assets from npm.

    mix phoenix_cap.update
    mix phoenix_cap.update --widget latest --wasm latest
    mix phoenix_cap.update --widget 0.1.65 --wasm 0.0.8
    mix phoenix_cap.update --no-wasm

The task intentionally uses `npm pack` instead of depending on a JavaScript
package manager layout in this repository. It copies only the files
PhoenixCap vendors.

# `run`

```elixir
@spec run([String.t()]) :: :ok | nil
```

Downloads widget and browser WASM assets and records their versions in the destination.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
