deepkit-framework icon indicating copy to clipboard operation
deepkit-framework copied to clipboard

[Feature] Runtime environment agnostic framework

Open marcus-sa opened this issue 3 years ago • 2 comments

We'd like to support additional runtime environments, such as:

This would require that we'd need to extract all runtime environment specific code into their own packages.

Code that is tied to NodeJS [WIP]

@deepkit/app:

  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/configuration.ts#L11-L12
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/configuration.ts#L17-L22
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/configuration.ts#L24-L36
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/configuration.ts#L50
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/utils.ts#L2-L19
  • https://github.com/deepkit/deepkit-framework/blob/master/packages/app/src/command.ts
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/app.ts#L15-L18
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/app.ts#L275-L280
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/app/src/app.ts#L321

@deepkit/crypto

  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/crypto/index.ts#L11-L32

@deepkit/http:

  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/http/src/static-serving.ts#L12-L13
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/http/src/static-serving.ts#L66
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/http/src/static-serving.ts#L41
  • https://github.com/deepkit/deepkit-framework/blob/aeaef0178c60a3ddfb4c293cbe914afa693fdcd9/packages/http/src/static-serving.ts#L44-L57

@deepkit/rpc:

marcus-sa avatar May 23 '22 14:05 marcus-sa

good idea , deno with deepkit

https://www.edgedb.com/blog/how-we-converted-our-node-js-library-to-deno-using-deno https://wintercg.org/

sunw31 avatar Jun 18 '22 13:06 sunw31