{"_id":"@allnulled/multiproject-pusher","_rev":"1-5d1dcb8ffb8c66c504a557eb07bbd338","name":"@allnulled/multiproject-pusher","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@allnulled/multiproject-pusher","version":"1.0.0","keywords":[],"author":{"name":"allnulled"},"license":"WTFPL","_id":"@allnulled/multiproject-pusher@1.0.0","maintainers":[{"name":"allnulled","email":"todosanulados@gmail.com"}],"bin":{"mpp":"multiproject-pusher.bin.js"},"dist":{"shasum":"0af8481c72e69eda8eed591bd7a6e89e6b71b391","tarball":"https://registry.npmjs.org/@allnulled/multiproject-pusher/-/multiproject-pusher-1.0.0.tgz","fileCount":6,"integrity":"sha512-RUy4VTYsuPm+SgfvmIB4Z7RnCCGR99IJI+87AmwaP27ORWFS8fTXh4HEM3ittCc2ihmRHCpvLbJG+vx1Fkozfw==","signatures":[{"sig":"MEUCIQDQ2szhc3nYF12iZ4320qdg4GcQACdUvDDG6ExMKuD4yQIgJsZtbc8ugdt0jWJhNwxrI2KFxG1J7q36QJtZa/vC6Po=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13302},"main":"multiproject-pusher.js","gitHead":"8c979b3f2d6f416d773cfd5c82198ccda8b48455","scripts":{"test":"node test/test.js"},"_npmUser":{"name":"allnulled","email":"todosanulados@gmail.com"},"_npmVersion":"9.6.7","description":"To manage multiple (git) projects from 1 source","directories":{},"_nodeVersion":"18.17.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/multiproject-pusher_1.0.0_1737960431170_0.9900274113003849","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@allnulled/multiproject-pusher","version":"1.0.1","description":"To manage multiple (git) projects from 1 source","main":"multiproject-pusher.js","directories":{},"bin":{"mpp":"multiproject-pusher.bin.js"},"scripts":{"test":"node test/test.js"},"keywords":[],"author":{"name":"allnulled"},"license":"WTFPL","gitHead":"738bfdd607f2545ba9fc86c803d76deee282b5a2","_id":"@allnulled/multiproject-pusher@1.0.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-S/Wwvt4sqG+pEADLPA7ub0ilCehE4GfXKM6aMeu2NGrlOfACzdYO0rIlQFwWrqhT/T3NzO3GEgo0BolbcQWx4Q==","shasum":"3071585f9723051d38890a09d5b24c55cb312676","tarball":"https://registry.npmjs.org/@allnulled/multiproject-pusher/-/multiproject-pusher-1.0.1.tgz","fileCount":6,"unpackedSize":15932,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHvX26EqSxPrKTKESUWDLiGJvYv2vAu4tJSWx8lSjrDGAiBCZASZV1gFqzDPN6FJlwxm6mqFUhE2J7TLgFH1v2cGRg=="}]},"_npmUser":{"name":"allnulled","email":"todosanulados@gmail.com"},"maintainers":[{"name":"allnulled","email":"todosanulados@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/multiproject-pusher_1.0.1_1740075865170_0.11946690709291619"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-27T06:47:11.106Z","modified":"2025-02-20T18:24:25.516Z","1.0.0":"2025-01-27T06:47:11.355Z","1.0.1":"2025-02-20T18:24:25.355Z"},"author":{"name":"allnulled"},"license":"WTFPL","keywords":[],"description":"To manage multiple (git) projects from 1 source","maintainers":[{"name":"allnulled","email":"todosanulados@gmail.com"}],"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.","readmeFilename":"README.md"}