Packages: Move story-editor
to new structure
#6050
Labels
P2
Should do soon
Package: Story Editor
/packages/story-editor
Type: Infrastructure
Changes impacting testing infrastructure or build tooling
Feature Description
💡 The goal here is to create two packages⚠️
Package 1:
story-editor
Proof-of-concept: https://github.com/google/web-stories-wp/tree/try/next-level-packages/packages/story-editor/src
This package will basically just export a ton of stuff.
-> Dashboard will import any dependencies from here for now (there will be way fewer once #8373 lands)
-> Web Stories block will import any dependencies from this package (until #8327 lands)
/assets/src/edit-story
to/packages/story-editor/src/
packages/story-editor/index.js
just export all components needed by othersUse
@web-stories-wp/...
imports for anything that is already a package, relative imports for everything else./packages/story-editor/package.json
referencing its dependencies/packages/story-editor/README.md
with short documentation.Package 2:
wp-story-editor
Proof-of-concept: https://github.com/google/web-stories-wp/blob/f02da9e83a879b316e31b7d13bd62bd1dc8c9014/packages/wp-story-editor/src/index.js
/assets/src/edit-story/index.js
to/packages/wp-story-editor/src/index.js
, updating all references to import from@web-stories-wp/story-editor
/packages/wp-story-editor/package.json
referencing its dependencies/packages/wp-story-editor/README.md
with short documentation.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria
Implementation Brief
For the remaining dependencies:
packages/story-editor/karma/fixture
can continue to importFixtureEvents
fromassets/src/karma-fixture
for nowformattedTemplatesArray
array used in story editor karma tests should be copied topackagers/story-editor/karma/fixture/db/templates.js
and imported from thereAlso:
.storybook/stories/playground/index.js
still imports & renders editor correctly.The text was updated successfully, but these errors were encountered: