2.4.1 • Published 4 years ago

sos-repo v2.4.1

Weekly downloads
-
License
proprietary
Repository
-
Last release
4 years ago

SOS REPO

Tools you need before you start (on your local machine)

Install

yarn global add git+ssh://git@bitbucket.org:sostariffe/sos-repo.git

For PHP Repositories:

  • composer : Linux | Windows
  • PHP extensions: ext-xml, ext-mbstring, ext-json

Usage

sos-repo <repository-directory>

This command will ask you a few questions to setup your repository.

Note that if, executing sos-repo, you receive a command not found exception, you probably need to export the yarn bin's path. To do so, add export PATH="$PATH:$(yarn global bin)" in your ~/.bashrc (or ~/.bash_profile, or ~/.zshrc).

PHP Setup

Once the setup is over your repository will be ready. sos-repo installs PHPUnit, PHPStan and PHP Code Sniffer, with all the rules ready for SosTariffe.it standards. You can use these composer commands:

  • Tests
composer phpunit
  • Test coverage
composer coverage
  • Code static analysis
composer phpstan
  • PHP Code Sniffer
composer phpcs