opm icon indicating copy to clipboard operation
opm copied to clipboard

Allow bundling non-Lua files

Open gnois opened this issue 5 years ago • 3 comments

I have a stops_en.txt text file that lists stop-words to omit when generating slug. This text file will be read once during init_by_lua.

When I do opm build, seems like the text file is ignored. Is it because only Lua files are allowed?

Is so, can we enable bundling non-Lua files such as .txt? Perhaps with an include_files key in dist.ini?

gnois avatar Apr 19 '20 16:04 gnois

yeah, .txt suffix files will be ignored. I think include_files is a good idea, will you please contribute a PR for it?

doujiang24 avatar Apr 19 '20 16:04 doujiang24

I think a MANIFEST file similar to Perl's CPAN module is more convenient.

agentzh avatar Apr 19 '20 21:04 agentzh

I have to admit I am not familiar with Perl. If we go down the MANIFEST path, there is also MANIFEST.SKIP as I just learned from online. Is that going to overlap exclude_files key in dist.ini in terms of functionality?

gnois avatar Apr 20 '20 00:04 gnois