{"id":17681058,"url":"https://github.com/vladfaust/cake-bake","last_synced_at":"2025-03-12T14:31:03.650Z","repository":{"id":94995350,"uuid":"112263437","full_name":"vladfaust/cake-bake","owner":"vladfaust","description":"Bake Cakefile into native Crystal code 🍞","archived":false,"fork":false,"pushed_at":"2020-04-07T16:39:46.000Z","size":28,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T15:54:10.897Z","etag":null,"topics":["cake","crystal","docker"],"latest_commit_sha":null,"homepage":"https://github.vladfaust.com/cake-bake.cr","language":"Crystal","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/vladfaust.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":"2017-11-28T00:07:56.000Z","updated_at":"2020-06-16T13:06:34.000Z","dependencies_parsed_at":"2023-04-06T15:05:47.703Z","dependency_job_id":null,"html_url":"https://github.com/vladfaust/cake-bake","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfaust%2Fcake-bake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfaust%2Fcake-bake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfaust%2Fcake-bake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladfaust%2Fcake-bake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladfaust","download_url":"https://codeload.github.com/vladfaust/cake-bake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243234442,"owners_count":20258466,"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":["cake","crystal","docker"],"created_at":"2024-10-24T09:10:07.973Z","updated_at":"2025-03-12T14:31:03.637Z","avatar_url":"https://github.com/vladfaust.png","language":"Crystal","funding_links":["https://www.patreon.com/vladfaust"],"categories":[],"sub_categories":[],"readme":"# Cake-Bake\n\n[![Built with Crystal](https://img.shields.io/badge/built%20with-crystal-000000.svg?style=flat-square)](https://crystal-lang.org/)\n[![Build status](https://img.shields.io/travis/com/vladfaust/cake-bake/master.svg?style=flat-square)](https://travis-ci.com/vladfaust/cake-bake)\n[![API Docs](https://img.shields.io/badge/api_docs-online-brightgreen.svg?style=flat-square)](https://github.vladfaust.com/cake-bake)\n[![Releases](https://img.shields.io/github/release/vladfaust/cake-bake.svg?style=flat-square)](https://github.com/vladfaust/cake-bake/releases)\n[![Awesome](https://awesome.re/badge-flat2.svg)](https://github.com/veelenga/awesome-crystal)\n[![vladfaust.com](https://img.shields.io/badge/style-.com-lightgrey.svg?longCache=true\u0026style=flat-square\u0026label=vladfaust\u0026colorB=0a83d8)](https://vladfaust.com)\n[![Patrons count](https://img.shields.io/badge/dynamic/json.svg?label=patrons\u0026url=https://www.patreon.com/api/user/11296360\u0026query=$.included[0].attributes.patron_count\u0026style=flat-square\u0026colorB=red\u0026maxAge=86400)](https://www.patreon.com/vladfaust)\n[![Gitter chat](https://img.shields.io/badge/chat%20on-gitter-green.svg?colorB=ED1965\u0026logo=gitter\u0026style=flat-square)](https://gitter.im/vladfaust/Lobby)\n\nCake-Bake *[ka-ke-ba-ke]* allows to bake [Cakefile](https://github.com/axvm/cake) into native Crystal code.\n\n## Supporters\n\nThanks to all my patrons, I can continue working on beautiful Open Source Software! 🙏\n\n[Lauri Jutila](https://github.com/ljuti), [Alexander Maslov](https://seendex.ru), Dainel Vera\n\n*You can become a patron too in exchange of prioritized support and other perks*\n\n[![Become Patron](https://vladfaust.com/img/patreon-small.svg)](https://www.patreon.com/vladfaust)\n\n## About\n\nWhy? Because sometimes [cake]((https://github.com/axvm/cake)) tasks are wanted to be run as binaries.\n\nFor example, to run from a Docker container with an already built application: `docker run my-crystal-app bin/cake db:migrate`.\n\n## Installation\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ntargets:\n  cake:\n    main: src/run/cake.cr\n\ndependencies:\n  cake-bake:\n    github: vladfaust/cake-bake\n    version: ~\u003e 0.3.0\n```\n\n## Usage\n\nGiven `./Cakefile`:\n\n```crystal\nrequire \"./src/some_file\" # These requires\n\ntask :foo\n  puts \"bar\"\nend\n```\n\n`./src/run/cake.cr`:\n\n```crystal\nrequire \"cake-bake\"\nCake.bake(\"../../Cakefile\") # Full path to Cakefile needed to properly resolve requires (see above)\n\n# The Cakefile code will be put here, yay\n```\n\nThen execute from `./`:\n\n```shell\n$ crystal src/run/cake -- foo\nbar\n\n$ crystal build src/run/cake\n$ ./cake foo\nbar\n\n$ shards build\n$ ./bin/cake foo\nbar\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/vladfaust/cake-bake/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [@vladfaust](https://github.com/vladfaust) Vlad Faust - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladfaust%2Fcake-bake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladfaust%2Fcake-bake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladfaust%2Fcake-bake/lists"}