2.4.1 • Published 4 years ago
sos-repo v2.4.1
SOS REPO
Tools you need before you start (on your local machine)
git
yarn
: https://yarnpkg.com/lang/en/docs/install/- Add your SSH key on bitbucket:
https://bitbucket.org/account/ssh-keys/
Install
yarn global add git+ssh://git@bitbucket.org:sostariffe/sos-repo.git
For PHP Repositories:
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
2.4.1
4 years ago