{"id":21515426,"url":"https://github.com/danielfgray/boil","last_synced_at":"2025-08-23T19:35:26.276Z","repository":{"id":148820608,"uuid":"87244220","full_name":"DanielFGray/boil","owner":"DanielFGray","description":"generic custom boilerplates","archived":false,"fork":false,"pushed_at":"2017-05-25T22:09:18.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-14T23:05:21.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielFGray.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-04-04T23:20:25.000Z","updated_at":"2017-05-25T08:53:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"56f803ff-b6cd-4cb7-a7a4-292f1b086f41","html_url":"https://github.com/DanielFGray/boil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DanielFGray/boil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fboil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fboil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fboil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fboil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielFGray","download_url":"https://codeload.github.com/DanielFGray/boil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielFGray%2Fboil/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271766561,"owners_count":24817557,"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-23T02:00:09.327Z","response_time":69,"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-23T23:55:18.362Z","updated_at":"2025-08-23T19:35:26.228Z","avatar_url":"https://github.com/DanielFGray.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Boil\n\nGeneric custom boilerplates\n\n## Usage\n\n```\nboil \u003cNAME\u003e [TEMPLATES...]\n```\n\n## Example Configuration\n\nImagine you want to create a React.js project, but every time you do this, you have a series of commands you execute:\n\n``` sh\nmkdir ~/build/newreact    # where to start your new project\ngit init                  # this happens for every project\nnpm init -y               # this happens for every javascript project\nnpm i -S react react-dom  # this happens for every react project\n```\n\n`boil -n newreact js/react` can do this for you with the following configuration:\n\n``` sh\ncd ~/.config/boil\necho \"default_dir $HOME/build\" \u003e conf        # where to boil every new project\necho 'git init' \u003e all                        # this happens for every project\n\nmkdir js\necho 'npm init -y' \u003e js/all                  # this happens for every javascript project\necho 'npm i -S react react-dom' \u003e js/react   # this happens for every react project\n```\n\n---\n\nMultiple templates can also be specified. For example, `boil -n newreact js/react js/lint/react` would look for the following files in `~/.config/boil`:\n\n    all\n    js/all\n    js/react\n    js/react/all\n    js/react/react\n    js/lint/all\n    js/lint/react\n    js/lint/react/all\n    js/lint/react/react\n\n---\n\nCreating a new project is optional, if you omit the `-n` flag then no new dirs will be created and the tasks will be run in the current directory.\n\nThe `all` tasks can be skipped by passing the `-A` switch.\n\nIf it exists, `~/.config/boil/post` will be executed after all tasks.\n\n## More advanced configuration\n\nTasks in `~/.config/boil` don't have to be just single commands, they can be multiple commands, or entire scripts.\n\nThe tasks in `~/.config/boil` are, by default, executed with the user's `$SHELL`. If they are marked as executable (ie with `chmod +x`) they will be called as a regular executable, which means tasks can be written in any language.\n\n## Small helper\n\nIf you want to automatically `cd` into the newly created project, a small helper function is needed in your shell's rc file, since scripts cannot alter your current working directory.\n\n``` sh\nboil() { command boil \"$@\" \u0026\u0026 while getopts 'n:' x; do case \"$x\" in; n) cd ~/build/\"$OPTARG\"; esac; done; }\n```\n\nYou'll want to change `build` to whatever you put as your `default_dir`.\n\n## Legal\nCopyright (C) 2016 Daniel Gray \u003cDanielFGray@gmail.com\u003e\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfgray%2Fboil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielfgray%2Fboil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielfgray%2Fboil/lists"}