Skip to content

On using for a plugin #26

Answered by Olical
katawful asked this question in Q&A
Dec 16, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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.

{:source-file-patterns ["test/fnl/**/*.fnl"]}

Now when you write any changes to your test files they'll be compiled to test/lua/... but nothing else.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Olical
Comment options

Answer selected by katawful
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants