https://pulumi.com logo
#typescript
Title
# typescript
a

agreeable-ram-97887

01/01/2021, 11:26 PM
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

proud-pizza-80589

01/02/2021, 5:11 AM
I’m making CustomResources everywhere, nice way to encapsulate parts of my setup
💯 1
p

prehistoric-nail-50687

01/04/2021, 7:57 AM
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

future-potato-71458

01/07/2021, 8:02 PM
I started doing a mix of the above