openresty / openresty/opm

Allow bundling non-Lua files

Open
#79 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
485
Forks
76
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the opm build entry point and dist.ini handling to see how package files are selected and why stops_en.txt is omitted. Verify the init_by_lua use case and define completion as allowing a configured non-Lua file such as stops_en.txt to be included in the built package without changing existing Lua bundling.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.