[buddypress-trac] [BuddyPress Trac] #8317: Use @wordpress/env to ease BuddyPress contributors life

buddypress-trac noreply at wordpress.org
Sun Aug 30 17:53:12 UTC 2020


#8317: Use @wordpress/env to ease BuddyPress contributors life
------------------------------------------------+---------------------
 Reporter:  imath                               |       Owner:  netweb
     Type:  enhancement                         |      Status:  closed
 Priority:  high                                |   Milestone:  7.0.0
Component:  Build/Test Tools                    |     Version:
 Severity:  normal                              |  Resolution:  fixed
 Keywords:  has-patch dev-feedback needs-codex  |
------------------------------------------------+---------------------
Changes (by imath):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12712" 12712]:
 {{{
 #!CommitTicketReference repository="" revision="12712"
 Build/Test Tools: include @wordpress/env into BuddyPress

 `wp-env` requires Docker and the latest Node.js LTS version. It gives us a
 set of new `npm` commands to easily generate a local WordPress environment
 to unit test, develop and contribute to BuddyPress code.

 To enjoy `wp-env`, make sure you have SVN or Git, composer, Node.js and
 Docker installed on your computer. Get the development version of
 BuddyPress using our SVN repository or its GitHub read-only mirror from
 this URL: https://buddypress.org/download/#trunk, and use the command to
 fetch the code locally into a `buddypress` folder. From your terminal
 software, move to this folder to install the needed libraries using the
 following commands.
 `npm install`
 `composer install`

 Once done, you can set up your local development environment using this
 single command:
 `npm run wp-env start`

 You can now access to your local environment and finish the WordPress
 setup (permalinks etc..) from this URL:
 `http://localhost:8888/wp-admin/`

 The administration credentials are:
 - Username: admin,
 - Password: password

 To stop the environment, you can use this command:
 `npm run wp-env stop`

 To run PHP unit tests, you can use this command:
 `npm run test-php`

 To run PHP unit tests on multisite, you can use this command:
 `npm run test-php-multisite`

 You can customize your local development setup using a file named `.wp-
 env.override.json `. Our default setup is using the WordPress development
 version and includes the BP REST plugin. For more details about `wp-env`,
 have a look at this documentation page: https://developer.wordpress.org
 /block-editor/packages/packages-env/

 Props oztaser, mercime, vapvarun

 Fixes #8317
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8317#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list