Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create a package manager #60

Open
RodrigoDornelles opened this issue Aug 27, 2024 · 0 comments
Open

feat: create a package manager #60

RodrigoDornelles opened this issue Aug 27, 2024 · 0 comments
Labels
Core Team responsibility for project maintainers. difficulty: expert require low level experiencie

Comments

@RodrigoDornelles
Copy link
Member

RodrigoDornelles commented Aug 27, 2024

lock and mayable registry example

{
    "count": 2,
    "deps": [
        "love",
        "dialog"
    ],
    "downloads": {
        "love": [
            {
                "url": "https://github.com/love2d/love/releases/download/11.5/love-11.5-win32.zip",
                "src": "./vendor/love/bin/x86"
            },
            {
                "url": "https://github.com/love2d/love/releases/download/11.5/love-11.5-win64.zip",
                "src": "./vendor/love/bin/x86_64"
            }
        ],
        "dialog": [
            {
                "url": "https://github.com/gamelly/gly-engine/archive/refs/heads/develop.zip",
                "src": "./vendor/dialog"
            }
        ]
    },
    "modules": {
        "dialog": [
            {
                "src": "./vendor/dialog/src/control.lua"
            }
        ],
        "dialog.draw": [
            {
                "src": "./vendor/dialog/src/control.lua"
            }
        ]
    }
}
old

ability to add extra modules to an engine during build time.

$ ./cli.sh build --custom-module json:/path/to/my/module/json.lua --bundler

before

local lib_engine_csv = nil
local function main()
local zeebo_module = lib_engine_module()
local engine_csv = lib_engine_csv()
zeebo_module.require(std, game, application)
:package('csv', engine_csv)
:run()
end

after

local lib_engine_csv = nil
local lib_engine_json = nil
local function main()
local zeebo_module = lib_engine_module()
local engine_csv = lib_engine_csv()
local engine_json = lib_engine_json()
zeebo_module.require(std, game, application)
:package('csv', engine_csv)
:package('custom:json', engine_json)
:run()
end
@RodrigoDornelles RodrigoDornelles added the difficulty: hard big challenges implementations label Aug 27, 2024
@RodrigoDornelles RodrigoDornelles added this to the 0.0.5 milestone Aug 28, 2024
@RodrigoDornelles RodrigoDornelles modified the milestones: 0.0.5, 0.0.6 Sep 12, 2024
@RodrigoDornelles RodrigoDornelles added hacktoberfest 2024 Core Team responsibility for project maintainers. difficulty: expert require low level experiencie and removed hacktoberfest 2024 difficulty: hard big challenges implementations labels Sep 20, 2024
@RodrigoDornelles RodrigoDornelles changed the title feat: add flag --custom-module to bundler feat: create a package manager Sep 22, 2024
@RodrigoDornelles RodrigoDornelles removed this from the 0.0.6 milestone Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team responsibility for project maintainers. difficulty: expert require low level experiencie
Projects
None yet
Development

No branches or pull requests

1 participant