WebTemplateStudio
WebTemplateStudio copied to clipboard
Investigate how to share code between the client and the extension
- [ ] 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;
}
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.