Enabled WP REST API to query for ticker slug, GMT timestamp and limit parameter as used by AJAX calls. This is done in preparation for migration to WP REST instead of WP AJAX.
83 lines
1.9 KiB
JSON
83 lines
1.9 KiB
JSON
{
|
|
"name": "stklcode/stklcode-liveticker",
|
|
"version": "1.2.0-alpha",
|
|
"description": "A simple Liveticker for Wordpress.",
|
|
"keywords": [
|
|
"wordpress",
|
|
"plugin",
|
|
"liveticker"
|
|
],
|
|
"license": "GPL-2.0+",
|
|
"authors": [
|
|
{
|
|
"name": "Stefan Kalscheuer",
|
|
"email": "stefan@stklcode.de",
|
|
"homepage": "https://www.stklcode.de"
|
|
}
|
|
],
|
|
"type": "wordpress-plugin",
|
|
"require": {
|
|
"php": ">=5.6",
|
|
"composer/installers": "~1.7"
|
|
},
|
|
"require-dev": {
|
|
"php": ">=7",
|
|
"consolidation/robo": "^2",
|
|
"phpunit/phpunit": "^9",
|
|
"phpunit/php-code-coverage": "^9",
|
|
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
|
|
"slowprog/composer-copy-file": "~0.3",
|
|
"squizlabs/php_codesniffer": "^3.5",
|
|
"phpcompatibility/php-compatibility": "^9.3",
|
|
"wp-coding-standards/wpcs": "^2.3",
|
|
"patchwork/jsqueeze": "^2.0",
|
|
"natxet/cssmin": "^3.0",
|
|
"matthiasmullie/minify": "^1.3"
|
|
},
|
|
"scripts": {
|
|
"post-install-cmd": [
|
|
"@minify"
|
|
],
|
|
"post-update-cmd": [
|
|
"@minify"
|
|
],
|
|
"build": [
|
|
"@minify",
|
|
"robo build"
|
|
],
|
|
"package": [
|
|
"@minify",
|
|
"robo package"
|
|
],
|
|
"deploy": [
|
|
"@minify",
|
|
"robo deploy:all"
|
|
],
|
|
"test": [
|
|
"phpunit"
|
|
],
|
|
"lint-all": [
|
|
"@lint-php",
|
|
"@lint-css",
|
|
"@lint-js"
|
|
],
|
|
"lint-php": [
|
|
"phpcs --standard=phpcs.xml -s"
|
|
],
|
|
"lint-css": [
|
|
"npx stylelint styles/block.css",
|
|
"npx stylelint styles/liveticker.css"
|
|
],
|
|
"lint-js": [
|
|
"npx eslint scripts/block.js",
|
|
"npx eslint scripts/liveticker.js"
|
|
],
|
|
"minify": [
|
|
"minifycss styles/block.css > styles/block.min.css",
|
|
"minifycss styles/liveticker.css > styles/liveticker.min.css",
|
|
"minifyjs scripts/block.js > scripts/block.min.js",
|
|
"minifyjs scripts/liveticker.js > scripts/liveticker.min.js"
|
|
]
|
|
}
|
|
}
|