forked from pluginkollektiv/statify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
97 lines (97 loc) · 2.51 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"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"
],
"require": {
"php": "^7.2|^8",
"npm-asset/chartist": "^1.3.0",
"npm-asset/chartist-plugin-tooltips-updated": "^1.0.0",
"jaybizzle/crawler-detect": "^1.2"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0",
"matthiasmullie/minify": "^1.3",
"slowprog/composer-copy-file": "^0.3",
"squizlabs/php_codesniffer": "^3.10",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"wp-coding-standards/wpcs": "^3.1",
"phpunit/phpunit": "^7|^9",
"yoast/phpunit-polyfills": "^1.1"
},
"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"
],
"test-js": [
"npx nyc --reporter=text mocha tests/js/*.test.js"
]
},
"extra": {
"copy-file": {
"vendor/jaybizzle/crawler-detect/src/": "lib/Jaybizzle/CrawlerDetect/",
"vendor/npm-asset/chartist/dist/index.css": "css/chartist.min.css",
"vendor/npm-asset/chartist/dist/index.umd.js": "js/chartist.min.js",
"vendor/npm-asset/chartist-plugin-tooltips-updated/dist/chartist-plugin-tooltip.min.js": "js/"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}