{"id":24965766,"url":"https://github.com/allnulled/multiproject-pusher","last_synced_at":"2025-03-29T01:19:23.375Z","repository":{"id":274429781,"uuid":"922833463","full_name":"allnulled/multiproject-pusher","owner":"allnulled","description":"To manage multiple (git) projects from 1 source.","archived":false,"fork":false,"pushed_at":"2025-02-20T18:24:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T19:34:40.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@allnulled/multiproject-pusher","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/allnulled.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-01-27T06:44:42.000Z","updated_at":"2025-02-20T18:24:17.000Z","dependencies_parsed_at":"2025-01-27T09:39:42.995Z","dependency_job_id":null,"html_url":"https://github.com/allnulled/multiproject-pusher","commit_stats":null,"previous_names":["allnulled/multiproject-pusher"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fmultiproject-pusher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fmultiproject-pusher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fmultiproject-pusher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allnulled%2Fmultiproject-pusher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allnulled","download_url":"https://codeload.github.com/allnulled/multiproject-pusher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122467,"owners_count":20726834,"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":"2025-02-03T11:16:09.223Z","updated_at":"2025-03-29T01:19:23.352Z","avatar_url":"https://github.com/allnulled.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multiproject-pusher\n\nTo manage multiple (git) projects from 1 source\n\n## Install\n\n```sh\nnpm i -s @allnulled/multiproject-pusher\n```\n\n## CLI\n\nFrom CLI:\n\n```sh\nmpp --install --push --versionate --list multiproject-pusher.list.js --command pwd\n```\n\nThis will, in this order:\n\n  - run `git clone` and `npm install`\n  - run `git add + commit + push`\n  - run `npm run versionate`\n  - run `pwd`\n  \n...on every project specified on `multiproject-pusher.list.js`, which is specified like this one:\n\n```js\nmodule.exports = [{\n  \"name\": \"@allnulled/browsie\",\n  \"path\": \"./proj1/subproj1\",\n  \"sourceType\": \"git\",\n  \"source\": \"https://github.com/allnulled/browsie.git\",\n  \"version\": \"last\"\n}, {\n  \"name\": \"@allnulled/browsie\",\n  \"path\": \"./proj1/subproj2\",\n  \"sourceType\": \"git\",\n  \"source\": \"https://github.com/allnulled/superlogger.git\",\n  \"version\": \"last\"\n}, {\n  \"name\": \"@allnulled/v-descriptor\",\n  \"path\": \"./proj1/subproj3\",\n  \"sourceType\": \"git\",\n  \"source\": \"https://github.com/allnulled/v-descriptor.git\",\n  \"version\": \"last\"\n}];\n```\n\nThe paths of this file are relative to this file itself, not the current working directory.\n\nYou can also use `--eval` to provide direct JavaScript from cmd.\n\nYou can also use `--fileval` to provide the name of a file in JavaScript from cmd.\n\n## API\n\nThe API works like this:\n\n```js\nconst MultiprojectPusher = require(\"@allnulled/multiproject-pusher\");\nconst multiproject = MultiprojectPusher.from(require(__dirname + \"/multiproject-list.js\"), __dirname);\n\nconst main = async function() {\n  console.log(process.argv);\n  await multiproject.install();\n  await multiproject.push();\n  await multiproject.versionate();\n};\n\nmodule.exports = main();\n```\n\nThis would install, push and versionate the projects. But if you need something else, you can use:\n\n```js\nawait multiproject.run(\"pwd\");\n```\n\nYou can also use `multiproject.inject(functionOrCode)` with a function or a string to eval.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fmultiproject-pusher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallnulled%2Fmultiproject-pusher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallnulled%2Fmultiproject-pusher/lists"}