mirror of
https://github.com/saccas/mjml-typo3.git
synced 2024-07-06 06:38:29 +02:00
Add all dependencies to run tests. Configure tests as composer task. Add tests to travis. Adjust code to make him exchangeable and testable.
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "saccas/mjml",
|
|
"description": "Mjml view using mjml over npm",
|
|
"type": "typo3-cms-extension",
|
|
"version": "1.0.0",
|
|
"homepage": "https://mjml.io",
|
|
"license": ["GPL-2.0+"],
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Saccas\\Mjml\\": "Classes/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Saccas\\Mjml\\Tests\\": "Tests/"
|
|
}
|
|
},
|
|
"require": {
|
|
"php": ">=7.0.0 <=7.2.99",
|
|
"typo3/cms-core": "^8.7.0",
|
|
"typo3/cms-form": "^8.7.0"
|
|
},
|
|
"require-dev": {
|
|
"squizlabs/php_codesniffer": "^3.2.0",
|
|
"typo3/cms": "^8.7.0",
|
|
"typo3/testing-framework": "^1.2.2"
|
|
},
|
|
"extra": {
|
|
"typo3/cms": {
|
|
"cms-package-dir": "{$vendor-dir}/typo3/cms",
|
|
"web-dir": "typo3"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"lint": [
|
|
"! find Classes -type f -name \"*.php\" -exec php -d error_reporting=32767 -l {} \\; 2>&1 >&- | grep \"^\"",
|
|
"! find Tests -type f -name \"*.php\" -exec php -d error_reporting=32767 -l {} \\; 2>&1 >&- | grep \"^\""
|
|
],
|
|
"cgl": [
|
|
"./vendor/bin/phpcs"
|
|
],
|
|
"test": [
|
|
"TYPO3_PATH_ROOT=typo3 ./vendor/bin/phpunit"
|
|
],
|
|
"post-install-cmd": [
|
|
"npm install"
|
|
]
|
|
}
|
|
}
|