wp-shakedown 0.0.0-stage → 0.1.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 (103) hide show
  1. package/LICENSE +340 -0
  2. package/README.md +62 -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 +139 -0
  7. package/dist/diff.d.ts +7 -0
  8. package/dist/diff.js +24 -0
  9. package/dist/engines/config.d.ts +3 -0
  10. package/dist/engines/config.js +133 -0
  11. package/dist/engines/eslint.d.ts +8 -0
  12. package/dist/engines/eslint.js +96 -0
  13. package/dist/engines/index.d.ts +2 -0
  14. package/dist/engines/index.js +12 -0
  15. package/dist/engines/integrity.d.ts +2 -0
  16. package/dist/engines/integrity.js +108 -0
  17. package/dist/engines/php-compat.d.ts +2 -0
  18. package/dist/engines/php-compat.js +26 -0
  19. package/dist/engines/php-lint.d.ts +6 -0
  20. package/dist/engines/php-lint.js +41 -0
  21. package/dist/engines/phpstan.d.ts +11 -0
  22. package/dist/engines/phpstan.js +102 -0
  23. package/dist/engines/stylelint.d.ts +4 -0
  24. package/dist/engines/stylelint.js +63 -0
  25. package/dist/engines/updates.d.ts +4 -0
  26. package/dist/engines/updates.js +72 -0
  27. package/dist/engines/vulnerabilities.d.ts +22 -0
  28. package/dist/engines/vulnerabilities.js +128 -0
  29. package/dist/engines/wp-json.d.ts +18 -0
  30. package/dist/engines/wp-json.js +133 -0
  31. package/dist/engines/wpcs.d.ts +7 -0
  32. package/dist/engines/wpcs.js +60 -0
  33. package/dist/exec.d.ts +12 -0
  34. package/dist/exec.js +19 -0
  35. package/dist/fingerprint.d.ts +10 -0
  36. package/dist/fingerprint.js +29 -0
  37. package/dist/health/install.d.ts +16 -0
  38. package/dist/health/install.js +68 -0
  39. package/dist/home.d.ts +2 -0
  40. package/dist/home.js +6 -0
  41. package/dist/index.d.ts +38 -0
  42. package/dist/index.js +32 -0
  43. package/dist/js/files.d.ts +4 -0
  44. package/dist/js/files.js +47 -0
  45. package/dist/js/tools.d.ts +3 -0
  46. package/dist/js/tools.js +67 -0
  47. package/dist/mcp/server.d.ts +9 -0
  48. package/dist/mcp/server.js +91 -0
  49. package/dist/mcp/tools.d.ts +26 -0
  50. package/dist/mcp/tools.js +149 -0
  51. package/dist/net.d.ts +18 -0
  52. package/dist/net.js +68 -0
  53. package/dist/php/files.d.ts +3 -0
  54. package/dist/php/files.js +53 -0
  55. package/dist/php/php.d.ts +4 -0
  56. package/dist/php/php.js +25 -0
  57. package/dist/php/phpcs.d.ts +25 -0
  58. package/dist/php/phpcs.js +55 -0
  59. package/dist/php/tools.d.ts +3 -0
  60. package/dist/php/tools.js +66 -0
  61. package/dist/progress.d.ts +3 -0
  62. package/dist/progress.js +13 -0
  63. package/dist/report/escape.d.ts +1 -0
  64. package/dist/report/escape.js +4 -0
  65. package/dist/report/html.d.ts +2 -0
  66. package/dist/report/html.js +100 -0
  67. package/dist/report/json.d.ts +2 -0
  68. package/dist/report/json.js +3 -0
  69. package/dist/report/markdown.d.ts +5 -0
  70. package/dist/report/markdown.js +92 -0
  71. package/dist/report/sarif.d.ts +2 -0
  72. package/dist/report/sarif.js +44 -0
  73. package/dist/report/write.d.ts +9 -0
  74. package/dist/report/write.js +48 -0
  75. package/dist/runner.d.ts +11 -0
  76. package/dist/runner.js +152 -0
  77. package/dist/session.d.ts +19 -0
  78. package/dist/session.js +31 -0
  79. package/dist/target.d.ts +5 -0
  80. package/dist/target.js +114 -0
  81. package/dist/types.d.ts +135 -0
  82. package/dist/types.js +4 -0
  83. package/dist/ui/server.d.ts +13 -0
  84. package/dist/ui/server.js +295 -0
  85. package/dist/version.d.ts +1 -0
  86. package/dist/version.js +3 -0
  87. package/dist/versions.d.ts +9 -0
  88. package/dist/versions.js +35 -0
  89. package/js-tools/eslint.config.mjs +19 -0
  90. package/js-tools/package-lock.json +7004 -0
  91. package/js-tools/package.json +13 -0
  92. package/js-tools/stylelint.config.mjs +4 -0
  93. package/package.json +57 -4
  94. package/php-tools/composer.json +40 -0
  95. package/php-tools/composer.lock +868 -0
  96. package/ui/dist/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  97. package/ui/dist/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  98. package/ui/dist/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  99. package/ui/dist/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  100. package/ui/dist/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  101. package/ui/dist/assets/index-7zN46ssH.js +54 -0
  102. package/ui/dist/assets/index-B1axZya5.css +2 -0
  103. 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,59 @@
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.1.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
+ "homepage": "https://github.com/alexposlushnyak/wp-shakedown#readme",
39
+ "keywords": [
40
+ "wordpress",
41
+ "testing",
42
+ "phpcs",
43
+ "phpstan",
44
+ "wp-cli",
45
+ "mcp",
46
+ "cli"
47
+ ],
48
+ "devDependencies": {
49
+ "@modelcontextprotocol/sdk": "^1.32.2",
50
+ "@types/node": "^22.20.5",
51
+ "typescript": "^7.0.2"
52
+ },
53
+ "dependencies": {
54
+ "ajv": "^8.20.0"
55
+ },
56
+ "publishConfig": {
57
+ "access": "public"
58
+ }
59
+ }
@@ -0,0 +1,40 @@
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
+ },
14
+ "config": {
15
+ "allow-plugins": {
16
+ "dealerdirect/phpcodesniffer-composer-installer": true
17
+ },
18
+ "sort-packages": true
19
+ },
20
+ "minimum-stability": "alpha",
21
+ "prefer-stable": true,
22
+ "repositories": [
23
+ {
24
+ "type": "package",
25
+ "package": {
26
+ "name": "plugin-check/phpcs-sniffs",
27
+ "version": "2.2.0",
28
+ "type": "phpcodesniffer-standard",
29
+ "dist": {
30
+ "url": "https://github.com/WordPress/plugin-check/archive/refs/tags/2.2.0.zip",
31
+ "type": "zip"
32
+ },
33
+ "require": {
34
+ "phpcsstandards/phpcsutils": "^1.0.8",
35
+ "squizlabs/php_codesniffer": "^3.7.2"
36
+ }
37
+ }
38
+ }
39
+ ]
40
+ }