wp-shakedown 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/LICENSE +340 -0
  2. package/README.md +74 -2
  3. package/dist/baseline.d.ts +6 -0
  4. package/dist/baseline.js +41 -0
  5. package/dist/cli.d.ts +2 -0
  6. package/dist/cli.js +296 -0
  7. package/dist/diff.d.ts +8 -0
  8. package/dist/diff.js +26 -0
  9. package/dist/engines/config.d.ts +3 -0
  10. package/dist/engines/config.js +134 -0
  11. package/dist/engines/custom.d.ts +10 -0
  12. package/dist/engines/custom.js +286 -0
  13. package/dist/engines/eslint.d.ts +8 -0
  14. package/dist/engines/eslint.js +96 -0
  15. package/dist/engines/index.d.ts +2 -0
  16. package/dist/engines/index.js +14 -0
  17. package/dist/engines/integrity.d.ts +2 -0
  18. package/dist/engines/integrity.js +108 -0
  19. package/dist/engines/php-compat.d.ts +2 -0
  20. package/dist/engines/php-compat.js +26 -0
  21. package/dist/engines/php-lint.d.ts +6 -0
  22. package/dist/engines/php-lint.js +42 -0
  23. package/dist/engines/phpstan.d.ts +11 -0
  24. package/dist/engines/phpstan.js +103 -0
  25. package/dist/engines/stylelint.d.ts +4 -0
  26. package/dist/engines/stylelint.js +63 -0
  27. package/dist/engines/theme-check.d.ts +7 -0
  28. package/dist/engines/theme-check.js +109 -0
  29. package/dist/engines/theme-review.d.ts +24 -0
  30. package/dist/engines/theme-review.js +378 -0
  31. package/dist/engines/updates.d.ts +6 -0
  32. package/dist/engines/updates.js +78 -0
  33. package/dist/engines/vulnerabilities.d.ts +22 -0
  34. package/dist/engines/vulnerabilities.js +128 -0
  35. package/dist/engines/wp-json.d.ts +18 -0
  36. package/dist/engines/wp-json.js +134 -0
  37. package/dist/engines/wpcs.d.ts +7 -0
  38. package/dist/engines/wpcs.js +60 -0
  39. package/dist/exec.d.ts +12 -0
  40. package/dist/exec.js +19 -0
  41. package/dist/fingerprint.d.ts +10 -0
  42. package/dist/fingerprint.js +29 -0
  43. package/dist/health/install.d.ts +16 -0
  44. package/dist/health/install.js +68 -0
  45. package/dist/home.d.ts +2 -0
  46. package/dist/home.js +6 -0
  47. package/dist/hub.d.ts +32 -0
  48. package/dist/hub.js +99 -0
  49. package/dist/index.d.ts +42 -0
  50. package/dist/index.js +36 -0
  51. package/dist/js/files.d.ts +4 -0
  52. package/dist/js/files.js +47 -0
  53. package/dist/js/tools.d.ts +3 -0
  54. package/dist/js/tools.js +67 -0
  55. package/dist/mcp/server.d.ts +9 -0
  56. package/dist/mcp/server.js +91 -0
  57. package/dist/mcp/tools.d.ts +26 -0
  58. package/dist/mcp/tools.js +163 -0
  59. package/dist/net.d.ts +18 -0
  60. package/dist/net.js +68 -0
  61. package/dist/php/files.d.ts +3 -0
  62. package/dist/php/files.js +53 -0
  63. package/dist/php/php.d.ts +4 -0
  64. package/dist/php/php.js +25 -0
  65. package/dist/php/phpcs.d.ts +25 -0
  66. package/dist/php/phpcs.js +55 -0
  67. package/dist/php/tools.d.ts +3 -0
  68. package/dist/php/tools.js +66 -0
  69. package/dist/profiles.d.ts +4 -0
  70. package/dist/profiles.js +41 -0
  71. package/dist/progress.d.ts +3 -0
  72. package/dist/progress.js +13 -0
  73. package/dist/projects.d.ts +36 -0
  74. package/dist/projects.js +91 -0
  75. package/dist/report/escape.d.ts +1 -0
  76. package/dist/report/escape.js +4 -0
  77. package/dist/report/html.d.ts +2 -0
  78. package/dist/report/html.js +100 -0
  79. package/dist/report/json.d.ts +2 -0
  80. package/dist/report/json.js +3 -0
  81. package/dist/report/markdown.d.ts +5 -0
  82. package/dist/report/markdown.js +92 -0
  83. package/dist/report/sarif.d.ts +2 -0
  84. package/dist/report/sarif.js +44 -0
  85. package/dist/report/write.d.ts +9 -0
  86. package/dist/report/write.js +48 -0
  87. package/dist/runner.d.ts +14 -0
  88. package/dist/runner.js +166 -0
  89. package/dist/session.d.ts +22 -0
  90. package/dist/session.js +39 -0
  91. package/dist/target.d.ts +5 -0
  92. package/dist/target.js +114 -0
  93. package/dist/types.d.ts +165 -0
  94. package/dist/types.js +6 -0
  95. package/dist/ui/server.d.ts +13 -0
  96. package/dist/ui/server.js +458 -0
  97. package/dist/version.d.ts +1 -0
  98. package/dist/version.js +3 -0
  99. package/dist/versions.d.ts +9 -0
  100. package/dist/versions.js +35 -0
  101. package/js-tools/eslint.config.mjs +19 -0
  102. package/js-tools/package-lock.json +7004 -0
  103. package/js-tools/package.json +13 -0
  104. package/js-tools/stylelint.config.mjs +4 -0
  105. package/package.json +58 -4
  106. package/php-tools/composer.json +68 -0
  107. package/php-tools/composer.lock +889 -0
  108. package/php-tools/theme-check.php +239 -0
  109. package/ui/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  110. package/ui/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  111. package/ui/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  112. package/ui/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  113. package/ui/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  114. package/ui/dist/assets/index-DXwdz_Wu.css +2 -0
  115. package/ui/dist/assets/index-V8IOqxHa.js +54 -0
  116. package/ui/dist/index.html +14 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "wp-shakedown-js-tools",
3
+ "description": "JavaScript and CSS tools that wp-shakedown runs. Not a library.",
4
+ "private": true,
5
+ "license": "GPL-2.0-or-later",
6
+ "dependencies": {
7
+ "@wordpress/eslint-plugin": "^28.2.0",
8
+ "@wordpress/stylelint-config": "^27.2.0",
9
+ "eslint": "^10.15.0",
10
+ "globals": "^17.14.0",
11
+ "stylelint": "^17.16.0"
12
+ }
13
+ }
@@ -0,0 +1,4 @@
1
+ export default {
2
+ extends: [ '@wordpress/stylelint-config' ],
3
+ overrides: [ { files: [ '**/*.scss' ], extends: [ '@wordpress/stylelint-config/scss' ] } ],
4
+ };
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "wp-shakedown",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Runs the usual WordPress checks on a theme, a plugin or a whole WordPress folder and writes one report.",
5
+ "license": "GPL-2.0-or-later",
6
+ "type": "module",
7
+ "bin": {
8
+ "wp-shakedown": "dist/cli.js"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "php-tools",
19
+ "js-tools",
20
+ "ui/dist"
21
+ ],
22
+ "engines": {
23
+ "node": ">=22.18"
24
+ },
25
+ "scripts": {
26
+ "build": "tsc -p tsconfig.build.json && npm run build:ui",
27
+ "prepack": "npm run build",
28
+ "typecheck": "tsc -p tsconfig.json",
29
+ "test": "node --test \"test/**/*.test.ts\"",
30
+ "build:ui": "npm --prefix ui run build",
31
+ "build:core": "tsc -p tsconfig.build.json"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/alexposlushnyak/wp-shakedown.git"
36
+ },
37
+ "bugs": "https://github.com/alexposlushnyak/wp-shakedown/issues",
38
+ "author": "alexposlushnyak (https://github.com/alexposlushnyak)",
39
+ "homepage": "https://github.com/alexposlushnyak/wp-shakedown#readme",
40
+ "keywords": [
41
+ "wordpress",
42
+ "testing",
43
+ "phpcs",
44
+ "phpstan",
45
+ "wp-cli",
46
+ "mcp",
47
+ "cli"
48
+ ],
49
+ "devDependencies": {
50
+ "@modelcontextprotocol/sdk": "^1.32.2",
51
+ "@types/node": "^22.20.5",
52
+ "typescript": "^7.0.2"
53
+ },
54
+ "dependencies": {
55
+ "ajv": "^8.20.0"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
59
+ }
60
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "wp-shakedown/php-tools",
3
+ "description": "PHP tools that wp-shakedown runs. Not a library.",
4
+ "license": "GPL-2.0-or-later",
5
+ "require": {
6
+ "phpcompatibility/phpcompatibility-wp": "^3.0@alpha",
7
+ "squizlabs/php_codesniffer": "^3.13",
8
+ "wp-coding-standards/wpcs": "^3.4",
9
+ "plugin-check/phpcs-sniffs": "2.2.0",
10
+ "phpstan/phpstan": "^2.1",
11
+ "szepeviktor/phpstan-wordpress": "^2.0",
12
+ "php-stubs/wordpress-stubs": "^7.0",
13
+ "theme-check/theme-check": "20260901",
14
+ "envato/envato-theme-check": "dev-master"
15
+ },
16
+ "config": {
17
+ "allow-plugins": {
18
+ "dealerdirect/phpcodesniffer-composer-installer": true
19
+ },
20
+ "sort-packages": true
21
+ },
22
+ "minimum-stability": "alpha",
23
+ "prefer-stable": true,
24
+ "repositories": [
25
+ {
26
+ "type": "package",
27
+ "package": {
28
+ "name": "plugin-check/phpcs-sniffs",
29
+ "version": "2.2.0",
30
+ "type": "phpcodesniffer-standard",
31
+ "dist": {
32
+ "url": "https://github.com/WordPress/plugin-check/archive/refs/tags/2.2.0.zip",
33
+ "type": "zip"
34
+ },
35
+ "require": {
36
+ "phpcsstandards/phpcsutils": "^1.0.8",
37
+ "squizlabs/php_codesniffer": "^3.7.2"
38
+ }
39
+ }
40
+ },
41
+ {
42
+ "type": "package",
43
+ "package": {
44
+ "name": "theme-check/theme-check",
45
+ "version": "20260901",
46
+ "type": "library",
47
+ "dist": {
48
+ "url": "https://downloads.wordpress.org/plugin/theme-check.20260901.zip",
49
+ "type": "zip",
50
+ "shasum": "85c13a0c70078367d2d6f3dd68e435212df5881a"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "type": "package",
56
+ "package": {
57
+ "name": "envato/envato-theme-check",
58
+ "version": "dev-master",
59
+ "type": "library",
60
+ "dist": {
61
+ "url": "https://github.com/envato/envato-theme-check/archive/915562cc78065a69e65f27bc30993dcae4cacef6.zip",
62
+ "type": "zip",
63
+ "reference": "915562cc78065a69e65f27bc30993dcae4cacef6"
64
+ }
65
+ }
66
+ }
67
+ ]
68
+ }