From 421826a9239ca4b765203485b72d3f95edd82f75 Mon Sep 17 00:00:00 2001 From: adlawson Date: Tue, 21 Jul 2015 15:37:58 +0100 Subject: [PATCH] Add useful composer scripts --- composer.json | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 79a759e..ba8756c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,9 @@ { "name": "adlawson/vfs", "description": "Virtual file system", + "homepage": "https://github.com/adlawson/php-vfs", + "license": "MIT", + "type": "library", "keywords": [ "dir", "directory", @@ -13,13 +16,10 @@ "wrapper", "write" ], - "license": "MIT", - "type": "library", "authors": [ { "name": "Andrew Lawson", - "homepage": "http://adlawson.com", - "role": "Developer" + "homepage": "http://adlawson.com" } ], "autoload": { @@ -41,5 +41,15 @@ "fabpot/php-cs-fixer": "^1.9", "mockery/mockery": "^0.9", "phpunit/phpunit": "^4.7" + }, + "scripts": { + "test": "vendor/bin/phpunit --colors=always", + "test:acceptance": "vendor/bin/phpunit --colors=always --testsuite acceptance", + "test:functional": "vendor/bin/phpunit --colors=always --testsuite functional", + "test:unit": "vendor/bin/phpunit --colors=always --testsuite unit", + "lint:fix": [ + "vendor/bin/php-cs-fixer fix src --level=psr2", + "vendor/bin/php-cs-fixer fix test --level=psr2" + ] } }