Use npm scripts for building and test.
Merge pull request #4867 from rjackson/add-build-script

Use npm scripts for building and test.