Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6156

Split Spreadsheet block JS/CSS code

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Merged
    • Icon: Should have Should have
    • 2.57.0
    • None

      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

       

            fhernand Florent Hernandez (Inactive)
            fhernand Florent Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: