{"_id":"@allfi/auto-git","_rev":"2-ce6af31826b274f6286d4d263ad2d96e","name":"@allfi/auto-git","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@allfi/auto-git","version":"1.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"jasonograves@gmail.com"},"license":"ISC","_id":"@allfi/auto-git@1.0.0","_nodeVersion":"12.9.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-9gfVk6nICsWbTKMTMzjeM+rU8bc7wb6U75OCk4UfJY3kV3DLYRdFPzl3L60iPE+rDBtqLuhGd89kcybKHCAHqA==","shasum":"6878f77d424227cfe9c7d48e31a97f7db8167161","tarball":"https://registry.npmjs.org/@allfi/auto-git/-/auto-git-1.0.0.tgz","fileCount":3,"unpackedSize":1657,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdfoQfCRA9TVsSAnZWagAAHRcQAIAkrvsPu54s29NdT00/\nZwXPeV4h+hX/DlNnM32rFZCJyS6m6noTL5w8Sbl8rYY33AlqlMTxQ5OUcTmS\n2M862l5MS14oHs4mLUwlSJnF45/H0Ja3R0BPEOkQRLcGa4HW+O9suuBYTcbj\n9AokFAs+B4Pi8TTSK9gEWKRmhyfkhiHnk0uGHC5Gt79hF84N9gU2erHZ/oPa\nL2zeNgsAIvqRVt7wFdERgRjkyE4AZqJ2ZKDuMg6w/v+K0mSNe7LOWLAqh52A\nnwUnE18MFW0M56mtXz5hMcpJKkNgvCy695zsXdQcK4CqZ1VjUV3A3+rl4qV2\nwf++e7peQ+3O3oP70e3gXefvVTETM4mKEQ7UMhu/QL9FIooBbd7aCemiI8jV\nnArZevwhE2Cr8UcUP2o5qPD2LV+e83oO3adrcHw+jXAybz2SoPvt9vQgQWZX\nBeM9d2aS4cK2DpPpIAIpht1Fc/TImtwx4shrIh4qIM4OwZvtY5QOH5n0Wqo3\ncqwHvjBz9Fueaf7gYlGM/mc80tvqpmNjw0/3cDm/pyDn6Do31RP70A35W3Wo\nVTbcN8YwOB3ncm6V3PkaP/4Kddv2ucb3vWdCar13Yd3bqkxcucjLdD6DmEI/\n5tzJg+/1fS9awLsFZnxdKky7hBajrvotM9bR7AlAsAqCUli+BKHO50VpzXPO\n1gf5\r\n=dkv4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGe/76gCnvIXYCgPKkK1C//c4Su2szx8mVKIc9YPj9ARAiAsDKlPQ42+4Y5zNuKrXCm2ssblslqVwtTIG517roqQVw=="}]},"maintainers":[{"name":"thejason","email":"jasonograves@gmail.com"}],"_npmUser":{"name":"thejason","email":"jasonograves@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-git_1.0.0_1568572446998_0.4923807096287487"},"_hasShrinkwrap":false},"1.0.1":{"name":"@allfi/auto-git","version":"1.0.1","description":"Simple App to run command-line tasks on a regular basis.  It's like GitLab Runner, without the Pipeline headaches.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"jasonograves@gmail.com"},"homepage":"https://github.com/thejason/auto-git","license":"MIT","_id":"@allfi/auto-git@1.0.1","_nodeVersion":"12.9.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-T2Q67hYNeaUFBNT6SJt/7G2bxyBRMkc1RYtBfz8G+Q+/ww0ytFkdJwISQjaNU564fu2hHvGas/N4yl7LchldGQ==","shasum":"eb58cbe2d8c6dc32b29bee7b93c99a13acf6b4e0","tarball":"https://registry.npmjs.org/@allfi/auto-git/-/auto-git-1.0.1.tgz","fileCount":5,"unpackedSize":4493,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdfoX0CRA9TVsSAnZWagAAl/oP/2p0eF9GnoO07/EcnZNE\n/uQGSppTHcwi3+NSOs2/1NTqW329nDIfgva0AXXWbXsXVgkKgLaAG+x83whO\n5Fuk1WDatSXqvMHaNUQssN+8zuZpOwzrtQrfmkHPoC8QCGvp+IHagqO2Y0hO\n4C94cOhfxw9hVqAySlP0LuaIrGpgkRP6Idaj0r/NG5ANMBqFuT5OgmyMXdgp\nF9zeM65+x46Os8iUdm6n2BXkiJmVEEA75eyuS0m/19kuQECHfmwqLYcgEmPs\n7TF3KhFwUWj4C88D+kps6bnP32Expfaa2yUo3ow9cO+jnw4NKtg7JLnLNXOl\n9IHOdd10+9GLXxWOp60DoDawDY6AFXd4A5zUR8gguGIQ2ofFXTjSj7YJoy6p\nz7EeEqtBc1JhQbDOMOp64T5GnAx4oeNxNh+2VgV8weLITKXYIznBR/TBTGeb\nGipirNriQiuNapoeIb2N9od3Ucd4prGQX1Nyi33vCnRuYVB5dd5vncAp4m/u\n+T0P/lHhoJQrTSRNTBipz/5e6H58TZUQ5duqIPZg8KVpFEX1yoYghYUzOh1m\nSEUgQUJm10feymwSO6yGHjG0kgS2e5OGxBeceLHEqIMFEaRBjdnVw07jAxdD\nC8EcC9uk/0QnHnWkRoLf0K2APwMzbDk33g6kz7ha5RrRbkFhkS8DzPPydhSL\nacCg\r\n=zV/b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCN9BWrM+D9y9WhHhiRsV5Xm+Xu2T8MY+ruTutTP7A4mQIgUwZ7W0UjslVhqeteEjtuF11UHFSIi8g9IWoILCcntOw="}]},"maintainers":[{"name":"thejason","email":"jasonograves@gmail.com"}],"_npmUser":{"name":"thejason","email":"jasonograves@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/auto-git_1.0.1_1568572915639_0.9954684008946773"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-15T18:34:06.781Z","1.0.0":"2019-09-15T18:34:07.113Z","modified":"2022-04-04T13:32:26.766Z","1.0.1":"2019-09-15T18:41:55.811Z"},"maintainers":[{"name":"thejason","email":"jasonograves@gmail.com"}],"author":{"name":"jasonograves@gmail.com"},"license":"MIT","readme":"# auto-git\nI needed a little script to check for git updates then to pull, install, and build my various apps.  So this is what I came up with.  The end result is a pretty powerful little app for running command line scripts from within node.\n\n# Purpose\nI made this as a quick-and-dirty version of Gitlab's Runner app.  Frankly, their pipelines weren't working for me, so decided to build something that I knew would serve my needs.  Instead of setting up Jenkins, or some other 3rd party services, this ended up being a simple (and secure) alternative to my CI/CD needs.  This specific version performs a few key tasks.   First it cd's into my specified app folder that is synced with a git repo.  Then it calls 'git status' to check if there are any updates for that branch.  If updates are found, it then performs a 'git pull' && 'sudo npm install' && 'sudo quasar build\".  The end result means that my servers will rebuild everytime the repo is updated.    \n\n# Note-worthy\n1. The app assumes you have properly configured your server to pull from your Git Repo.  \n2. The app checks for git updates every 30-seconds.   This can easily be updated in the config/default.json file.\n3. You can adjust this to handle any repetitive tasks, not just GIT calls.  \n4. Works with any Source-management service (GitHub,GitLab,BitBucket..)\n5. The world is your oyester.\n\n# Setup\n1. npm i auto-git\n2. npm i pm2 -g  (I use this just to keep the app running in the background)\n3. change the config/default.json settings to match your project requirements.\n4. run pm2 start index.js --name git-puller\n\nThat's it.\n","readmeFilename":"README.md","description":"Simple App to run command-line tasks on a regular basis.  It's like GitLab Runner, without the Pipeline headaches.","homepage":"https://github.com/thejason/auto-git"}