UNPKG

6.99 kBJSONView Raw
1{
2 "name": "redoc",
3 "version": "2.1.3",
4 "description": "ReDoc",
5 "repository": {
6 "type": "git",
7 "url": "git://github.com/Redocly/redoc"
8 },
9 "browserslist": [
10 "defaults"
11 ],
12 "engines": {
13 "node": ">=6.9",
14 "npm": ">=3.0.0"
15 },
16 "author": "Roman Hotsiy <gotsijroman@gmail.com>",
17 "license": "MIT",
18 "keywords": [
19 "OpenAPI",
20 "OpenAPI Specification",
21 "Swagger",
22 "JSON-Schema",
23 "API",
24 "REST",
25 "documentation",
26 "React.js"
27 ],
28 "main": "bundles/redoc.lib.js",
29 "browser": "bundles/redoc.browser.lib.js",
30 "types": "typings/index.d.ts",
31 "scripts": {
32 "start": "webpack serve --mode=development --env playground --hot --config demo/webpack.config.ts",
33 "start:prod": "webpack serve --env playground --mode=production --config demo/webpack.config.ts",
34 "start:benchmark": "webpack serve --mode=production --env.bench --config demo/webpack.config.ts",
35 "test": "npm run unit && npm run license-check",
36 "unit": "jest --coverage",
37 "test:update-snapshot": "jest --updateSnapshot",
38 "e2e": "cypress run",
39 "e2e-ci": "cypress run --record",
40 "bundlesize": "size-limit",
41 "ts-check": "tsc --noEmit --skipLibCheck",
42 "cy:open": "cypress open",
43 "bundle:clean": "rimraf bundles",
44 "bundle:standalone": "webpack --env production --env standalone --mode=production",
45 "bundle:lib": "webpack --mode=production && npm run declarations",
46 "bundle:browser": "webpack --env production --env browser --mode=production",
47 "bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:browser && npm run bundle:standalone",
48 "declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && cp -R src/types typings/",
49 "stats": "webpack --env production --env standalone --json --profile --mode=production > stats.json",
50 "prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
51 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
52 "lint": "eslint --fix 'src/**/*.{js,ts,tsx}' --cache",
53 "benchmark": "node ./benchmark/benchmark.js",
54 "start:demo": "webpack serve --hot --config demo/webpack.config.ts --mode=development",
55 "build:demo": "webpack --mode=production --config demo/webpack.config.ts",
56 "publish-cdn": "scripts/publish-cdn.sh",
57 "deploy:demo": "aws s3 sync demo/dist s3://production-redoc-demo --acl=public-read",
58 "license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause;CC-BY-4.0;Python-2.0' --summary",
59 "docker:build": "docker build -f config/docker/Dockerfile -t redoc .",
60 "prepare": "husky install",
61 "pre-commit": "pretty-quick --staged && npm run lint"
62 },
63 "devDependencies": {
64 "@cypress/webpack-preprocessor": "^5.17.1",
65 "@hot-loader/react-dom": "^17.0.2",
66 "@size-limit/preset-app": "^8.2.6",
67 "@types/chai": "^4.2.18",
68 "@types/dompurify": "^2.2.2",
69 "@types/enzyme": "^3.10.5",
70 "@types/enzyme-to-json": "^1.5.3",
71 "@types/jest": "^26.0.23",
72 "@types/json-pointer": "^1.0.30",
73 "@types/lunr": "^2.3.3",
74 "@types/mark.js": "^8.11.5",
75 "@types/marked": "^4.0.3",
76 "@types/node": "^15.6.1",
77 "@types/prismjs": "^1.16.5",
78 "@types/prop-types": "^15.7.3",
79 "@types/react": "^17.0.8",
80 "@types/react-dom": "^17.0.5",
81 "@types/styled-components": "^5.1.1",
82 "@types/tapable": "^2.2.2",
83 "@types/webpack": "^5.28.0",
84 "@types/webpack-env": "^1.18.0",
85 "@types/yargs": "^17.0.0",
86 "@typescript-eslint/eslint-plugin": "^4.26.0",
87 "@typescript-eslint/parser": "^4.26.0",
88 "@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
89 "beautify-benchmark": "^0.2.4",
90 "conventional-changelog-cli": "^3.0.0",
91 "copy-webpack-plugin": "^9.0.0",
92 "core-js": "^3.13.1",
93 "coveralls": "^3.1.1",
94 "css-loader": "^5.2.6",
95 "cypress": "^13.1.0",
96 "enzyme": "^3.11.0",
97 "enzyme-to-json": "^3.6.2",
98 "esbuild-loader": "^3.0.1",
99 "eslint": "^7.27.0",
100 "eslint-plugin-import": "^2.23.4",
101 "eslint-plugin-react": "^7.25.1",
102 "eslint-plugin-react-hooks": "^4.2.0",
103 "fork-ts-checker-webpack-plugin": "^6.2.10",
104 "html-webpack-plugin": "^5.3.1",
105 "husky": "^7.0.0",
106 "jest": "^27.0.3",
107 "js-yaml": "^4.1.0",
108 "license-checker": "^25.0.1",
109 "lodash.noop": "^3.0.1",
110 "mobx": "^6.3.2",
111 "outdent": "^0.8.0",
112 "prettier": "^2.3.2",
113 "pretty-quick": "^3.0.0",
114 "raf": "^3.4.1",
115 "react": "^17.0.2",
116 "react-dom": "^17.0.2",
117 "react-hot-loader": "^4.13.0",
118 "rimraf": "^3.0.2",
119 "shelljs": "^0.8.4",
120 "size-limit": "^8.2.6",
121 "style-loader": "^3.3.1",
122 "styled-components": "^5.3.0",
123 "ts-jest": "^27.0.2",
124 "ts-node": "^10.9.1",
125 "tslib": "^2.4.0",
126 "typescript": "^4.8.4",
127 "unfetch": "^4.2.0",
128 "url": "^0.11.1",
129 "webpack": "^5.88.2",
130 "webpack-cli": "^5.1.4",
131 "webpack-dev-server": "^4.15.1",
132 "webpack-node-externals": "^3.0.0",
133 "workerize-loader": "github:redocly/workerize-loader#webpack-5-dist"
134 },
135 "peerDependencies": {
136 "core-js": "^3.1.4",
137 "mobx": "^6.0.4",
138 "react": "^16.8.4 || ^17.0.0 || ^18.0.0",
139 "react-dom": "^16.8.4 || ^17.0.0 || ^18.0.0",
140 "styled-components": "^4.1.1 || ^5.1.1 || ^6.0.5"
141 },
142 "dependencies": {
143 "@redocly/openapi-core": "^1.0.0-rc.2",
144 "classnames": "^2.3.1",
145 "decko": "^1.2.0",
146 "dompurify": "^2.2.8",
147 "eventemitter3": "^4.0.7",
148 "json-pointer": "^0.6.2",
149 "lunr": "^2.3.9",
150 "mark.js": "^8.11.1",
151 "marked": "^4.0.15",
152 "mobx-react": "^7.2.0",
153 "openapi-sampler": "^1.3.1",
154 "path-browserify": "^1.0.1",
155 "perfect-scrollbar": "^1.5.5",
156 "polished": "^4.1.3",
157 "prismjs": "^1.27.0",
158 "prop-types": "^15.7.2",
159 "react-tabs": "^4.3.0",
160 "slugify": "~1.4.7",
161 "stickyfill": "^1.1.1",
162 "swagger2openapi": "^7.0.6",
163 "url-template": "^2.0.8"
164 },
165 "size-limit": [
166 {
167 "path": "./bundles/redoc.standalone.js",
168 "limit": "350 kB"
169 },
170 {
171 "path": "./bundles/redoc.lib.js",
172 "limit": "100 kB"
173 },
174 {
175 "path": "./bundles/redoc.browser.lib.js",
176 "limit": "100 kB"
177 }
178 ],
179 "jest": {
180 "testEnvironment": "jsdom",
181 "setupFilesAfterEnv": [
182 "<rootDir>/src/setupTests.ts"
183 ],
184 "preset": "ts-jest",
185 "collectCoverageFrom": [
186 "src/**/*.{ts,tsx}"
187 ],
188 "coverageReporters": [
189 "json",
190 "lcov",
191 "text-summary"
192 ],
193 "coveragePathIgnorePatterns": [
194 "\\.d\\.ts$",
195 "/benchmark/",
196 "/node_modules/",
197 "src/services/__tests__/models/helpers.ts"
198 ],
199 "modulePathIgnorePatterns": [
200 "/benchmark/",
201 "src/services/__tests__/models/helpers.ts"
202 ],
203 "snapshotSerializers": [
204 "enzyme-to-json/serializer"
205 ],
206 "moduleNameMapper": {
207 "\\.(css|less)$": "<rootDir>/src/empty.js"
208 }
209 },
210 "prettier": {
211 "singleQuote": true,
212 "trailingComma": "all",
213 "printWidth": 100,
214 "arrowParens": "avoid"
215 }
216}