You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paul Taylor edited this page Mar 22, 2024
·
5 revisions
Caution
⛔️ THE WIKI IS NO LONGER USED. PLEASE VIEW THE /docs DIRECTORY FOR ANY DOCUMENTATION
Command
build-tools build
Runs the build process.
Positionals
projects
optional
Comma separated list of projects to build. [usage]
Options
--once
Run the build process only once.
--production
Compile the assets for production.
--quiet
Runs the build process with reduced output.
Individual Projects
You can define a project by using the project positional when using the build command by placing the project name after the build command.
build-tools build my-plugin
The project positional can also take comma separated values if you need to build more than one project at a given time.
build-tools build my-plugin,my-theme
Notice that each defined project is not a full path, nor an entry point. We use the directory name as the project and the build tools then look for those as defined in the Structuring Your Project guide, seeking through client-mu-plugins,plugins and themes.
Site-wide
If you need to build an entire sites worth of projects, which will often be the case come deployment, you can build all applicable projects by running the command from within your wp-content directory.