From 73ec4641ff363aca7f8e468b684b4ded049ee6df Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Tue, 25 Feb 2020 19:58:46 +0100 Subject: [PATCH] Prepare usage as standalone composer package --- .gitignore | 2 ++ composer.json | 25 ++++++++++++++++++++++++- ext_emconf.php | 8 +++++--- 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e951a59 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.Build/ +/composer.lock diff --git a/composer.json b/composer.json index 5ec06b3..5cc9086 100644 --- a/composer.json +++ b/composer.json @@ -15,12 +15,35 @@ } }, "require": { + "doctrine/dbal": "^2.10", "php": "^7.3.0", + "psr/http-message": "^1.0", + "psr/http-server-handler": "^1.0", + "psr/http-server-middleware": "^1.0", + "symfony/expression-language": "^5.0", "typo3/cms-core": "^10.3.0" }, + "suggest": { + "typo3/cms-dashboard": "To make use of provided TYPO3 widgets" + }, + "config": { + "vendor-dir": ".Build/vendor", + "bin-dir": ".Build/bin" + }, "extra": { "typo3/cms": { - "extension-key": "tracking" + "cms-package-dir": "{$vendor-dir}/typo3/cms", + "extension-key": "tracking", + "web-dir": ".Build/web" + }, + "branch-alias": { + "dev-develop": "1.0.x-dev" } + }, + "scripts": { + "post-autoload-dump": [ + "mkdir -p .Build/web/typo3conf/ext/", + "[ -L .Build/web/typo3conf/ext/tracking ] || ln -snvf ../../../../. .Build/web/typo3conf/ext/tracking" + ] } } diff --git a/ext_emconf.php b/ext_emconf.php index 3ae44bf..3c53263 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -3,19 +3,21 @@ $EM_CONF[$_EXTKEY] = [ 'title' => 'Tracking', 'description' => 'Tracks page visits in TYPO3.', 'category' => 'fe', - 'state' => 'stable', + 'state' => 'alpha', 'uploadfolder' => 0, 'createDirs' => '', 'clearCacheOnLoad' => 0, 'author' => 'Daniel Siepmann', 'author_email' => 'coding@daniel-siepmann.de', 'author_company' => '', - 'version' => '1.0.0', + 'version' => '0.1.0', 'constraints' => [ 'depends' => [ 'core' => '', ], 'conflicts' => [], - 'suggests' => [], + 'suggests' => [ + 'dashboard' => '', + ], ], ];