@stoplight/spectral
v4.0.0-beta.10 json linter linter json validator validator OpenAPI Swagger schema API
lint
tslint 'src/**/*.ts'
test
jest
build
tsc -p ./tsconfig.build.json
commit
git-cz
lint.fix
yarn lint --fix
prebuild
copyfiles -u 1 "src/rulesets/oas*/*.json" dist && copyfiles -u 1 "src/rulesets/oas*/*.json" ./
postbuild
oclif-dev manifest
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 . --targets linux,macos --out-path ./binaries
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
npm i @stoplight/[email protected]
Metadata
- Apache-2.0
- >=8.3.0
- Stoplight
- released 7/9/2019