test: added a lot tests around the monorepo structure #166
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Hi @kamilmysliwiec,
Here is my draft PR with an explanation of what I've changed and what the behavior is/ will be. I will split this in two different part, part one is for the default setup that is not a monorepo. The other one is specific for the monorepo setup.
Default setup
To use the library people do the following:
nest new projectNamenest add @nestjs/azure-func-httpnpm run start:azureThe output of this will be the same as earlier. In the dist folder will be all the code and because of the configuration in the
Azurefiles it will be runnable by runningfunc host startNo new things there, the only thing I would like to know. Should we support a
nest.jsonfile? This is something I've not yet implemented at this moment.Monorepo setup
To use the library people do the following:
nest new projectNamenest generate app projectTwonest add @nestjs/azure-func-http --project projectTwonest build projectTwodist/apps/projectTwowith a custom webpack setupcd apps/projectTwo/srcnpx func host startThe output of the
distwill be runnable similiar as theDefault SetupCould you provide me some feedback and the answer if we need to support
nest.json. I don't know if the custom webpack setup is the bestway to goas this will break the default behavior ofnest start projectTwo. But I don't see a other way we could do this.I hope this is approach you like to go with this package. It is pretty hard to configure all of the different parts.
]