WebTemplateStudio icon indicating copy to clipboard operation
WebTemplateStudio copied to clipboard

Investigate how to share code between the client and the extension

Open dgomezc opened this issue 4 years ago • 1 comments

  • [ ] Investigate how to share code between the client and the extension using a share folder. (Try to remove duplication in code)
  • [ ] Investigate if we can use generics in the IPayloadResponse interface to type the payload property:
export interface IPayloadResponse<T> {
  payload: T;
}

dgomezc avatar Mar 16 '20 16:03 dgomezc

https://stackoverflow.com/questions/44114436/the-create-react-app-imports-restriction-outside-of-src-directory Might want to consider ejecting web pack, before trying to have shared code via shared directory. Another thing that was recommended was to create a small npm module containing all the shared code if you do not wish to eject web pack at this time.

SahilTara avatar Mar 20 '20 00:03 SahilTara