Closed fenollp closed 7 years ago
Hmm... parse_trans
has no current dependency to jsx
, but it's in examples/
, which should be ok. Also, I like the example.
However, if you simply cd to examples/
and type make
, compilation will break until you manually fetched jsx
. This should be documented, at a minimum, or addressed in examples/Makefile
.
Hm I thought examples/ were not really ready for compilation, just to show the idea.
What lead me to believe that is you can't make test -C examples/
due to this util file being missing.
Not sure how to add a test-time dependency on jsx with rebar2... What about I just mock the jsx call (replace it with something along json_decode("bla.json") -> (maps:from_list([]))#{<<"k">> => [42]}.
)?
Yeah, examples
really should evolve into something testable, but I've been too lazy to do it. ;-)
Updated. I can squash if you want.
That's ok. Merged. Thanks.
Thank you :) Could you publish on https://hex.pm/packages/parse_trans ?
Done, version 3.1.0
Fixes https://github.com/uwiger/parse_trans/issues/23