Warning: This version of gpm is outdated, if you are going to use it in your projects, it is better to use the main version, here.
- Package information structure like package.json
- SemVer 2.0 support with npm version matching
- Package dependency support
- Create
package.luaandmain.luafiles in directorylua/gpm/packages/<your-package-name>/. - Enter information about your package in
package.lua(See package.lua), or just writereturn {}. - Write your code in
main.lua, this is shared file, so you can write serverside and clientside code.
Also, you can run an existing addon via gpm, just add the code below to package.lua, and you don’t even need to add main.lua.
-- package.lua
return {
-- gpm will run the specified file instead of main.lua
main = "path/to/my/code/init.lua",
}MIT © Pika Software