{"id":15547671,"url":"https://github.com/ryu1kn/buildmate","last_synced_at":"2026-03-15T08:26:32.685Z","repository":{"id":23563676,"uuid":"99336917","full_name":"ryu1kn/buildmate","owner":"ryu1kn","description":"Given a list of file paths, invokes all build tasks that match any of the path patterns.","archived":false,"fork":false,"pushed_at":"2024-09-11T18:22:03.000Z","size":864,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T22:02:49.886Z","etag":null,"topics":["build-tool","npm-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/buildmate","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryu1kn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-08-04T11:33:09.000Z","updated_at":"2023-09-10T06:49:07.000Z","dependencies_parsed_at":"2024-10-20T19:25:20.946Z","dependency_job_id":null,"html_url":"https://github.com/ryu1kn/buildmate","commit_stats":{"total_commits":80,"total_committers":2,"mean_commits":40.0,"dds":"0.19999999999999996","last_synced_commit":"c458a458281524ab26ab2044b2ee9dccf2fe4466"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fbuildmate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fbuildmate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fbuildmate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fbuildmate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryu1kn","download_url":"https://codeload.github.com/ryu1kn/buildmate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242180667,"owners_count":20085212,"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":["build-tool","npm-package"],"created_at":"2024-10-02T13:10:00.093Z","updated_at":"2025-12-26T08:58:47.985Z","avatar_url":"https://github.com/ryu1kn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ryu1kn/buildmate.svg?branch=master)](https://travis-ci.org/ryu1kn/buildmate)\n[![Coverage Status](https://coveralls.io/repos/github/ryu1kn/buildmate/badge.svg?branch=master)](https://coveralls.io/github/ryu1kn/buildmate?branch=master)\n\n# Build Mate\n\nBuild Mate. Given a list of file paths, invokes all build tasks that match any of the paths.\n\n## Prerequisite\n\n* Node.js v6+\n\n## Usage\n\n```sh\n# Make your CI service to install Build Mate\n$ npm install -g buildmate\n\n# Pipe git diff output to Build Mate\n$ git diff --name-only COMMIT1...COMMIT2 | buildmate\n```\n\n* `buildmate.config.js`\n\n```js\nmodule.exports = {\n  tasks: [\n    // Failure of the notification doesn't abort the whole build\n    {\n      description: 'Notify build start',\n      command: './notify-build-start.sh',\n      continueOnFailure: true\n    },\n\n    // Regex path pattern.\n    // Capturing parts of path with `()` and reference them in the command with BM_PATH_VAR_X env variables\n    {\n      path: /^(modules\\/[^/]+)\\//,        \n      command: 'cd $BM_PATH_VAR_1 \u0026\u0026 npm run build'\n    },\n\n    // Glob path pattern\n    {\n      path: 'lib/**',\n      command: './build.sh lib'\n    }\n  ]\n}\n```\n\nIf `COMMIT1...COMMIT2` includes changes in the following files:\n\n```\nmodules/module-A/src/index.js\nmodules/module-B/test/lib/bootstrap.js\n```\n\nBuild Mate invokes following 3 commands in the order\n\n```sh\n./notify-build-start.sh\n# Failure of this task command doesn't abort the build\n\ncd modules/module-A \u0026\u0026 npm run build\n# $BM_PATH_VAR_1 is expanded to modules/module-A\n\ncd modules/module-B \u0026\u0026 npm run build\n# $BM_PATH_VAR_1 is expanded to modules/module-B\n```\n\n### Task properties\n\n#### `path`\n\nOptional. Path pattern to decide if task should be executed (and capture path vars).\n`path` can be an regular expression or glob. Omitting `path` will always execute the task.\n\n#### `description`\n\nOptional. Task description printed out at the beginning of task execution.\n\n#### `command`\n\nRequired. Command to execute. Path variables captured in `path` matching phase can be referenced\nas environment variables like `BM_PATH_VAR_N` where `N` is a sequential number starts from 1.\n\n#### `continueOnFailure` \n\nOptional. Specify `true` if you want to continue the build on the task failure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryu1kn%2Fbuildmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryu1kn%2Fbuildmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryu1kn%2Fbuildmate/lists"}