Make the Help Center app
This creates a Jetpack ready Help Center app.
Bundles
This makes four ready-to-be-enqueued bundle of the Help Center to be used by Jetpack.
- Gutenberg
- Jetpack connected - renders the Help Center
- Jetpack disconnected - renders just a button that links to /help.
- wp-admin
- Jetpack connected
- Jetpack disconnected- renders just a button that links to /help.
Translations
- This pulls Calypso strings and creates Help Center translations files off them.
- It then uploads these translation files to widgets.wp.com.
- Jetpack in turn download these files and enqueues them as translations.
Change to ETK
This changes ETK to only the Help Center when it's not already loaded. In a future change, I'll remove all the Help Center code from ETK.
Testing steps
It's not needed to test this as a product. But you can help by testing the build process.
- cd
packages/help-center. - run
yarn build. - You should get an
appsfolder containing all the bundles mentioned above. - You should get a
languagesfolder containing JSON translations files.
Jetpack Cloud live (direct link)
|
|
https://calypso.live?image=registry.a8c.com/calypso/app:build-112592&env=jetpack |
Automattic for Agencies live (direct link)
|
|
https://calypso.live?image=registry.a8c.com/calypso/app:build-112592&env=a8c-for-agencies |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser.
Generated by performance advisor bot at iscalypsofastyet.com.
This PR modifies the release build for the following Calypso Apps:
For info about this notification, see here: PCYsg-OT6-p2
- editing-toolkit
- notifications
- wpcom-block-editor
To test WordPress.com changes, run install-plugin.sh $pluginSlug make/help-center-app on your sandbox.