command line server + browserify
npm install -g watchify famous
Now create a new app folder using famous:
famous -c myAppDirnamecd myAppDirname
famous -c creates everything you need to get started. There's an index.js, for your module, an entry.js for your pre-bundle, and a public folder for serving it all up.
Now write your module in index.js, and module.export it.
return x + 4
in your entry.js, do:
var fn = require'./'console.logfn12
then whip up the server with famous:
famous -e entry.js -o public/bundle.js
Your app will be served up at a your localhost, port 11001 or greater. You can edit the code, and b/c we're using watchify, your bundle will update automatically. You have to refresh the page tho. Note that all arguments to famous are passed to browserify, so you can use browserify to full effect.