From c26148766b4c78b09773073caf71aa8f9e3618f2 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Tue, 31 Dec 2024 10:52:41 -0500 Subject: [PATCH] Removing more front-end files when not needed (#411) * Clear out frontend files * Fix frontend README * Remove debug --- README.md | 1 + configure.php | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index c9199f88..7f223ea6 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ must include both the major and minor version (e.g., `6.7`). For example: ```sh npx wp-scripts packages-update --dist-tag=wp-6.7` ``` + ## Releasing the Plugin diff --git a/configure.php b/configure.php index 71d36662..a0d3a337 100644 --- a/configure.php +++ b/configure.php @@ -253,6 +253,14 @@ function remove_assets_readme( bool $keep_contents, string $file = 'README.md' ) return; } + if ( ! str_contains( $contents, '' ) ) { + echo "Unable to find the front-end assets section in {$file}.\n"; + } + + if ( ! str_contains( $contents, '' ) ) { + echo "Unable to find the closing front-end assets section in {$file}.\n"; + } + if ( $keep_contents ) { $contents = str_replace( '', '', $contents ); $contents = str_replace( '', '', $contents ); @@ -629,6 +637,7 @@ function enable_sqlite_testing(): void { '.eslintignore', '.eslintrc.json', '.nvmrc', + '.npmrc', '.stylelintrc.json', 'babel.config.js', 'jest.config.js', @@ -636,6 +645,7 @@ function enable_sqlite_testing(): void { 'package.json', 'package-lock.json', 'tsconfig.json', + 'tsconfig.eslint.json', 'entries/', 'blocks/', 'build/',