Skip to content

Conversation

youknowriad
Copy link
Contributor

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.

@youknowriad youknowriad added the npm Packages Related to npm packages label Oct 9, 2018
@youknowriad youknowriad self-assigned this Oct 9, 2018
@youknowriad youknowriad requested review from gziolo and a team October 9, 2018 08:49
@@ -1,14 +1,13 @@
{
"name": "@wordpress/list-reusable-blocks",
"version": "1.0.1",
"version": "1.0.0-alpha.0",
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was not released :)

Copy link
Member

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 ...

Copy link
Contributor Author

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.

@gziolo gziolo force-pushed the add/edit-post-package branch from 04bd9be to 1057025 Compare October 9, 2018 14:34
@@ -1,10 +0,0 @@
.edit-post-post-trash {
Copy link
Member

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 {
}
}
}

Copy link
Member

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.

Copy link
Member

@gziolo gziolo left a 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.

@gziolo gziolo added this to the 4.0 milestone Oct 9, 2018
@youknowriad youknowriad merged commit 3d3c2a4 into master Oct 9, 2018
@youknowriad youknowriad deleted the add/edit-post-package branch October 9, 2018 15:12
@youknowriad
Copy link
Contributor Author

Thanks for the help @gziolo

Copy link
Member

@tofumatt tofumatt left a 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. 🤷‍♂️

@youknowriad
Copy link
Contributor Author

@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.

@gziolo
Copy link
Member

gziolo commented Oct 9, 2018

Can we try to hide this message behind env flag so we could skip it in core?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Packages Related to npm packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants