Created
April 21, 2013 23:59
-
-
Save queckezz/5431633 to your computer and use it in GitHub Desktop.
component-build(1) everytime a 'GET' request comes in.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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