serverless / compose

Orchestrate Serverless Framework in monorepos
https://serverless.com/framework/docs/guides/compose
MIT License
110 stars 15 forks source link

Components do not have to implement a base class anymore #133

Closed mnapoli closed 2 years ago

mnapoli commented 2 years ago

In this PR I prepare the work to allow components to not implement the base class.

The main change is that Compose can no longer access component.id, component.context or component.inputs (because we have no guarantee these properties are exposed by component classes).

Instead of forcing components to expose these properties, it was fairly simple to refactor the code to get "id", "context" and "inputs" from other variables.

Matching PR: https://github.com/serverless/components-core/pull/8