undabot/json-api-core


README

pipeline status coverage report

"repositories": [
    {
      "type": "vcs",
      "url": "git@gitlab.com:undabot/json-api-core.git"
    }
  ],

脚本

  • PHPUnit 测试: composer test
  • PhpStan: composer qc
  • PhpCsFixer: composer lint

开发

存在一个自定义的 Docker 镜像,可用于开发。应使用此 Docker 容器来运行测试和检查任何兼容性问题。

此仓库挂载在容器内部,对文件所做的任何更改都会自动传播到容器中。无需同步,文件系统同时指向两个位置。

可以使用名为 dev.sh 的脚本管理镜像。以下是可以使用的命令

  • ./dev.sh build

    used to build base dev docker image, and to install composer and dependencies at first run
    
  • ./dev.sh run

    starts the dev container
    
  • ./dev.sh stop

    stops the dev container
    
  • ./dev.sh ssh

    attaches the container shell to the terminal so that you can execute commands inside of the container
    
  • ./dev.sh test

    run php unit tests inside of the running container
    
  • ./dev.sh qc

    executes qc tests
    
  • ./dev.sh install 执行 composer install --optimize-autoloader