{"id":5690,"date":"2026-02-12T20:45:07","date_gmt":"2026-02-13T01:45:07","guid":{"rendered":"https:\/\/chubes.net\/?documentation=wordpress-scripts"},"modified":"2026-03-13T03:28:41","modified_gmt":"2026-03-13T07:28:41","slug":"wordpress-scripts","status":"publish","type":"documentation","link":"https:\/\/chubes.net\/docs\/wordpress-core\/js-packages\/wordpress-scripts\/","title":{"rendered":"@wordpress\/scripts"},"content":{"rendered":"<p>Build tooling for WordPress block development.<\/p><h2 class=\"wp-block-heading\">CLI Commands<\/h2><p>Run via <code>wp-scripts<\/code> (installed by <code>@wordpress\/scripts<\/code>).<\/p><ul class=\"wp-block-list\"><li><code>wp-scripts start<\/code> \u2014 dev build with watch<\/li><li><code>wp-scripts build<\/code> \u2014 production build<\/li><li><code>wp-scripts lint-js<\/code> \u2014 ESLint<\/li><li><code>wp-scripts lint-style<\/code> \u2014 Stylelint<\/li><li><code>wp-scripts format<\/code> \u2014 Prettier<\/li><li><code>wp-scripts test-unit-js<\/code> \u2014 Jest<\/li><li><code>wp-scripts test-e2e<\/code> \u2014 Playwright\/Cypress (when configured)<\/li><\/ul><h2 class=\"wp-block-heading\">Configuration Hooks<\/h2><p>Customize behavior by providing config files in your project:<\/p><ul class=\"wp-block-list\"><li><code>webpack.config.js<\/code> (extends default webpack config)<\/li><li><code>.babelrc<\/code> \/ <code>babel.config.js<\/code> (Babel overrides)<\/li><li><code>.eslintrc<\/code> (ESLint rules)<\/li><li><code>.stylelintrc<\/code> (Stylelint rules)<\/li><li><code>jest.config.js<\/code> (Jest overrides)<\/li><\/ul><h2 class=\"wp-block-heading\">Entry Points<\/h2><p>Default entry is <code>src\/index.js<\/code> and output goes to <code>build\/<\/code> unless overridden by webpack config.<\/p>","protected":false},"excerpt":{"rendered":"<p>Build tooling for WordPress block development. CLI Commands Run via wp-scripts (installed by @wordpress\/scripts). wp-scripts start \u2014 dev build with watch wp-scripts build \u2014 production build wp-scripts lint-js \u2014 ESLint&#8230;<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"footnotes":""},"tags":[],"project":[634],"project_type":[749],"class_list":["post-5690","documentation","type-documentation","status-publish","hentry","project-js-packages","project_type-wordpress-reference"],"project_info":{"id":589,"name":"WordPress Core","slug":"wordpress-core"},"project_type_info":{"id":749,"name":"WordPress Reference","slug":"wordpress-reference"},"_links":{"self":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation"}],"about":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/types\/documentation"}],"version-history":[{"count":2,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5690\/revisions"}],"predecessor-version":[{"id":7727,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/documentation\/5690\/revisions\/7727"}],"wp:attachment":[{"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/media?parent=5690"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/tags?post=5690"},{"taxonomy":"project","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project?post=5690"},{"taxonomy":"project_type","embeddable":true,"href":"https:\/\/chubes.net\/wp-json\/wp\/v2\/project_type?post=5690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}