-
Moving from here, I would like to use this for my macros repo for an easier time to write tests (compared to just writing from plenary direct), but I'm not sure how to do it exactly. The docs say it can be done, but from what I've read it seems like you need to have nfnl installed from the get go (which i don't wish to do atm until I've gotten to rewriting my configs) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You do need {:source-file-patterns ["test/fnl/**/*.fnl"]} Now when you write any changes to your test files they'll be compiled to |
Beta Was this translation helpful? Give feedback.
You do need
nfnl
as a plugin yes, but it won't do anything unless you're working in a directory with an nfnl config file (.nfnl.fnl
). So it's effectively doing nothing until you configure it for your project. You can then configure it to ONLY compile files within a certain directory, such as your tests directory. I think this would scope it, you would add this to.nfnl.fnl
.Now when you write any changes to your test files they'll be compiled to
test/lua/...
but nothing else.