Open iyerusad opened 5 years ago
cc: @ColbyTresness
I ended up building multiple function apps to effectively replicate this, but now that I'm a bit further down the line - I'm probably going to move to flatten the apps into a single one and use prefixes on the names instead.
Hey @mhoeger, @ColbyTresness, can anyone confirm if this is being looked at? I would love the ability to move my typescript functions into a subfolder to make the layout a lot cleaner.
Upvote, this is definitely going to be very interesting to have this. Currently using the prefixes on the names.
Upvote! If we could specify a folder in host.json for example "./src/functions" which could recursively look for our function.json files in that folder that would be amazing, as opposed to having 50 functions in the root folder along with everything else.
Any update here, is this on the roadmap? @mhoeger @ColbyTresness
This would be super valuable. My function app's starting to get out of hand with no way to organize them. Being able to group functions in subfolders would go a long way! @mhoeger any idea if this is being looked at?
There is some news about this feature?
upvote.. this feature is very much needed when working with multiple functions inside the same project.. its very difficult to manage the code otherwise.. I believe AWS already provides this feature !
That would make things so much simpler when working in an https://nx.dev/ workspace/monorepository, really hope this can get prioritized 🙏
That would make things so much simpler when working in an https://nx.dev/ workspace/monorepository, really hope this can get prioritized 🙏
Can we develop an azure function project in nx?
I had searched last year, but there was no nx plugin for.
Can we develop an azure function project in nx?
There is no official plug-in but I currently manage to maintain one Function App as a nx workspace thanks to the "scriptFile" option of AF to target nx dist
folder, as described here: https://github.com/Azure/azure-functions-core-tools/issues/2736
(Inspired from the TS template of Azure Functions)
It uses nx to compile and serve, and Azure Functions Core Tools (AFCT) to run locally and deploy.
And since AFCT does not recommend to update only one function, the deployment publishes all functions, which means no optimized CD for that step (... but other nx targets can work with the affected
scope, for instance if you also have frontend projects in the workspace)
even just being able to drop all the functions in a subfolder 1 level deep would make a big difference. That way at least you have single folder containing ONLY functions.
functions
- petstore-get
- petstore-post
- foobar-get
lib
- validators.ts
packet.json
Right now, I have function folders sandwiching lib and root level configuration files, which seems really disorganized.
Feature: Support subfolders / categories structure.
Mockup:
Existing workarounds are rather janky:
function.json
can't be moved)function.json
can't be moved)Stackoverflow request: https://stackoverflow.com/questions/44176892/azure-functions-in-sub-folders