Skip to content

Conversation

@devongovett
Copy link
Member

Depends on #706.

This updates the docs when building for production to show imports to the monopackage instead of the individual packages. This is implemented as a simple babel plugin that runs over each example to convert the imports when needed. With a little hacking, I was also able to avoid needing to convert the AST back to code with babel and then reparse it in prettier by making prettier use the babel ast directly.

yarn.lock Outdated
slice-ansi "^4.0.0"
string-width "^4.2.0"

"@parcel/codeframe@^2.0.0-alpha.3":
Copy link
Member

Choose a reason for hiding this comment

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

no updates to package.json's, why is this getting updated?
I'm ok if you refreshed it on purpose

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess it updated when I ran yarn. Perhaps the one on master is out of date?

Base automatically changed from published-docs to master July 10, 2020 00:34
@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@dannify dannify merged commit 98acb68 into master Jul 10, 2020
@dannify dannify deleted the monopackage-docs branch July 10, 2020 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants