From 4645488b5d53870b2f705941ea5e61e2395617a4 Mon Sep 17 00:00:00 2001 From: Jens True Date: Tue, 11 Jul 2023 12:36:27 +0000 Subject: [PATCH] Removed dependecy on Make. --- Makefile | 25 ------------------------- composer.json | 19 ++++++++++++++++++- 2 files changed, 18 insertions(+), 26 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index a31f800..0000000 --- a/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -analyze: analyze-yaml analyze-phpmd analyze-phpstan analyze-psalm analyze-phpcs - -analyze-yaml: - vendor/bin/yaml-lint *.yml -analyze-phpmd: - vendor/bin/phpmd src,tests text cleancode,codesize,controversial,design,naming,unusedcode -analyze-phpstan: - vendor/bin/phpstan analyze --level=8 --error-format=raw src/ backup tests -analyze-psalm: - vendor/bin/psalm --no-cache -analyze-phpcs: - vendor/bin/phpcs src backup tests --report=emacs --standard=PSR12 - -docs: - ./phpDocumentor.phar --setting=graphs.enabled=true - -install: - php composer.phar install --no-dev -install-dev: - php composer.phar install -test: - vendor/bin/phpunit tests --display-warnings -test-coverage: - vendor/bin/phpunit tests --testdox --coverage-filter src --coverage-html output/coverage --coverage-text --path-coverage --testdox-html output/test.html - \ No newline at end of file diff --git a/composer.json b/composer.json index c3d718a..327e025 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "furyfire/backup", + "name": "furyfire/backupscript", "description": "Wrapper for Rclone based backup", "homepage": "https://jcktrue.dk", "version": "0.1.0", @@ -23,5 +23,22 @@ "vimeo/psalm": "^5.12", "phpmd/phpmd": "^2.13", "phpunit/phpunit": "^10.2" + }, + "scripts": { + "test": "vendor/bin/phpunit tests --display-warnings", + "test-coverage": "vendor/bin/phpunit tests --testdox --coverage-filter src --coverage-html output/coverage --coverage-text --path-coverage --testdox-html output/test.html ", + "docs": "./phpDocumentor.phar --setting=graphs.enabled=true", + "analyze": [ + "@analyze-yaml", + "@analyze-phpmd", + "@analyze-phpstan", + "@analyze-psalm", + "@analyze-phpcs" + ], + "analyze-yaml": "vendor/bin/yaml-lint *.yml .*.yml *.json", + "analyze-phpmd": "vendor/bin/phpmd src,tests text cleancode,codesize,controversial,design,naming,unusedcode", + "analyze-phpstan":"vendor/bin/phpstan analyze --level=8 --error-format=raw src/ backup tests", + "analyze-psalm": "vendor/bin/psalm --no-cache", + "analyze-phpcs": "vendor/bin/phpcs src backup tests --report=emacs --standard=PSR12" } }