{"_id":"@avot/avot","_rev":"2-109b9c16024374e3551ca5406d0ef082","name":"@avot/avot","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@avot/avot","version":"0.0.1","description":"Avot automates the creation of microservices.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/tsaarikivi/avot.git"},"keywords":["microservice","automate","create"],"author":{"name":"Tero Saarikivi"},"license":"MIT","bugs":{"url":"https://github.com/tsaarikivi/avot/issues"},"homepage":"https://github.com/tsaarikivi/avot#readme","dependencies":{"chalk":"^2.4.2","commander":"^2.19.0","inquirer":"^6.2.1"},"bin":{"avot":"index.js"},"gitHead":"70bc62c933c01f5d8a57f49584bdeaac1e69dff1","_id":"@avot/avot@0.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"terosaarikivi","email":"saarikivit@gmail.com"},"dist":{"integrity":"sha512-LScqrJov115d12dm60jbtSz6W90w/jLBw/1wOQ5koyh26K1C0f74nKE/P0eIPE0Lq2tPUzG9IbP0gx1c82JUlQ==","shasum":"d242d0fd5fa2718276bedc559c25c75f2f4dda24","tarball":"https://registry.npmjs.org/@avot/avot/-/avot-0.0.1.tgz","fileCount":11,"unpackedSize":5743,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRFmICRA9TVsSAnZWagAAaF4QAJI1tP+3uRptgHRdtoKX\nbtbtkSgmXHl8vo4zZ+WDOBjP8Edz673iEa9NFLmS3LE3iOoKS31kD2vCHmSJ\niYtGepW0FcxUbYQYWf8fPaziG3S8KAcTxhgkW+4qyx+WnZR8WC1PDmVyZDdg\nvIsvJvGWVTl8yugMOvZcQhK56JP7z/Z3kRSJhmAky1vBiRVVgaU6MdkOs57/\nPOLgLD7t5sryvVnCFVJiYqiM/NDHGKMjR4WAICZLnuhbBRCRB+P/Akfo+0PX\n3df9PlHa/LyCs8GnwVtCajKcag1o1h1QJBZ0EQfWx1TCI567xesm3Z+9TWpU\nxqWk8Gda0VQFOeAivCpgTPaKqPzNGwnziLsmR6icw+p7C1pxSrQXg2BFi2k2\nl31tTLOOLtP8hX8jbFUjvRyqhtco/xhx5ahTRnOky8ldEAypMYUVcCCATAtB\nWF1VHfvbpfMV4MblGClLsuayMw2Lp8k8z3NgeLl+abrn++IgQc+yu/zUzvGp\nV4wQjZjKNUXc1IlpmA0seaT6cdebIwMK2yY+V4vUYDUvPKx9U/XoUx4x9Lmd\na/ZgKHZ62/afnnuzz1pHso3ZYUvnizpxnGxlxiPtm1wvWhdrL0M7F1bUoLh/\nkOfjxpFltv8JZmNLHVOepTqLnEYlAEFES33e4l/OO2TvzTL6OdBut210mD8f\n+sn1\r\n=fNDN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHg3CexEsn+dTOObWeuG9eOB9w2cKtBomVIOh0iC14z7AiEAsl/yviXX36yV/8y4m55SGqx33Xw3/zaKQHdwIm1P6rM="}]},"maintainers":[{"name":"terosaarikivi","email":"saarikivit@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/avot_0.0.1_1547983240226_0.9831804670248665"},"_hasShrinkwrap":false},"1.0.0":{"name":"@avot/avot","version":"1.0.0","description":"Avot automates the creation of microservices.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/tsaarikivi/avot.git"},"keywords":["microservice","automate","create"],"author":{"name":"Tero Saarikivi"},"license":"MIT","bugs":{"url":"https://github.com/tsaarikivi/avot/issues"},"homepage":"https://github.com/tsaarikivi/avot#readme","dependencies":{"chalk":"^2.4.2","commander":"^2.19.0","inquirer":"^6.2.1"},"bin":{"avot":"index.js"},"gitHead":"827b4dee9e345abf41e142291a967b1acb018b80","_id":"@avot/avot@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"terosaarikivi","email":"saarikivit@gmail.com"},"dist":{"integrity":"sha512-6g6xsJKW++z4QMOrdKtbnWg/d7UvLS4w7c1erOAgo6OnRf1R9Hyrk6b3un9mUFpFJrE6+w0yfiUlRViUh8xpGg==","shasum":"d13e77a1573c63b12dd136025b4668a16be07e3d","tarball":"https://registry.npmjs.org/@avot/avot/-/avot-1.0.0.tgz","fileCount":11,"unpackedSize":7384,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRGUoCRA9TVsSAnZWagAApgYQAIuWmjIjO1wnuQMpXMuw\nBX2Le6ZvmKZ6pKiXtRheGZKyiBdrh0Y6+Fu0V0qYIFpIO/LV+APikYPNE5+P\nbm1kBEx33U/4eot9kEtiaVzBGQ/L3dLEegh9er9Daus4irpaBxHxOdhApcuy\nNRq/zWnB7VMjmVnmsD5sSeg5IlHRF1Y/EFXVqXMXn9dSbhHxuQUpLLP1/H9S\nruXiz51sQee++80Rh46xlbYRAOeIV6wwYhmm1dCsHYhOYu2Akm3AmFlr4nQG\no4Dfb8BhWBfRg+QYm15Fpd/tSpKqHDhlihwOBq7IGlGE0sdv3Emnnq/juCHi\n5nGfz1Zqkt2R4aJ3IqRacZlCsT09fktVoFl1B7k2UeNcQgn0VxHkGLK2eQLM\nn7eR4Z5hvpfVHGD7yeoaLcJ8rXx8tqMtE30viUo7djM4SqvCU6QSIHYRKxzy\nZ9861jeYjxcD/UA+iZrNpNe2nROdzxy/2MQzOEd80VCqpgvR9lhB18XSQ3dq\nm5sz2jX//xD2gnrf6c5c82zGlggfW5MfSgSdU/s3SFK79AfaXAtoa/u9+xY/\n3UvScBZWHbSkaVn/59bFhdtrbGTZKBK0DZXCNXSTHe+a1HmLb9wMc09pC24D\npJ/dIWmlxU+jQMbTS3RLPnIm9zSb1Uvj7ggnsdjn2yUt5AhHuLidnnqI50qZ\nyRyM\r\n=YRMe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFEVZ+lHuqB9d/LUuO2Aw8luTxzKKtoEMKzoSCemUhvsAiAfVB519QXHYVQtuQCHguT7LA5NiBmPx+cZxb8N3ph0dQ=="}]},"maintainers":[{"name":"terosaarikivi","email":"saarikivit@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/avot_1.0.0_1547986216080_0.7485167778183326"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-20T11:20:40.049Z","0.0.1":"2019-01-20T11:20:40.381Z","modified":"2022-04-04T16:48:49.375Z","1.0.0":"2019-01-20T12:10:16.158Z"},"maintainers":[{"name":"terosaarikivi","email":"saarikivit@gmail.com"}],"description":"Avot automates the creation of microservices.","homepage":"https://github.com/tsaarikivi/avot#readme","keywords":["microservice","automate","create"],"repository":{"type":"git","url":"git+https://github.com/tsaarikivi/avot.git"},"author":{"name":"Tero Saarikivi"},"bugs":{"url":"https://github.com/tsaarikivi/avot/issues"},"license":"MIT","readme":"# Avot\n\nAvot automates the creation of microservices in your project. It's is fully customizable.\n\n- It asks the questions you define.\n- Runs your pre scripts. (eg. create git repo and build pipeline)\n- Scaffolds your template files by copying them to your preferred location and replacing variable words.\n- Running your post scripts. (eg. commit and push to git)\n\nAvot has served it's purpose when it is as easy as \"avot new\", to create a microservice with built in:\n\n- repository setup\n- build pipeline setup\n- template scaffolding\n- after scripts\n\n## How To\n\n### Install\n\n`npm i -g @avot/avot`\n\n### Overview\n\n- To your project structure create an avot configuration file\n- To your project structure create a template directory for avot to scaffold a new service\n- Run `avot new` if you have avot.json in the root of your project or `avot new --path path/to/avot.json`\n\n### Configuration File\n\n[An example avot.json](./example/config/avot.json)\n\n```json\n{\n  \"variableQuestions\": [\n    {\n      \"name\": \"SERVICE_NAME\",\n      \"message\": \"Service name:\"\n    }\n  ],\n  \"preCommands\": [\n    {\n      \"command\": \"echo\",\n      \"args\": [\"'SERVICE_NAME'\"]\n    }\n  ],\n  \"paths\": {\n    \"fromDirectory\": \"../files\",\n    \"toDirectory\": \"../services\"\n  },\n  \"postCommands\": [\n    {\n      \"command\": \"echo\",\n      \"args\": [\"'hello world'\"]\n    }\n  ]\n}\n```\n\n#### variableQuestions\n\nThe value of property `\"name\"` will be replaced everywhere in your scaffold files and commands. The value of property `\"message\"` will be displayed as the question in the cli. `\"SERVICE_NAME\"` is reserved for file and folder naming purposes.\n\n#### preCommands & postCommands\n\nYou can run any commands pre and post scaffolding your template files. The property `\"command\"` is the command to be executed. The property `\"args\"` are the arguments passed to the command. You can add flags and anything else to the args property.\n\n#### paths\n\nThe property `\"fromDirectory\"` should point to your service template directory. The property `\"toDirectory\"` should point to your services root directory.\n\n## Done\n\n- A working version with customization only\n- A how to guide\n- A small contribution guide\n\n## Upcoming\n\n- `avot init` to create basic folder and files to current directory.\n\n## Contribution\n\n- Fork\n- Hack\n- Run `node index.js new --path example/config/avot.json` to try it out\n- Pull request\n","readmeFilename":"README.md"}