Skip to content
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

watchify events in makefile #340

Open
allochi opened this issue Mar 28, 2017 · 0 comments
Open

watchify events in makefile #340

allochi opened this issue Mar 28, 2017 · 0 comments

Comments

@allochi
Copy link

allochi commented Mar 28, 2017

Hi,

I have a build setup using Makefile, it works great, and it's less headache than other build tools for my taste.

I use also watchman-make for other resources in my Makefile, and it has a nice feature to call a task when it find a change

watchman-make -p 'src/backend/app/views/**/*.tmpl' -t templates -p 'src/backend/app/**/*.go' 'src/backend/main.go' -t run

both template and run are tasks that get called when there is a a change in the watched folders.

Is there a way to achieve the same using watchify on command line? maybe

$ watchify -t babelify -e app.js -o app.min.js --on-update-task setup

where setup is make task.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant