{"id":13653939,"url":"https://github.com/hyperupcall/bake","last_synced_at":"2025-08-04T17:34:34.514Z","repository":{"id":39335385,"uuid":"418706422","full_name":"hyperupcall/bake","owner":"hyperupcall","description":"A Bash-based Make alternative.","archived":false,"fork":false,"pushed_at":"2024-01-22T08:18:28.000Z","size":3138,"stargazers_count":32,"open_issues_count":8,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-03T21:42:52.253Z","etag":null,"topics":["basalt","bash","make","makefile","shell"],"latest_commit_sha":null,"homepage":"https://hyperupcall.github.io/bake/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperupcall.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},"funding":{"github":["hyperupcall"]}},"created_at":"2021-10-18T23:54:03.000Z","updated_at":"2025-03-07T23:06:05.000Z","dependencies_parsed_at":"2024-01-17T02:14:44.223Z","dependency_job_id":"2235fb4e-156f-48be-b0d0-7167e30a8a60","html_url":"https://github.com/hyperupcall/bake","commit_stats":{"total_commits":171,"total_committers":2,"mean_commits":85.5,"dds":"0.023391812865497075","last_synced_commit":"c66bb89c9968c80e51170c741faaa632ff606b14"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/hyperupcall/bake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperupcall%2Fbake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperupcall%2Fbake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperupcall%2Fbake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperupcall%2Fbake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperupcall","download_url":"https://codeload.github.com/hyperupcall/bake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperupcall%2Fbake/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262850261,"owners_count":23374355,"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":["basalt","bash","make","makefile","shell"],"created_at":"2024-08-02T02:01:20.989Z","updated_at":"2025-06-30T21:08:15.360Z","avatar_url":"https://github.com/hyperupcall.png","language":"Shell","funding_links":["https://github.com/sponsors/hyperupcall"],"categories":["General use"],"sub_categories":["Applications"],"readme":"# Bake\n\nA Bash-based Make alternative\n\n## Why?\n\nMake is not meant to be used as a task runner. [Just](https://github.com/casey/just) and [scripts-to-rule-them-all](https://github.com/github/scripts-to-rule-them-all) help, but I wanted a simpler, more portable, and streamlined solution\n\nIt's simple: write a `Bakefile.sh` script:\n\n```sh\n#!/usr/bin/env bash\n\ntask.lint() {\n\tprettier \"**/*.{js,css}\"\n\teslint '.'\n\tstylelint \"**/*.css\"\n}\n\ntask.deploy() {\n\tyarn build\n\tgit commit -m v0.1.0 ... \u0026\u0026 git tag v0.1.0 ...\n\tgh release ...\n}\n\ntask.fail() {\n\tprintf '%s\\n' \"$1\"\n\tfalse\n}\n\ntask.succeed() {\n\tprintf '%s\\n' 'Success!'\n}\n```\n\nIn the same (or any child) directory:\n\n```txt\n$ bake deploy\n-\u003e RUNNING TASK 'deploy' =================================\nyarn run v1.22.17\n...\n\u003c- DONE ==================================================\n```\n\nWhen there is a failure...\n\n```txt\n$ bake fail 'WOOF'\n-\u003e RUNNING TASK 'docs' ===================================\nWOOF\n\u003c- ERROR =================================================\nError (bake): Your 'Bakefile.sh' did not exit successfully\nStacktrace:\n  -\u003e Bakefile.sh:235 task.fail()\n  -\u003e bake:244 __bake_main()\n$ echo $?\n1\n```\n\nPrettified output is sent to standard error, so pipines works\n\n```txt\n$ bake succeed 2\u003e/dev/null | cat\nSuccess!\n```\n\nIf you don't remember the tasks...\n\n```txt\n$ bake\nError (bake) No task supplied\nTasks:\n  -\u003e lint\n  -\u003e deploy\n  -\u003e fail\n```\n\nTo sum it up, _it just works_\n\n## Features\n\n- Generates a `./bake` file, for use in CI, etc.\n- Sensible `set`, `shopt`, and `LANG` [defaults](./docs/features.md#sensible-defaults)\n- Set variables [à la Make](./docs/features.md#make-esque-variable-setting): `bake CC=clang build`\n- Automatically `cd`'s to directory contaning Bakefile\n- Pass `-f` to manually specify Bakefile\n- Dead-simple, miniscule function API (see [api.md](./docs/api.md) for details)\n- Built-in [support](./docs/features.md#watchexec-support) for [watchexec](https://github.com/watchexec/watchexec)\n\n## Installation\n\n## Brew\n\nComing soon...\n\n## Manual\n\nWARNING: Manual is ONLY available on `main` branch and is NOT RELEASE-READY!\n\n```sh\ngit clone 'https://github.com/hyperupcall/bake' ~/.bake\nprintf '%s\\n' 'PATH=\"$HOME/.bake/bin:$PATH\"' \u003e\u003e ~/.bashrc\n```\n\n## Basalt\n\nNot recommended, as Basalt is still Beta-quality\n\nUse [Basalt](https://github.com/hyperupcall/basalt), a Bash package manager, to install this project globally\n\n```sh\nbasalt global add hyperupcall/bake\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperupcall%2Fbake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperupcall%2Fbake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperupcall%2Fbake/lists"}