monorepo-builder
wp-react-starter
monorepo-builder | wp-react-starter | |
---|---|---|
2 | 1 | |
430 | 379 | |
0.9% | 1.1% | |
7.2 | 0.0 | |
6 months ago | about 3 years ago | |
PHP | PHP | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
monorepo-builder
-
Using monorepo-builder outside of github and gitlab
When it comes to the part of actually publishing packages from inside your monorepo you have to get creative with a lot of git commands, or other existing tools like symplify/monorepo-builder from @tomasvotruba
-
🍾 GraphQL API for WordPress is now scoped, thanks to PHP-Scoper!
Now, as the number of packages in your application grows, you'll need to have them all hosted in a monorepo, or you'll go bunkers creating pull requests involving more than one package (believe me, I've been there). In my case, all my packages are hosted in the leoloso/PoP monorepo, and I keep them in sync via the wonderful Monorepo Builder (I need to write an article about this tool, it's such a life saver!).
wp-react-starter
-
🍾 GraphQL API for WordPress is now scoped, thanks to PHP-Scoper!
return [ 'patchers' => [ function ( $file_path, $prefix, $contents ) { /* * There is currently no easy way to simply whitelist all global WordPress functions. * * This list here is a manual attempt after scanning through the AMP plugin, which means * it needs to be maintained and kept in sync with any changes to the dependency. * * As long as there's no built-in solution in PHP-Scoper for this, an alternative could be * to generate a list based on php-stubs/wordpress-stubs. devowlio/wp-react-starter/ seems * to be doing just this successfully. * * @see https://github.com/humbug/php-scoper/issues/303 * @see https://github.com/php-stubs/wordpress-stubs * @see https://github.com/devowlio/wp-react-starter/ */ $contents = str_replace( "\\$prefix\\_doing_it_wrong", '\\_doing_it_wrong', $contents ); $contents = str_replace( "\\$prefix\\__", '\\__', $contents ); $contents = str_replace( "\\$prefix\\esc_html_e", '\\esc_html_e', $contents ); $contents = str_replace( "\\$prefix\\esc_html", '\\esc_html', $contents ); $contents = str_replace( "\\$prefix\\esc_attr", '\\esc_attr', $contents ); $contents = str_replace( "\\$prefix\\esc_url", '\\esc_url', $contents ); $contents = str_replace( "\\$prefix\\do_action", '\\do_action', $contents ); // ... } ] ]
What are some alternatives?
Symfony Dotenv - Registers environment variables from a .env file
GatoGraphQL - Interact with all your data in WordPress using GraphQL
php-scoper - 🔨 Prefixes all PHP namespaces in a file/directory to isolate the code bundled in PHARs.
web-stories-wp - Web Stories for WordPress
monorepo-split-github-action - Github Action for Monorepo Split
site-kit-wp - Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
mozart - Developers tool for WordPress plugins: Wraps all your projects dependencies in your own namespace, in order to prevent conflicts with other plugins loading the same dependencies in different versions.
wordpress-seo - Yoast SEO for WordPress
graphql-api-for-wp - [READ ONLY] GraphQL API for WordPress