Skip to content

Commit 1f48035

Browse files
jeffpaultheaminulidkotter
authored
Merge pull request WordPress#92 from theaminuli/add-webpack-remove-empty-scripts
Improve Webpack Setup: Adopt Best-Practice Extension for @wordpress/scripts Co-authored-by: theaminuli <theaminuldev@git.wordpress.org> Co-authored-by: dkotter <dkotter@git.wordpress.org>
2 parents 881761b + db5f4be commit 1f48035

File tree

3 files changed

+73
-48
lines changed

3 files changed

+73
-48
lines changed

package-lock.json

Lines changed: 39 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"scripts": {
2020
"plugin-zip": "wp-scripts plugin-zip",
2121
"build": "wp-scripts build",
22+
"start": "wp-scripts start",
2223
"wp-env": "wp-env",
2324
"lint:php": "wp-env run tests-cli --env-cwd=wp-content/plugins/ai composer run-script lint",
2425
"lint:php:fix": "wp-env run tests-cli --env-cwd=wp-content/plugins/ai composer run-script format",
@@ -31,7 +32,8 @@
3132
"@wordpress/env": "^10.34.0",
3233
"@wordpress/eslint-plugin": "^22.20.0",
3334
"@wordpress/prettier-config": "^4.34.0",
34-
"@wordpress/scripts": "^30.27.0"
35+
"@wordpress/scripts": "^30.27.0",
36+
"webpack-remove-empty-scripts": "^1.1.1"
3537
},
3638
"engines": {
3739
"node": ">=22.21.1",

0 commit comments

Comments
 (0)