NpmInstall (npm_install v0.1.0)

You only have to add to your deps for it to do npm install for you.

Optional config

import Config

config :npm_install,
  on_build: false, # If you set it to false then it won't install on build
  pwd: "frontend" # If the package.json file is in a different place, like in phoenix

Summary

Functions

Optional command to run npm install after compiling it.

Optional command to run npm install after compiling it with options.

Functions

run()

Optional command to run npm install after compiling it.

run(options)

Optional command to run npm install after compiling it with options.

Current options are:

pwd - where the package.json and node_modules should be