|
88 | 88 | "lint": "Test codestyle",
|
89 | 89 | "test": "Run all PHP, codestyle and rector tests",
|
90 | 90 | "analyse": "Run static analysis (phpstan/psalm)",
|
91 |
| - "spectral-examples": "Run spectral lint over all .yaml files in the Examples folder", |
| 91 | + "spectral-examples": "Run spectral lint over all .yaml files in the docs/examples folder", |
92 | 92 | "spectral-scratch": "Run spectral lint over all .yaml files in the tests/Fixtures/Scratch folder",
|
93 | 93 | "spectral": "Run all spectral tests",
|
| 94 | + "redocly-examples": "Run redocly lint over all .yaml files in the docs/examples folder", |
| 95 | + "redocly-scratch": "Run redocly lint over all .yaml files in the tests/Fixtures/Scratch folder", |
| 96 | + "redocly": "Run all redocly tests", |
94 | 97 | "docs:gen": "Rebuild reference documentation",
|
95 | 98 | "docs:dev": "Run dev server for local development of gh-pages",
|
96 | 99 | "docs:build": "Re-build static gh-pages"
|
|
110 | 113 | "export XDEBUG_MODE=off && phpstan analyse --memory-limit=2G",
|
111 | 114 | "export XDEBUG_MODE=off && psalm --threads=1"
|
112 | 115 | ],
|
113 |
| - "spectral-examples": "for ff in `find Examples -name '*.yaml'`; do spectral lint $ff; done", |
114 |
| - "spectral-scratch": "for ff in `find tests/Fixtures/Scratch -name '*.yaml'`; do spectral lint $ff; done", |
| 116 | + "spectral-examples": "for ff in `find docs/examples -name '*.yaml'`; do npm run spectral lint $ff; done", |
| 117 | + "spectral-scratch": "for ff in `find tests/Fixtures/Scratch -name '*.yaml'`; do npm run spectral lint $ff; done", |
115 | 118 | "spectral": [
|
116 | 119 | "@spectral-examples",
|
117 | 120 | "@spectral-scratch"
|
118 | 121 | ],
|
| 122 | + "redocly-examples": "for ff in `find docs/examples -name '*.yaml'`; do npm run redocly lint $ff; done", |
| 123 | + "redocly-scratch": "for ff in `find tests/Fixtures/Scratch -name '*.yaml'`; do npm run redocly lint $ff; done", |
| 124 | + "redocly": [ |
| 125 | + "@redocly-examples", |
| 126 | + "@redocly-scratch" |
| 127 | + ], |
119 | 128 | "docs:gen": [
|
120 | 129 | "@php tools/refgen.php",
|
121 | 130 | "@php tools/procgen.php",
|
|
0 commit comments