{"id":19118809,"url":"https://github.com/heyputer/dev-runner","last_synced_at":"2025-04-14T07:41:57.095Z","repository":{"id":222365949,"uuid":"756107382","full_name":"HeyPuter/dev-runner","owner":"HeyPuter","description":"A simple launcher and interactive prompt for multiple processes.","archived":false,"fork":false,"pushed_at":"2024-02-13T18:28:02.000Z","size":14,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T21:22:38.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/HeyPuter.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}},"created_at":"2024-02-12T00:15:50.000Z","updated_at":"2024-12-02T14:22:07.000Z","dependencies_parsed_at":"2024-02-13T20:45:21.512Z","dependency_job_id":null,"html_url":"https://github.com/HeyPuter/dev-runner","commit_stats":null,"previous_names":["heyputer/dev-runner"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyPuter%2Fdev-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyPuter%2Fdev-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyPuter%2Fdev-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeyPuter%2Fdev-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeyPuter","download_url":"https://codeload.github.com/HeyPuter/dev-runner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248842067,"owners_count":21170294,"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":[],"created_at":"2024-11-09T05:07:49.771Z","updated_at":"2025-04-14T07:41:57.064Z","avatar_url":"https://github.com/HeyPuter.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dev-runner\n\n```\nnpm install -g @heyputer/dev-runner\n```\n\nThis is a convenient utility to run multiple processes when something\nlike `supervisord` is overkill, or you can think of it as a pre-shaven\nyak you just watched float by.\n\nSimply write a configuration file in json5 format with all the commands\nyou'd like to run:\n\n```javascript\n{\n    services: [\n        {\n            name: 'static-host',\n            pwd: './dist',\n            command: 'npx http-server -p 8080',\n        },\n        {\n            name: 'rollup-watcher',\n            pwd: '.',\n            command: 'npx rollup -c rollup.config.js --watch',\n        },\n    ]\n}\n```\n\nThen run `dev-runner` and specify your config file's name:\n\n```\ndev-runner run.json5\n```\n\nIf a config filename is not specified, it will try `run.json5` by default.\n\n## Features\n\n### Variables\n\nA command specified in the `run.json5` file can contain variables which\nare loaded from another json5 file specified as the second argument to\n`dev-runner` (`local.json5` by default).\n\nFor example, this can be your `run.json5`:\n\n```javascript\n{\n    services: [\n        {\n            name: 'static-https',\n            pwd: './dist',\n            command: 'npx http-server =p 8443 -S -C \"{cert} -L \"{key}\"'\n        }\n    ]\n}\n```\n\nand this can be your `local.json5`:\n\n```javascript\n{\n    cert: '/var/my-certs/cert.pem',\n    key: '/var/my-certs/key.pem',\n}\n```\n\nThen you can run either `dev-runner` or `dev-runner run.json5 local.json5`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyputer%2Fdev-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyputer%2Fdev-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyputer%2Fdev-runner/lists"}