-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* separate composer environment for PHP 5, add PHP 8 tests PHPUnit 7.5 has sufficient support for PHP 8, even though it is not compatible officially, and WP test does not yet support PHPUnit 8 or later. PHPUnit 5/6 however fail with PHP 8, so we use a different dev-dependency set for PHP 5 integration tests. Dropped PHP 7.0-7.3 and nightly from CI roster, as there is no real benefit in running PHPCS lints against these versions. * lock PHPUnit to v5 for PHP 5.6 builds Using 5 or 7 should work, however without a lockfile and --ignore-platform-reqs (required for PHP 8) v7 is chosen. * update node dev-dependencies and use "npm ci"
- Loading branch information
Showing
8 changed files
with
1,875 additions
and
1,364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"name": "pluginkollektiv/statify", | ||
"description": "Compact, easy-to-use and privacy-compliant stats plugin for WordPress.", | ||
"license": "GPL-3.0-or-later", | ||
"type": "wordpress-plugin", | ||
"keywords": [ | ||
"wordpress", | ||
"plugin", | ||
"statistics" | ||
], | ||
"config": { | ||
"platform": { | ||
"php": "5.6" | ||
} | ||
}, | ||
"require": { | ||
"php": "^5.2|^7|^8", | ||
"npm-asset/chartist": "^0.11.4", | ||
"npm-asset/chartist-plugin-tooltips-updated": "^0.1.3" | ||
}, | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7", | ||
"matthiasmullie/minify": "^1.3", | ||
"slowprog/composer-copy-file": "^0.3", | ||
"squizlabs/php_codesniffer": "^3.5", | ||
"phpcompatibility/phpcompatibility-wp": "^2.1", | ||
"wp-coding-standards/wpcs": "^2.3", | ||
"phpunit/phpunit": "^5" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://asset-packagist.org" | ||
} | ||
], | ||
"scripts": { | ||
"post-install-cmd": [ | ||
"@build" | ||
], | ||
"post-update-cmd": [ | ||
"@build" | ||
], | ||
"build": [ | ||
"@copy-assets", | ||
"@minify" | ||
], | ||
"copy-assets": [ | ||
"SlowProg\\CopyFile\\ScriptHandler::copy" | ||
], | ||
"cs": [ | ||
"@lint-php" | ||
], | ||
"csfix": [ | ||
"phpcbf --standard=phpcs.xml" | ||
], | ||
"lint-all": [ | ||
"@lint-php", | ||
"@lint-js", | ||
"@lint-css" | ||
], | ||
"lint-css": [ | ||
"npx stylelint css/dashboard.css" | ||
], | ||
"lint-js": [ | ||
"npx eslint js/dashboard.js", | ||
"npx eslint js/snippet.js" | ||
], | ||
"lint-php": [ | ||
"phpcs --standard=phpcs.xml -s" | ||
], | ||
"lint-tests": [ | ||
"phpcs --standard=tests/phpcs.xml tests" | ||
], | ||
"minify": [ | ||
"minifycss css/dashboard.css > css/dashboard.min.css", | ||
"minifyjs js/dashboard.js > js/dashboard.min.js", | ||
"minifyjs js/snippet.js > js/snippet.min.js", | ||
"minifycss vendor/npm-asset/chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.css > css/chartist-plugin-tooltip.min.css" | ||
], | ||
"test": [ | ||
"phpunit" | ||
] | ||
}, | ||
"extra": { | ||
"copy-file": { | ||
"vendor/npm-asset/chartist/dist/chartist.min.css": "css/", | ||
"vendor/npm-asset/chartist/dist/chartist.min.js": "js/", | ||
"vendor/npm-asset/chartist/dist/chartist.min.js.map": "js/", | ||
"vendor/npm-asset/chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.min.js": "js/", | ||
"vendor/npm-asset/chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.min.js.map": "js/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.