Abstracted the build process to a node module.