Describe the problem
Sometimes client-side and server-side code is tightly coupled, and it make senses to keep it together, but I don't want a bunch of abc.server.ts files. Instead, I'd like to group all serverside files into a directory.
Describe the proposed solution
Add an option to consider consider lib/**/server/** files as server-side, instead of lib/server/**. This would allow for folder structures like:
lib/
services/
email/
model.ts
client.ts
server/
client.ts
api.ts
config.ts
content/
urls.ts
model.ts
upload_request.ts
server/
upload.ts
manage.ts
Alternatives considered
Just name all serverside files with .server in their name.
Importance
would make my life easier
Describe the problem
Sometimes client-side and server-side code is tightly coupled, and it make senses to keep it together, but I don't want a bunch of
abc.server.tsfiles. Instead, I'd like to group all serverside files into a directory.Describe the proposed solution
Add an option to consider consider
lib/**/server/**files as server-side, instead oflib/server/**. This would allow for folder structures like:Alternatives considered
Just name all serverside files with
.serverin their name.Importance
would make my life easier