-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Extract the edit-post module as a reusable package #10429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -1,14 +1,13 @@ | |||
{ | |||
"name": "@wordpress/list-reusable-blocks", | |||
"version": "1.0.1", | |||
"version": "1.0.0-alpha.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if npm will allow downgrading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not released :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was as 1.0.1 - somehow private doesn't stop Lerna from publishing ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see it in npm, I think we're fine.
04bd9be
to
1057025
Compare
@@ -1,10 +0,0 @@ | |||
.edit-post-post-trash { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm it can be safely removed. It's dead code.
@@ -265,16 +286,3 @@ body.gutenberg-editor-page { | |||
} | |||
} | |||
} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed this with @iseulde that this is dead code which is no longer necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that everything still works as expected. I added a few commits so it would be nice to have another check for the code I added.
Amazing work @youknowriad on moving all remaining code to packages. This one marks another milestone. Looking forward to see the outcome of work started by @omarreiss and @atimmer to see it consumed in WordPress core.
Thanks for the help @gziolo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package is not meant to be used outside the WordPress context though.
Can you still have post-install
messages for npm
packages? Might be nice if our Gutenberg package displayed some kind of message for our (currently) WordPress-specific packages. 🤷♂️
@tofumatt seems like a good idea, we'll have to make sure it's not "a big warning" as the message will show up in WordPress Core and people should feel confident ignoring it. |
Can we try to hide this message behind env flag so we could skip it in core? |
This PR extracts the edit-post package into the npm packages. The main reason is to make it usable in WordPress Core as a npm dependency. This package is not meant to be used outside the WordPress context though.
This is also the last Gutenberg package to move to the packages folder which means all of the Gutenberg JS code is a package now. There's only one deprecated component left at the root-level which will be able to remove in one or two releases.