Closed mickmister closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
7de5e03
) 11.22% compared to head (14e7924
) 11.22%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary
In order to share frontend code between calendar projects, we need to have a way to reference the source code of the shared package. This PR introduces a
postinstall
script that checks out the shared repo as an npm dependency, so that the common calendar logic can be imported by the gcal repo. By defining thepostinstall
script, we do the following whenevernpm install
is run:mattermost-plugin-google-calendar
(should bemattermost-plugin-google-shared
) repo as an npm dependencyThe
index.tsx
file on thisbare-webapp
branch does not define aPlugin
object to provide toregisterPlugin
. It instead imports the one provided by the cloned module, and uses that to callregisterPlugin
. Note that the commit https://github.com/mattermost/mattermost-plugin-google-calendar/commit/157e79683b910d1af2f38fbec06236ef3a9c62a9 being imported avoids callingregisterPlugin
in itsindex.tsx
fileTicket Link