forked from stoplightio/spectral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
153 lines (153 loc) · 4.81 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"name": "@stoplight/spectral",
"version": "0.0.0",
"description": "A flexible object linter with out of the box support for OpenAPI v2 and v3.",
"keywords": [
"json linter",
"linter",
"json validator",
"validator",
"OpenAPI",
"Swagger",
"schema",
"API"
],
"sideEffects": false,
"homepage": "https://github.com/stoplightio/spectral",
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/stoplightio/spectral"
},
"license": "Apache-2.0",
"main": "dist/index.js",
"bin": {
"spectral": "./dist/cli/index.js"
},
"files": [
"dist/*",
"rulesets/*"
],
"engines": {
"node": ">=10.0"
},
"scripts": {
"build.binary": "pkg . --output ./binaries/spectral",
"build.clean": "rimraf ./coverage && rimraf ./dist && rimraf ./rulesets && rimraf ./__karma__/__fixtures__",
"build.oas-functions": "rollup -c",
"build": "tsc -p ./tsconfig.build.json",
"cli": "node -r ts-node/register -r tsconfig-paths/register src/cli/index.ts",
"cli:debug": "node -r ts-node/register -r tsconfig-paths/register --inspect-brk src/cli/index.ts",
"generate-assets": "node ./scripts/generate-assets.js",
"inline-version": "./scripts/inline-version.js",
"lint.fix": "yarn lint --fix",
"lint": "tsc --noEmit && tslint 'src/**/*.ts'",
"copy.html-templates": "copyfiles -u 1 \"./src/formatters/html/*.html\" \"./dist/\"",
"postbuild.oas-functions": "copyfiles -u 1 \"dist/rulesets/oas*/functions/*.js\" ./",
"postbuild": "yarn build.oas-functions && yarn generate-assets",
"prebuild": "yarn build.clean && copyfiles -u 1 \"src/rulesets/oas*/**/*.json\" dist && copyfiles -u 1 \"src/rulesets/oas*/**/*.json\" ./ && yarn copy.html-templates",
"prebuild.binary": "yarn build",
"pretest.karma": "node ./scripts/generate-karma-fixtures.js && yarn pretest",
"pretest": "node ./scripts/generate-assets.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",
"test.harness": "jest -c ./jest.harness.config.js",
"test.karma": "karma start",
"test.prod": "yarn build && yarn lint && yarn test.karma && yarn test --coverage --maxWorkers=2",
"test.update": "yarn test --updateSnapshot",
"test.watch": "yarn test --watch",
"test": "jest --silent"
},
"dependencies": {
"@stoplight/json": "^3.4.0",
"@stoplight/json-ref-readers": "^1.1.1",
"@stoplight/json-ref-resolver": "^3.0.6",
"@stoplight/path": "^1.3.0",
"@stoplight/types": "^11.2.0",
"@stoplight/yaml": "^3.5.0",
"abort-controller": "^3.0.0",
"ajv": "^6.10",
"ajv-oai": "^1.1.5",
"better-ajv-errors": "^0.6.7",
"blueimp-md5": "^2.12.0",
"chalk": "^3.0.0",
"eol": "^0.9.1",
"fast-glob": "^3.1.0",
"jsonpath-plus": "~2.0",
"lodash": ">=4.17.5",
"nanoid": "^2.1.6",
"node-fetch": "^2.6",
"proxy-agent": "^3.1.1",
"strip-ansi": "^6.0",
"text-table": "^0.2",
"tslib": "^1.10.0",
"yargs": "^15.0.2"
},
"devDependencies": {
"@commitlint/config-conventional": "^8.2.0",
"@types/chalk": "^2.2.0",
"@types/fetch-mock": "^7.3.1",
"@types/jest": "^24.0.25",
"@types/jest-when": "^2.7.0",
"@types/lodash": "^4.14.146",
"@types/nanoid": "^2.1.0",
"@types/nock": "^11.1.0",
"@types/node": "~13.1",
"@types/node-fetch": "^2.5.3",
"@types/text-table": "^0.2.1",
"@types/tmp": "^0.1.0",
"@types/xml2js": "^0.4.5",
"copyfiles": "^2.1.1",
"dependency-graph": "^0.8.0",
"fetch-mock": "^7.7.3",
"glob-fs": "^0.1.7",
"husky": "^3.0.9",
"jest": "~24.9",
"jest-mock": "^24.9.0",
"jest-when": "~2.7",
"karma": "^4.4.1",
"karma-chrome-launcher": "^3.1.0",
"karma-jasmine": "^2.0.1",
"karma-typescript": "^4.1.1",
"lint-staged": "^9.4.2",
"nock": "~11.7.0",
"node-html-parser": "^1.1.16",
"pkg": "^4.4.0",
"recast": "^0.18.5",
"rimraf": "^3.0.0",
"rollup": "^1.27.14",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.25.2",
"ts-jest": "^24.1.0",
"ts-node": "^8.4.1",
"tsconfig-paths": "^3.9.0",
"tslint": "~5.20",
"tslint-config-stoplight": "~1.4",
"typescript": "^3.7.4",
"typescript-json-schema": "~0.41.0",
"xml2js": "^0.4.23"
},
"lint-staged": {
"*.{ts,tsx}": [
"tslint --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"pkg": {
"scripts": [
"./dist/**/*.js"
],
"assets": [
"./dist/**/*.json",
"./dist/cli/**/*.html"
]
},
"types": "dist/index.d.ts"
}