Skip to content

Gutenpack: Add the ability for presets to create beta bundles. - #28178

Merged
enejb merged 3 commits into
masterfrom
add/gutenpack-ability-to-release-beta-block
Oct 30, 2018
Merged

enejb merged 3 commits into
masterfrom
add/gutenpack-ability-to-release-beta-block

Conversation

@enejb

@enejb enejb commented Oct 30, 2018 •

Copy link
Copy Markdown
Member

Changes proposed in this Pull Request

  • Creates a new beta bundle preset.

Testing instructions

Run the usual sdk command.

Run the usual command that builds the bundle.
npm run sdk gutenberg client/gutenberg/extensions/presets/jetpack -- --output-dir="../jetpack/_inc/blocks"

it should produce the following files.

editor.css  5.32 KiB              editor  [emitted]  editor
editor.js   426 KiB              editor  [emitted]  editor
editor-beta.css  7.54 KiB         editor-beta  [emitted]  editor-beta
editor-beta.js   672 KiB         editor-beta  [emitted]  editor-beta
tiled-gallery/view.css  1.88 KiB  tiled-gallery/view  [emitted]  tiled-gallery/view
tiled-gallery/view.js  6.59 KiB  tiled-gallery/view  [emitted]  tiled-gallery/view
editor.rtl.css  5.33 KiB              editor  [emitted]  editor
editor-beta.rtl.css  7.54 KiB         editor-beta  [emitted]  editor-beta
tiled-gallery/view.rtl.css  1.89 KiB  tiled-gallery/view  [emitted]  tiled-gallery/view

@matticbot

Copy link
Copy Markdown
Contributor

@enejb enejb added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Goal] Gutenberg Working towards full integration with Gutenberg labels Oct 30, 2018
@enejb enejb added the [Status] Needs Jetpack e2e Testing Runs the full suite of Jetpack e2e automated tests against this PR using calypso.live label Oct 30, 2018
@roccotripaldi
roccotripaldi force-pushed the add/gutenpack-ability-to-release-beta-block branch from fde4be1 to 3455b59 Compare October 30, 2018 22:21

@roccotripaldi roccotripaldi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ready2go

@enejb
enejb merged commit 7adccac into master Oct 30, 2018
@enejb
enejb deleted the add/gutenpack-ability-to-release-beta-block branch October 30, 2018 22:50
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Oct 30, 2018
@tyxla

tyxla commented Oct 31, 2018

Copy link
Copy Markdown
Member

TBH, I'm not sure what's the value of this - what we're shipping in the beta, should be shippable at any other given time; so why not use the default way? Also, the Gutenberg SDK bundler is not only for Jetpack, and betas make sense only in Jetpack context. Adding another output file for general Gutenberg SDK use feels like unnecessary overhead.

@simison

simison commented Oct 31, 2018

Copy link
Copy Markdown
Member

+1 @tyxla

I feel like a way to build betas (if needed) should be adding another preset and running CLI command separately for two presets.

Since we also need to track what is imported in Calypso (currently via jetpack/editor.js, this adds quite a bit of complexity since we'd have three places to define shipped preset, within one preset folder.
Risks for making mistakes are bigger the more complicated this setup is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Goal] Gutenberg Working towards full integration with Gutenberg [Status] Needs Jetpack e2e Testing Runs the full suite of Jetpack e2e automated tests against this PR using calypso.live

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants