How to clone from a github repo and then run npm install on puppet

I have worked out how to fire up a vagrant box and apt-get install packages

I now want to git clone a node.js repo from github before running npm install and running the app with node app.js

I expected to be able to achieve this by issuing BASH commands, but I see now that puppet requires this to be done in a puppety way. The results from Google on this issue are confusing and inconsistent.

So- how do you tell Puppet to git clone a node.js package from github and then install it with npm install?

Git Baby is a git and github fan, let's start git clone.