Hacker News new | ask | show | jobs
by CGamesPlay 4531 days ago
Cool! I have two questions: does this support watching files to regenerate them?

Second, one of the main features from my similar project (npm install webapp-builder) is appending a socket.io connection to generated HTML to force a browser refresh when files have finished building. I view webapp-builder as too monolithic, so I'm curious how difficult it would be to implement a similar feature in Fez?

1 comments

1) Since it only does the work that needs to be done, you can safely 'watch node fez.js' and if there have been no file changes, nothing will be done! This won't work on Windows, of course, but then I'm not sure if anything else in Fez works on Windows anyway. I'll have to get that going here soon.

2) You can do pretty much whatever sort of transformation you want in an operation. In fact, if you want I can take a look at your code and implement that socket.io appending feature with Fez myself just to show how it can be done.

Thanks for the info. It's not super hi-pri for me right now, but I've starred the project and I'll drop by the IRC channel once I decide it's time to do more work on webapp-builder. Seems like the auto-refreshing bit might make a nice Fez builder (or step, or whatever the lexicon is).