Skip to content
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

Update blocks build message #44811

Merged
merged 7 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev
Comment: Update Blocks build message when asset files are not built.

11 changes: 6 additions & 5 deletions plugins/woocommerce/src/Blocks/Domain/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ protected function add_build_notice() {
function() {
echo '<div class="error"><p>';
printf(
/* translators: %1$s is the install command, %2$s is the build command, %3$s is the watch command. */
esc_html__( 'WooCommerce Blocks development mode requires files to be built. From the plugin directory, run %1$s to install dependencies, %2$s to build the files or %3$s to build the files and watch for changes.', 'woocommerce' ),
'<code>npm install</code>',
'<code>npm run build</code>',
'<code>npm start</code>'
/* translators: %1$s is the node install command, %2$s is the install command, %3$s is the build command, %4$s is the watch command. */
esc_html__( 'WooCommerce Blocks development mode requires files to be built. From the root directory, run %1$s to ensure your node version is aligned, run %2$s to install dependencies, %3$s to build the files or %4$s to build the files and watch for changes.', 'woocommerce' ),
'<code>nvm use</code>',
'<code>pnpm install</code>',
'<code>pnpm build</code>',
roykho marked this conversation as resolved.
Show resolved Hide resolved
'<code>pnpm --filter="@woocommerce/plugin-woocommerce" watch:build</code>'
);
echo '</p></div>';
}
Expand Down