Skip to content

Instantly share code, notes, and snippets.

@queckezz
Created April 21, 2013 23:59
Show Gist options
  • Save queckezz/5431633 to your computer and use it in GitHub Desktop.
Save queckezz/5431633 to your computer and use it in GitHub Desktop.
component-build(1) everytime a 'GET' request comes in.
var exec = require('child_process').exec;
app.all('*', function( req, res, next ) {
exec('component build --out ./public/js', next)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment