This is an attempt to resolve the co-dependency issue with the widget dev kit requiring certain assets from Materia itself in order to run widgets in situ. Since the assets are no longer housed in an independent repo (previously Materia-Server-Client-Assets), it made sense to create a node package that's published from within Materia itself.
The materia-widget-dependencies-package is housed in public/dist, a previously untracked directory where webpack is currently configured to emit compiled assets. Nothing in public/dist is tracked with the exception of the new package.json and accompanying README. There are no dependencies specific to MWDP, it merely contains a manifest of previously compiled JS and CSS assets for use in the dev kit. To publish the package, a new GitHub action is included to make use of workflow_dispatch, which means publish events are triggered manually and not tied to any CI/CD process.
This is an attempt to resolve the co-dependency issue with the widget dev kit requiring certain assets from Materia itself in order to run widgets in situ. Since the assets are no longer housed in an independent repo (previously Materia-Server-Client-Assets), it made sense to create a node package that's published from within Materia itself.
The
materia-widget-dependencies-package
is housed inpublic/dist
, a previously untracked directory where webpack is currently configured to emit compiled assets. Nothing inpublic/dist
is tracked with the exception of the newpackage.json
and accompanying README. There are no dependencies specific to MWDP, it merely contains a manifest of previously compiled JS and CSS assets for use in the dev kit. To publish the package, a new GitHub action is included to make use ofworkflow_dispatch
, which means publish events are triggered manually and not tied to any CI/CD process.