@stoplight/spectral
v4.2.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
tslint 'src/**/*.ts'
test
jest --silent
build
tsc -p ./tsconfig.build.json
lint.fix
yarn lint --fix
prebuild
copyfiles -u 1 "src/rulesets/oas*/**/*.json" dist && copyfiles -u 1 "src/rulesets/oas*/**/*.json" ./
cli:debug
node -r ts-node/register -r tsconfig-paths/register --inspect-brk src/cli/index.ts
postbuild
yarn build.oas-functions && yarn compile-rulesets
test.prod
yarn build && yarn lint && yarn test.karma && yarn test --coverage --maxWorkers=2
test.karma
karma start
test.watch
yarn test --watch
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
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
./scripts/inline-version.js
prebuild.binary
yarn build
compile-rulesets
node ./scripts/compile-rulesets.js
build.oas-functions
rollup -c
postbuild.oas-functions
copyfiles -u 1 "dist/rulesets/oas*/functions/*.js" ./
npm i @stoplight/[email protected]
Metadata
- Apache-2.0
- >=8.3.0
- Stoplight
- released 10/8/2019