-
Task
-
Resolution: Merged
-
Should have
-
None
-
5
-
Block: Spreadsheet
-
Sprint #161
-
oberon
Following https://jira.greenpeace.org/browse/PLANET-4535 (based on https://jira.greenpeace.org/browse/PLANET-4534),
split/reorganize Spreadsheet block scripts in assets/src/blocks/{Blockname} and assets/src/styles/blocks/{Blockname} to this structure :
- assets/src/blocks/{Blockname}/{Blockname}Script.js instantiates a block on the frontend side
- assets/src/blocks/{Blockname}/{Blockname}EditorScript.js instantiates a block editor, in the gutenberg editor
- assets/src/styles/blocks/{Blockname}/{Blockname}Style.scss is used to style the block on frontend
- assets/src/styles/blocks/{Blockname}/{Blockname}EditorStyle.scss is used for editor specific styles
A generic method you can follow is available in this PR https://github.com/greenpeace/planet4-plugin-gutenberg-blocks/pull/591#user-content-genericmethod
- is cloned by
-
PLANET-6157 Split Cookies block JS/CSS code
- OPEN
-
PLANET-6158 Split SplitTwoColumns block JS/CSS code
- OPEN
-
PLANET-6160 Split SocialMedia block JS/CSS code
- OPEN
-
PLANET-6161 Split Media block JS/CSS code
- OPEN
- relates to
-
PLANET-4534 Perf: Split frontend JS into critical and deferrable
- OPEN