{"id":22258273,"url":"https://github.com/nickclark2016/premake-scoped","last_synced_at":"2025-08-02T09:08:58.902Z","repository":{"id":265545524,"uuid":"896216614","full_name":"nickclark2016/premake-scoped","owner":"nickclark2016","description":"Scoped configuration API for Premake 5","archived":false,"fork":false,"pushed_at":"2025-03-04T14:16:13.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T15:25:49.915Z","etag":null,"topics":["premake","premake5"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nickclark2016.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-11-29T19:52:08.000Z","updated_at":"2025-03-04T14:16:16.000Z","dependencies_parsed_at":"2025-03-04T15:23:02.125Z","dependency_job_id":"198f479c-82c1-41ad-b9a2-0d38b185c403","html_url":"https://github.com/nickclark2016/premake-scoped","commit_stats":null,"previous_names":["nickclark2016/premake-scoped"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickclark2016%2Fpremake-scoped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickclark2016%2Fpremake-scoped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickclark2016%2Fpremake-scoped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickclark2016%2Fpremake-scoped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickclark2016","download_url":"https://codeload.github.com/nickclark2016/premake-scoped/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245467614,"owners_count":20620216,"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":["premake","premake5"],"created_at":"2024-12-03T08:14:29.886Z","updated_at":"2025-03-25T13:13:52.014Z","avatar_url":"https://github.com/nickclark2016.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Premake Scoped\n\nProvides function-scoped utilities for Premake 5, rather than relying on the implicit scoping mechanisms.\n\n### Installation\nClone the repository somewhere along the Premake search paths ([See Here](https://premake.github.io/docs/Locating-Scripts)). In your top level build file, add:\n\n```lua\nscoped = require('premake-scoped')\n```\n\n### API and Usage\nThis library provides direct replacements for the premake `workspace`, `project`, `usage`, `group`, and `filter` APIs.\n\n```lua\nscoped.workspace('My Workspace', function(wks)\n    scoped.group('My Group', function()\n        scoped.group('My Subgroup', function()\n            scoped.project('My Project', function(prj)\n                scoped.filter({ 'configuration:Debug' }, function()\n                \n                end)\n\n                scoped.usage('MyUsage', function(usg)\n\n                end)\n            end)\n        end)\n    end)\nend)\n```\n\nWhen each function is exited, the scope is reset to no longer apply to that function. This eliminates the need to perform things like `filter {}` or `workspace \"*\"` to reset your scope. In addition, this allows the ability to define groups inside of groups implicitly, rather than explicitly needing to add `\"/\"` to create subgroups.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickclark2016%2Fpremake-scoped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickclark2016%2Fpremake-scoped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickclark2016%2Fpremake-scoped/lists"}