Does anyone have a suggested pattern for structuri...
# typescript
a
Does anyone have a suggested pattern for structuring a large typescript pulumi project? I would like to avoid placing everything under a single "index.ts" file. Instead I would prefer to create a directory-tree to better organize the code which should all be invoked by the project's root index.ts. But I am unsure of how to do this cleanly, or if any examples of this can be found online?
p
I’m making CustomResources everywhere, nice way to encapsulate parts of my setup
💯 1
p
I just do this in the
index.ts
Copy code
require("./src/resources");
require("./src/app1");
require("./src/app2");
each of the imported files then e.g. loads its own config object and creates the resources
f
I started doing a mix of the above