A small set of mix tasks for creating mix commands that run npm commands.
mix npm SUBCOMMAND [ARGS]
is equivalent tonpm SUBCOMMAND ARGS
mix npm.run SCRIPT [ARGS]
is equivalent tonpm run SCRIPT ARGS
If available in Hex, the package can be installed
by adding mix_npm
to your list of dependencies in mix.exs
:
def deps do
[{:mix_npm, "~> 0.1.0"}]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/mix_npm.