Root

Here is a complete list of all available files and folders in the root directory with a short description.

You don't need to know the contents of each file individually, as you will learn what they do over time. Just make sure you understand what you are responsible for (see the links). In addition, folders/files marked with a prefixed πŸ’‘ are important for getting started (that means, learn more about it).

All files and folders written in italics are not saved in Git, but automatically arranged when you develop or deploy the projects.

circle-exclamation

Folder structure

  • πŸ“ my-plugin Folder you created with create-wp-react-app create-workspace

    • πŸ“ coverage Coverage reports, see this

    • πŸ“ .vscode Visual Studio Code (VSCode) specific files

    • πŸ“ common Common files can be reused by plugins and packages, or are root specific

    • πŸ“ devops Files related to CI/CD, Docker and so on

      • πŸ“ .gitlab CI/CD predefined jobs, included in root .gitlab-ci.yml

        • πŸ“„ stage-containerize.yml Jobs for building and pushing docker files to GitLab container registry

        • πŸ“„ stage-build.yml Jobs for build plugin, docs and linting

        • πŸ“„ stage-release.yml Jobs for release, review applications and wordpress.org deployment

        • πŸ“„ stage-test.yml Jobs for tests

        • πŸ“„ stage-validate.yml Jobs for Docker garbage collection, semantic versioning and license scanner

      • πŸ“ docker Predefined docker imagesarrow-up-right

        • πŸ“ gitlab-ci Dockerfile used in GitLab CI/CD jobs

      • πŸ“ docker-compose Compose filesarrow-up-right for different contexts

        • πŸ“„ docker-compose.e2e.yml Used in Cypress E2E tests

        • πŸ“„ docker-compose.local.yml Used locally with port expose

        • πŸ“„ docker-compose.traefik.yml Used for Review Apps

        • πŸ“„ docker-compose.yml Base compose file, merged automatically with {plugins,packages}/*/devops/docker-compose/docker-compose.yml files for extensibility, see here

      • πŸ“ scripts Used in Docker containers (mountedarrow-up-right)

        • πŸ“„ container-wordpress-cli-entrypoint.sh Extended entrypointarrow-up-right for wordpress-cli service

        • πŸ“„ container-wordpress-command.sh Commandarrow-up-right for wordpress service

        • πŸ“„ e2e-tests-autologin-plugin.php Micro-plugin for automatic login via URL in WordPress for E2E tests

        • πŸ“„ lerna-ready-ci.sh Make lerna work in GitLab CI environment

        • πŸ“„ purge-ci.sh Purge Socker resources for E2E tests and Review Apps in CI/CD

        • πŸ“„ task-xdebug-start.sh Used in tasks.json file, starts XDebug in WordPress container

        • πŸ“„ task-xdebug-stop.sh Used in tasks.json file, stops XDebug in WordPress container

        • πŸ“„ πŸ’‘ wordpress-startup.sh Global bash script to for custom actions not specific to single plugins, which get executed in start of the WordPress Docker container

    • πŸ“ docs Documentation you currently read available as markdown files

    • πŸ“ node_modules Node dependenciesarrow-up-right

    • πŸ“ packages Non-plugin packages (e.g. for shared styles)

    • πŸ“ πŸ’‘ plugins See Plugin folder structure

    • πŸ“„ .gitignore Ignore files in your Git repository on commit (see thisarrow-up-right)

    • πŸ“„ πŸ’‘ .gitlab-ci.yml CI/CD root file, should include all {packages,plugins}/*/devops/.gitlab/.gitlab-ci.yml files

    • πŸ“„ .prettierignore Ignore files to be prettified (see thisarrow-up-right)

    • πŸ“„ package.json Package definition filearrow-up-right with Yarn Workspacearrow-up-right definition

    • πŸ“„ README.md "Because no one can read your mind (yet)" - makeareadme.comarrow-up-right

    • πŸ“„ yarn.lock Lock filearrow-up-right for JavaScript dependencies

Last updated