Calypso & wp-admin isomorphic extensions #15243
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Continues the work from #11620
The intent of this PR is to build an example of an extension that can be used both in calypso and wp-admin, so we could use a single codebase to build both versions of a plugin.
It requires a small php plugin on wp-admin side to work: https://gist.github.com/johnHackworth/73cc8f8bf11e8459544e2361e36eb9e5
How to test:
bin/copy-files.sh
to add the path where your js bundles are going to be exported (probably you want them to be in the local mirror of the path where the PHP plugin sits)0.5 Copy the php plugin in your test site plugins folder and activate it
npm run build-jetpack && ./bin/copy-files.sh