@stoplight/spectral
v5.5.0 json linter linter json validator validator OpenAPI Swagger schema API
cli
node -r ts-node/register -r tsconfig-paths/register src/cli/index.ts
lint
eslint --cache --cache-location .cache/ --ext=.js,.ts src test-harness
test
jest --silent
build
tsc -p ./tsconfig.build.json
prelint
tsc --noEmit
pretest
yarn generate-assets
lint.fix
yarn lint --fix
prebuild
yarn build.clean && copyfiles -u 1 "src/rulesets/{oas,asyncapi}/**/*.json" dist && copyfiles -u 1 "src/rulesets/{oas,asyncapi}/**/*.json" ./ && yarn copy.html-templates
cli:debug
node -r ts-node/register -r tsconfig-paths/register --inspect-brk src/cli/index.ts
postbuild
yarn build.functions && yarn generate-assets
test.prod
yarn build && yarn lint && yarn test.karma && yarn test --coverage --maxWorkers=2
test.karma
karma start
test.watch
yarn test --watch
build.clean
rimraf ./coverage && rimraf ./dist && rimraf ./rulesets && rimraf ./__karma__/__fixtures__
test.update
yarn test --updateSnapshot
build.binary
pkg . --output ./binaries/spectral
test.harness
jest -c ./jest.harness.config.js
pretest.karma
node ./scripts/generate-karma-fixtures.js && yarn pretest
schema.update
yarn typescript-json-schema --id "http://stoplight.io/schemas/rule.schema.json" --required tsconfig.json IRule --out ./src/meta/rule.schema.json
inline-version
node ./scripts/inline-version.js
build.functions
rollup -c
generate-assets
node -r ts-node/register ./scripts/generate-assets.ts
prebuild.binary
yarn build
copy.html-templates
copyfiles -u 1 "./src/formatters/html/*.html" "./dist/"
postbuild.functions
copyfiles -u 1 "dist/rulesets/{oas,asyncapi}/functions/*.js" ./
npm i @stoplight/[email protected]
Metadata
- Apache-2.0
- >=10.0
- Stoplight
- released 8/25/2020