browserify / browserify/watchify

watchify events in makefile

Open
#340 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
178
PR merge metrics
No merged PRs in 30d

Description

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

```shell
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

```shell
$ watchify -t babelify -e app.js -o app.min.js --on-update-task setup
```
where `setup` is `make` task.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.