danvk/dygraphs — pull request #307 by brentwalther (2014-07-21 17:06:48+00:00)
Title: Add 'npm install' command and retrieve sources from correct directory.

Add `npm install` command so that node module dependencies are installed before they are used (`uglify-js` in this case).

Also use a variable to store the correct directory for the sources and node_modules. This is valuable if this script (generate-combined.sh) is being called from a different directory e.g. `./some/other/path/generate-combined.sh`