{"id":20780185,"url":"https://github.com/le0developer/yuepack","last_synced_at":"2025-09-28T05:30:24.206Z","repository":{"id":259736708,"uuid":"879298825","full_name":"Le0Developer/yuepack","owner":"Le0Developer","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-30T11:12:03.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-17T13:38:53.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Le0Developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-27T14:45:19.000Z","updated_at":"2024-10-30T11:12:07.000Z","dependencies_parsed_at":"2024-10-27T17:58:34.277Z","dependency_job_id":"bc821659-d7f0-483d-b5c4-f52ee19d9e01","html_url":"https://github.com/Le0Developer/yuepack","commit_stats":null,"previous_names":["le0developer/yuepack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Le0Developer","download_url":"https://codeload.github.com/Le0Developer/yuepack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234487946,"owners_count":18841044,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T13:32:44.195Z","updated_at":"2025-09-28T05:30:23.589Z","avatar_url":"https://github.com/Le0Developer.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# yuepack\n\nA tool for packing yuescript projects into a single file.\n\nYuepack heavily depends on Yuescript. If you need a general solution for packing instead, use [luapack](https://github.com/le0developer/luapack).\nUnlike luapack (which uses the regular `package` and `require` system of Lua), yuepack uses aliasing to import and export modules.\n\n## Usage\n\nYuepack uses two \"magic\" macros that are inserted during the packing process.\n\n- `$import \"module\", \"name\"`\n- `$export \"name\", value`\n\nThe `$import` macro is used to import a module, and the `$export` macro is used to export a value.\n\nHere is an example of a simple project:\n\n```yue\n-- main.yue\ntext = $import \"module\", \"text\"\n\nprint \"Hello\", text\n\n-- module.yue\n$export \"text\", \"world\"\n```\n\nYou can find this example in the `example` directory.\n\nTo pack this project, run the following command:\n\n```bash\nyue -e yuepack.yue main.yue\n```\n\nThis will generate a single Lua file with the following content:\n\n```lua\n-- yuepacked using 0.1.0\nlocal _export_module_text\ndo\n\tdo\n\t\t_export_module_text = \"world\"\n\tend\nend\ndo\n\tlocal text = _export_module_text\n\tprint(\"Hello\", text)\nend\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle0developer%2Fyuepack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fle0developer%2Fyuepack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fle0developer%2Fyuepack/lists"}