-
Notifications
You must be signed in to change notification settings - Fork 16
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
Using one instance of wp-scripts to work with all blocks #89
Comments
This repo uses pnpm to build all of the blocks, have a look at the instructions in the Development section in the Wiki for set up instructions. |
Thank you for pointing that out, @ryanwelcher Getting Started is a good place, seeing a lot of potential in the repo!
Going to submit a PR to indicate that |
Hi @flexseth, First of all, thanks a lot for your issues and PRs on this repo 🙏
I want to provide a broader perspective of what can be done with the examples of this repo. Note TL;DR: The examples are prepared to work with them as a batch or individually, to work with them under this repo itself or your own WP installation, to clone the repo and copy and paste the examples or your own WP installation, or to download the examples and install them directly as plugins or your own WP installation without cloning the repo
You can actually check the examples without cloning the repo. WIth the links provided for each example you can check the example online (with WP playground) or download the
You can just move those examples you're interested in
Again, you can just build the NPM packages for the blocks you're interested in. As you already mention, the Getting Started guide is a great place to start working with the examples of this repo. Some of the things mentioned in this page about how to work locally with these examples are:
The Local Development Guide is another good resource to learn more about how to work locally with the examples of this repo |
Description
In order to take a look at blocks in this repo, there are a couple of steps needed:
/plugins
folder towp-content/plugins
for your local installationProposal
Is there a way to save
@wordpress/scripts
in thewp-content/plugins
directory, and build this one time?Otherwise, if you had a local copy of
wp-scripts
at a source folder, let's say~/users/username/dev/wp-scripts
To access all builds from one
wp-scripts
package?Caveats
I realize you can do this by bootstrapping multiple plugins, but I'm thinking of never having to re-install the
wp-scripts
package again... just update it for one copy on your machine.Also realize there can be some dependency issues here, and also some issues with needing extra packages such as
useDebounce
..The text was updated successfully, but these errors were encountered: