From 309eb425a2f10399ae63d1d3f7a8d9910641bc6c Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 23 Dec 2017 00:53:15 +0100 Subject: [PATCH] [CLEANUP] Clean up composer.json and ext_emconf.php --- composer.json | 126 +++++++++++++++++++++++++++---------------------- ext_emconf.php | 32 ++----------- 2 files changed, 74 insertions(+), 84 deletions(-) diff --git a/composer.json b/composer.json index b27aacc..6ceb098 100644 --- a/composer.json +++ b/composer.json @@ -1,59 +1,73 @@ { - "name": "oliverklee/tea", - "type": "typo3-cms-extension", - "version": "1.0.0", - "description": "This extension serves as an example on how to unit-test different data types and relation types in TYPO3 extensions.", - "keywords": ["TYPO3", "extension", "tdd", "phpunit", "unit testing"], - "homepage": "https://www.oliverklee.de", - "authors": [ - { - "name": "Oliver Klee", - "role": "Developer", - "homepage": "https://www.oliverklee.de" + "name": "oliverklee/tea", + "description": "TYPO3 example extension for unit testing and best practices.", + "type": "typo3-cms-extension", + "keywords": [ + "TYPO3", + "extension", + "TDD", + "PHPUnit", + "unit testing", + "best practices" + ], + "homepage": "https://github.com/oliverklee/tea", + "license": "GPL-3.0", + "authors": [ + { + "name": "Oliver Klee", + "role": "Developer", + "homepage": "https://www.oliverklee.de" + } + ], + "support": "https://github.com/oliverklee/tea", + "require": { + "php": "~7.0.0 || ~7.1.0", + "typo3/cms-core": "^7.6 || ^8.7", + "roave/security-advisories": "dev-master" + }, + "require-dev": { + "namelesscoder/typo3-repository-client": "^1.2.0", + "nimut/testing-framework": "^2.0.0", + "phpunit/phpunit": "^5.7.0", + "mikey179/vfsStream": "^1.6.0" + }, + "replace": { + "tea": "self.version", + "typo3-ter/tea": "self.version" + }, + "autoload": { + "psr-4": { + "OliverKlee\\Tea\\": "Classes/" + } + }, + "autoload-dev": { + "psr-4": { + "OliverKlee\\Tea\\Tests\\": "Tests/" + } + }, + "repositories": [ + { + "type": "composer", + "url": "https://composer.typo3.org/" + } + ], + "config": { + "vendor-dir": ".Build/vendor", + "bin-dir": ".Build/bin" + }, + "scripts": { + "post-autoload-dump": [ + "mkdir -p .Build/Web/typo3conf/ext/", + "[ -L .Build/Web/typo3conf/ext/tea ]|| ln -snvf ../../../../. .Build/Web/typo3conf/ext/tea" + ] + }, + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + }, + "typo3/cms": { + "cms-package-dir": "{$vendor-dir}/typo3/cms", + "web-dir": ".Build/Web" + } } - ], - "license": ["GPL-2.0+"], - "replace": { - "tea": "self.version", - "typo3-ter/tea": "self.version" - }, - "repositories": [ - { - "type": "composer", - "url": "https://composer.typo3.org/" - } - ], - "require": { - "php": "~7.0.0 || ~7.1.0", - "typo3/cms-core": "^7.6.0", - "roave/security-advisories": "dev-master" - }, - "require-dev": { - "namelesscoder/typo3-repository-client": "^1.2.0", - "nimut/testing-framework": "^2.0.0", - "phpunit/phpunit": "^5.7.0", - "mikey179/vfsStream": "^1.6.0" - }, - "config": { - "vendor-dir": ".Build/vendor", - "bin-dir": ".Build/bin" - }, - "scripts": { - "post-autoload-dump": [ - "mkdir -p .Build/Web/typo3conf/ext/", - "[ -L .Build/Web/typo3conf/ext/tea ]|| ln -snvf ../../../../. .Build/Web/typo3conf/ext/tea" - ] - }, - "autoload": { - "psr-4": { - "OliverKlee\\Tea\\": "Classes/", - "OliverKlee\\Tea\\Tests\\": "Tests/" - } - }, - "extra": { - "typo3/cms": { - "cms-package-dir": "{$vendor-dir}/typo3/cms", - "web-dir": ".Build/Web" - } - } } diff --git a/ext_emconf.php b/ext_emconf.php index 9112ea7..fe6abb9 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -1,41 +1,17 @@ 'Tea example', - 'description' => 'This extension serves as an example on how to unit-test different data types and relation types in TYPO3 extensions.', - 'category' => 'plugin', + 'description' => 'TYPO3 example extension for unit testing and best practices.', + 'category' => 'example', 'author' => 'Oliver Klee', 'author_email' => 'typo3-coding@oliverklee.de', 'author_company' => 'oliverklee.de', - 'shy' => '', - 'priority' => '', - 'module' => '', - 'state' => 'experimental', - 'internal' => '', - 'uploadfolder' => '0', - 'createDirs' => '', - 'modify_tables' => '', - 'clearCacheOnLoad' => 0, - 'lockType' => '', - 'version' => '1.0.0', + 'state' => 'stable', + 'version' => '2.0.x-dev', 'constraints' => [ 'depends' => [ 'typo3' => '7.6.0-8.7.99', 'phpunit' => '4.0.0-5.9.99', ], - 'conflicts' => [ - ], - 'suggests' => [ - ], ], ];