Redocly / swagger-repo

CLI tool to help you manage your OpenAPI(fka Swagger) repo.
MIT License
18 stars 29 forks source link

Added config for changing root directory #6

Closed andriy-baran closed 6 years ago

RomanHotsiy commented 6 years ago

Hey @andriy-baran,

sorry for not merging this for so long time. I missed this PR.

Do you still need this? Could you explaine your usecase, maybe there is some better solution.

meanwhile, I have revieved your changes quickly and seems you didn't test all the commands with the new config option as I found some mistakes.

andriy-baran commented 6 years ago

We have many microservices in our app each of them has separate docs. Problem we faced is that we should switch between folders to start specific swagger app and a lot of code duplication. This PR is an attempt to start swagger apps from docs root directory. As result we have interface like this

$ npm run service1
$ npm run service2
$ npm run service3
RomanHotsiy commented 5 years ago

@andriy-baran are you ended up using this feature? I am now refactoring swagger-repo and this feature adds lots of unneeded complexity.