-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watch or auto build option #7
Comments
Jenga has a watcher, but it's currently linux-only. I guess you could set up your own watcher for now? |
I've set up my own watcher for now, I'll close this issue. |
@IwanKaramazow - What worked well for you? |
@jordwalke : // watch.js
const { exec } = require('child_process');
const sane = require('sane'); //wrapper around fs.watch
const src = `${__dirname}/src`;
const compile_command = 'node ./node_modules/.bin/run';
const watcher = sane(src);
watcher.on('change', (filepath, root, stat) => {
exec(compile_command, (err, stdout, stderr) => {
if (err) {
console.error(err);
return;
}
console.log(stdout);
});
}); It does the job... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should there be something like an auto build option at the level of Jengaboot, or is it up to the user to write a script for this? I'm currently using a simple node script that watches the src folder and rebuilds on change.
The text was updated successfully, but these errors were encountered: