Skip to:
Content

BuddyPress.org

Changeset 12712 for trunk/composer.lock


Ignore:
Timestamp:
08/30/2020 05:53:06 PM (4 years ago)
Author:
imath
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:global-ignores
      •  

        old new  
        11.DS_Store
        22.gitignore
         3.wp-env.override.json
  • trunk/composer.lock

    r12278 r12712  
    55        "This file is @generated automatically"
    66    ],
    7     "content-hash": "90ce29c17b18d6e1939f860a2a0dd560",
     7    "content-hash": "d9a5fdcffcb85a344a7717fa092b72d0",
    88    "packages": [
    99        {
     
    405405            ],
    406406            "time": "2018-09-23T23:08:17+00:00"
     407        },
     408        {
     409            "name": "wp-phpunit/wp-phpunit",
     410            "version": "5.5.0",
     411            "source": {
     412                "type": "git",
     413                "url": "https://github.com/wp-phpunit/wp-phpunit.git",
     414                "reference": "5cf5a40954b8c47941afdc08b0000ce42efe5993"
     415            },
     416            "dist": {
     417                "type": "zip",
     418                "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/5cf5a40954b8c47941afdc08b0000ce42efe5993",
     419                "reference": "5cf5a40954b8c47941afdc08b0000ce42efe5993",
     420                "shasum": ""
     421            },
     422            "type": "library",
     423            "autoload": {
     424                "files": [
     425                    "__loaded.php"
     426                ]
     427            },
     428            "notification-url": "https://packagist.org/downloads/",
     429            "license": [
     430                "GPL-2.0-or-later"
     431            ],
     432            "authors": [
     433                {
     434                    "name": "Evan Mattson",
     435                    "email": "me@aaemnnost.tv"
     436                },
     437                {
     438                    "name": "WordPress Community",
     439                    "homepage": "https://wordpress.org/about/"
     440                }
     441            ],
     442            "description": "WordPress core PHPUnit library",
     443            "homepage": "https://github.com/wp-phpunit",
     444            "keywords": [
     445                "phpunit",
     446                "test",
     447                "wordpress"
     448            ],
     449            "time": "2020-08-12T15:43:21+00:00"
    407450        }
    408451    ],
Note: See TracChangeset for help on using the changeset viewer.