{"id":21921822,"url":"https://github.com/existentialmutt/wsl_build","last_synced_at":"2025-08-12T18:17:57.387Z","repository":{"id":139105969,"uuid":"577998166","full_name":"existentialmutt/wsl_build","owner":"existentialmutt","description":"Sublime Text custom build systems for projects running in WSL2","archived":false,"fork":false,"pushed_at":"2023-01-06T20:14:43.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T16:19:41.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/existentialmutt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-12-14T02:26:52.000Z","updated_at":"2022-12-14T02:32:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"c668a874-f4b8-4bb8-af36-0dbb84f43fbe","html_url":"https://github.com/existentialmutt/wsl_build","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/existentialmutt/wsl_build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/existentialmutt%2Fwsl_build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/existentialmutt%2Fwsl_build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/existentialmutt%2Fwsl_build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/existentialmutt%2Fwsl_build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/existentialmutt","download_url":"https://codeload.github.com/existentialmutt/wsl_build/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/existentialmutt%2Fwsl_build/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270111016,"owners_count":24529192,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-28T20:27:24.855Z","updated_at":"2025-08-12T18:17:56.635Z","avatar_url":"https://github.com/existentialmutt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WSL Build\n\nThis Sublime Text Package facilitates writing custom builds for projects running in WSL2. It adds a \"wsl_exec\" target for build commands that does the following:\n\n- execute Linux commands\n- provides Linux paths in variables such as $file\n- properly set ENV variables for Linux commands\n\nFor more information about defining Sublime Text builds see [the official documentation](https://www.sublimetext.com/docs/build_systems.html)\n\n## Defining a Build\nset `\"target\": \"wsl_exec\"`\n\n### Required Keys\nSet `\"wsl_cmd\"` instead of `\"cmd\"`.  The command array will be executed through WSL.\nBuild variables such as `$file` will have Linux paths.\n\n### Optional Keys\nSet `\"wsl_working_dir\"` instead of `\"working_dir\"`. Build variables such as `$file` will have Linux paths.\n\nSet `\"wsl_env\"` instead of `\"env\"` to set environment variables that are available to\nthe Linux command. Build variables such as `$file` will have Linux paths.\n\n### Example Builds for a Rails app in WSL:\n```json\n\"build_systems\": [\n    {\n        \"name\": \"🧪 Run Current Spec\",\n        \"target\": \"wsl_exec\",\n        \"wsl_cmd\": [\n            \"bundle\", \"exec\", \"rake\", \"spec\" \n        ],\n        \"wsl_env\": {\n            \"SPEC\": \"$file\"\n        },\n        \"wsl_working_dir\": \"$folder\"\n    },\n    {\n        \"name\": \"🧪 Run All Specs\",\n        \"target\": \"wsl_exec\",\n        \"wsl_cmd\": [\n            \"bundle\", \"exec\", \"rake\", \"spec\"\n        ],\n        \"wsl_working_dir\": \"$folder\",\n    },\n    {\n        \"name\": \"🗃️ Run Database Migrations\",\n        \"target\": \"wsl_exec\",\n        \"wsl_cmd\": [\n            \"bundle\", \"exec\", \"rake\", \"db:migrate\"\n        ],\n        \"wsl_working_dir\": \"$folder\"\n    }\n```\n\n## Acknowledgments\nInspired by OdatNurd's technique here https://github.com/STealthy-and-haSTy/SublimeScraps/blob/master/build_enhancements/custom_build_variables.py\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexistentialmutt%2Fwsl_build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexistentialmutt%2Fwsl_build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexistentialmutt%2Fwsl_build/lists"}