modd
modd copied to clipboard
Ability to use @variables in file watch patterns
Hi. It doesn't look like we can use @variables
in file watch patterns.
I have this make
recipe that I would like to convert into a modd
block:
$(build_js): $(wildcard $(source)/$(js)/*.js) $(wildcard $(source)/$(js)/**/*.js)
browserify -t debowerify -t hintify $(source_js) -o $(build_js)
where $(build_js)
is a variable made up of several other variables earlier in my Makefile
. This is useful because I can have a generic Makefile
that is easy to configure on a per-project basis. If I must change a directory/file name, I only have to change it once.
In modd.conf
, the recipe above looks like:
source/js/**/*.js {
browserify -t debowerify -t hintify @source_js -o @build_js
}
which works perfectly well but is not as "smart" as the make
recipe because I (or a coworker/contractant) would need to search/replace source/js
instead of changing it one place.
Granted, that's not really a showstopper but still.
Thanks for devd
and modd
.