You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
At the moment the generated classes (ContentTypes, Schemas, etc...) are bundled together with sn-client-js and tightly coupled with the Repository object. In that way we can not extend or add content types from different packages (e.g. if we want install the types from the Services, Webpages and our custom solution), the only way is to overwrite the whole ContentTypes library inside sn-client-js
Suggestion
In the future we should distribute ContentTypes in a different NPM package (see #67, e.g. @sensenet/content-services), maybe alongside with backend dependency releases and we should allow to add Content Types and Schemas
Every TypeScript class can be used as a ContentType, they can be passed as a generic argument. We should talk about the distribution in another ticket and review the sn-client-cli functionality - Review sn-client-cli functionality sn-client-cli#62
The problem:
At the moment the generated classes (ContentTypes, Schemas, etc...) are bundled together with sn-client-js and tightly coupled with the Repository object. In that way we can not extend or add content types from different packages (e.g. if we want install the types from the Services, Webpages and our custom solution), the only way is to overwrite the whole ContentTypes library inside sn-client-js
Suggestion
In the future we should distribute ContentTypes in a different NPM package (see #67, e.g. @sensenet/content-services), maybe alongside with backend dependency releases and we should allow to add Content Types and Schemas
TBD
The text was updated successfully, but these errors were encountered: