Aino.Watcher (aino v0.6.0)

Launch external processes along with the Aino

Example:

watchers = [
  [
    command: "node_modules/yarn/bin/yarn",
    args: ["build:js:watch"],
    directory: "assets/"
  ],
  [
    command: "node_modules/yarn/bin/yarn",
    args: ["build:css:watch"],
    directory: "assets/"
  ]
]

children = [
  {Aino.Watcher, name: MyApp.Watcher, watchers: watchers}
]

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for Supervisor.init/1.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for Supervisor.init/1.

Link to this function

start_link(opts)