Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
admicos

reqpack: Package all your requirements into a single file without any installers

Recommended Posts

reqpack allows you to package all your requirements (require() calls) into a single file

NOTE

I made this in about an hour out of a random idea i had, so this might not be very reliable, YMMV.

Also, since OC uses require() calls for its own APIs, you might want to add them to the ignore list in the config as trying to require them crashes the program in my tests.


USAGE

reqpack <filename>


CONFIGURATION

Create the configuration file using reqpack --extract-conf. All options should be pretty self explanatory


LIMITATIONS

  • Dynamic requires (calling require with anything but a single string) need use_require_if_not_found and cannot be packed
  • Probably more i can't remember right now


DOWNLOAD

wget (latest): https://gitlab.com/a.../v3/reqpack.lua

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.