2015-10-03 11:54:09 +03:00
|
|
|
{
|
2016-01-13 00:35:08 +03:00
|
|
|
"name": "redoc",
|
2022-08-10 15:25:43 +03:00
|
|
|
"version": "2.0.0-rc.75",
|
2017-10-12 00:01:37 +03:00
|
|
|
"description": "ReDoc",
|
2016-01-06 18:22:17 +03:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2019-06-04 15:47:22 +03:00
|
|
|
"url": "git://github.com/Redocly/redoc"
|
2016-01-06 18:22:17 +03:00
|
|
|
},
|
2021-06-09 14:57:36 +03:00
|
|
|
"browserslist": [
|
2022-05-05 13:17:45 +03:00
|
|
|
"defaults"
|
2021-06-09 14:57:36 +03:00
|
|
|
],
|
2016-09-28 09:33:56 +03:00
|
|
|
"engines": {
|
2017-01-28 15:14:08 +03:00
|
|
|
"node": ">=6.9",
|
2016-09-28 09:33:56 +03:00
|
|
|
"npm": ">=3.0.0"
|
|
|
|
},
|
2018-03-21 18:32:28 +03:00
|
|
|
"author": "Roman Hotsiy <gotsijroman@gmail.com>",
|
|
|
|
"license": "MIT",
|
2015-10-03 11:54:09 +03:00
|
|
|
"keywords": [
|
2016-02-24 19:25:49 +03:00
|
|
|
"OpenAPI",
|
|
|
|
"OpenAPI Specification",
|
2015-10-03 11:54:09 +03:00
|
|
|
"Swagger",
|
|
|
|
"JSON-Schema",
|
|
|
|
"API",
|
2016-02-24 19:25:49 +03:00
|
|
|
"REST",
|
2015-10-03 11:54:09 +03:00
|
|
|
"documentation",
|
2018-03-21 18:32:28 +03:00
|
|
|
"React.js"
|
2015-10-03 11:54:09 +03:00
|
|
|
],
|
2017-11-19 22:27:44 +03:00
|
|
|
"main": "bundles/redoc.lib.js",
|
2021-11-29 15:27:06 +03:00
|
|
|
"browser": "bundles/redoc.browser.lib.js",
|
2018-05-16 12:44:36 +03:00
|
|
|
"types": "typings/index.d.ts",
|
2015-10-03 11:54:09 +03:00
|
|
|
"scripts": {
|
2021-06-09 14:57:36 +03:00
|
|
|
"start": "webpack serve --mode=development --env playground --hot --config demo/webpack.config.ts",
|
|
|
|
"start:prod": "webpack serve --env playground --mode=production --config demo/webpack.config.ts",
|
|
|
|
"start:benchmark": "webpack serve --mode=production --env.bench --config demo/webpack.config.ts",
|
2022-04-18 23:46:08 +03:00
|
|
|
"test": "npm run unit && npm run license-check",
|
2018-03-17 23:06:25 +03:00
|
|
|
"unit": "jest --coverage",
|
2022-05-16 11:49:22 +03:00
|
|
|
"test:update-snapshot": "jest --updateSnapshot",
|
2018-02-17 22:27:15 +03:00
|
|
|
"e2e": "cypress run",
|
2018-03-17 22:09:18 +03:00
|
|
|
"e2e-ci": "cypress run --record",
|
2021-12-09 11:29:35 +03:00
|
|
|
"bundlesize": "size-limit",
|
2021-06-02 15:53:36 +03:00
|
|
|
"ts-check": "tsc --noEmit --skipLibCheck",
|
2018-09-28 16:49:34 +03:00
|
|
|
"cy:open": "cypress open",
|
2017-11-19 13:51:59 +03:00
|
|
|
"bundle:clean": "rimraf bundles",
|
2021-06-09 14:57:36 +03:00
|
|
|
"bundle:standalone": "webpack --env production --env standalone --mode=production",
|
2019-05-10 18:03:28 +03:00
|
|
|
"bundle:lib": "webpack --mode=production && npm run declarations",
|
2021-11-29 15:27:06 +03:00
|
|
|
"bundle:browser": "webpack --env production --env browser --mode=production",
|
2022-05-11 08:58:24 +03:00
|
|
|
"bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:browser && npm run bundle:standalone && npm run compile:cli",
|
2018-05-18 15:10:16 +03:00
|
|
|
"declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && cp -R src/types typings/",
|
2021-06-09 14:57:36 +03:00
|
|
|
"stats": "webpack --env production --env standalone --json --profile --mode=production > stats.json",
|
2020-01-10 15:29:09 +03:00
|
|
|
"prettier": "prettier --write \"cli/index.ts\" \"src/**/*.{ts,tsx}\"",
|
2018-01-22 21:30:53 +03:00
|
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
2022-04-18 23:46:08 +03:00
|
|
|
"lint": "eslint --fix 'src/**/*.{js,ts,tsx}' --cache",
|
2018-03-13 13:58:22 +03:00
|
|
|
"benchmark": "node ./benchmark/benchmark.js",
|
2021-06-09 14:57:36 +03:00
|
|
|
"start:demo": "webpack serve --hot --config demo/webpack.config.ts --mode=development",
|
2018-09-28 16:49:34 +03:00
|
|
|
"compile:cli": "tsc custom.d.ts cli/index.ts --target es6 --module commonjs --types yargs",
|
2018-03-21 20:28:51 +03:00
|
|
|
"build:demo": "webpack --mode=production --config demo/webpack.config.ts",
|
2022-05-30 13:40:19 +03:00
|
|
|
"publish-cdn": "scripts/publish-cdn.sh",
|
2020-09-07 12:54:36 +03:00
|
|
|
"deploy:demo": "aws s3 sync demo/dist s3://production-redoc-demo --acl=public-read",
|
2022-03-18 18:30:23 +03:00
|
|
|
"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",
|
2021-11-24 17:11:45 +03:00
|
|
|
"docker:build": "docker build -f config/docker/Dockerfile -t redoc .",
|
|
|
|
"prepare": "husky install",
|
|
|
|
"pre-commit": "pretty-quick --staged && npm run lint"
|
2015-10-03 11:54:09 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-06-24 17:22:59 +03:00
|
|
|
"@cypress/webpack-preprocessor": "^5.12.0",
|
|
|
|
"@hot-loader/react-dom": "^17.0.2",
|
2021-12-09 11:29:35 +03:00
|
|
|
"@size-limit/preset-app": "^7.0.4",
|
2021-06-02 15:53:36 +03:00
|
|
|
"@types/chai": "^4.2.18",
|
|
|
|
"@types/dompurify": "^2.2.2",
|
2020-03-16 17:38:18 +03:00
|
|
|
"@types/enzyme": "^3.10.5",
|
2019-03-11 18:08:29 +03:00
|
|
|
"@types/enzyme-to-json": "^1.5.3",
|
2021-06-02 15:53:36 +03:00
|
|
|
"@types/jest": "^26.0.23",
|
2017-10-12 00:01:37 +03:00
|
|
|
"@types/json-pointer": "^1.0.30",
|
2020-07-25 19:06:22 +03:00
|
|
|
"@types/lunr": "^2.3.3",
|
2019-12-12 13:46:17 +03:00
|
|
|
"@types/mark.js": "^8.11.5",
|
2022-05-10 14:50:50 +03:00
|
|
|
"@types/marked": "^4.0.3",
|
2021-12-09 11:29:35 +03:00
|
|
|
"@types/node": "^15.6.1",
|
2021-06-02 15:53:36 +03:00
|
|
|
"@types/prismjs": "^1.16.5",
|
2019-09-30 10:34:49 +03:00
|
|
|
"@types/prop-types": "^15.7.3",
|
2021-06-02 15:53:36 +03:00
|
|
|
"@types/react": "^17.0.8",
|
|
|
|
"@types/react-dom": "^17.0.5",
|
2020-07-25 19:06:22 +03:00
|
|
|
"@types/react-tabs": "^2.3.2",
|
|
|
|
"@types/styled-components": "^5.1.1",
|
2021-06-02 15:53:36 +03:00
|
|
|
"@types/tapable": "^2.2.2",
|
2021-06-09 14:57:36 +03:00
|
|
|
"@types/webpack": "^5.28.0",
|
|
|
|
"@types/webpack-env": "^1.16.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"@types/yargs": "^17.0.0",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^4.26.0",
|
|
|
|
"@typescript-eslint/parser": "^4.26.0",
|
|
|
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
|
2018-01-29 14:09:38 +03:00
|
|
|
"beautify-benchmark": "^0.2.4",
|
2020-07-25 19:06:22 +03:00
|
|
|
"conventional-changelog-cli": "^2.0.34",
|
2021-06-09 14:57:36 +03:00
|
|
|
"copy-webpack-plugin": "^9.0.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"core-js": "^3.13.1",
|
2020-07-25 19:06:22 +03:00
|
|
|
"coveralls": "^3.1.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"css-loader": "^5.2.6",
|
|
|
|
"cypress": "^7.4.0",
|
2020-03-16 17:38:18 +03:00
|
|
|
"enzyme": "^3.11.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"enzyme-to-json": "^3.6.2",
|
2022-01-25 16:50:28 +03:00
|
|
|
"esbuild-loader": "^2.18.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"eslint": "^7.27.0",
|
|
|
|
"eslint-plugin-import": "^2.23.4",
|
2022-01-05 18:11:05 +03:00
|
|
|
"eslint-plugin-react": "^7.25.1",
|
|
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"fork-ts-checker-webpack-plugin": "^6.2.10",
|
2021-06-09 14:57:36 +03:00
|
|
|
"html-webpack-plugin": "^5.3.1",
|
2021-11-24 17:11:45 +03:00
|
|
|
"husky": "^7.0.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"jest": "^27.0.3",
|
|
|
|
"js-yaml": "^4.1.0",
|
2019-03-11 18:08:29 +03:00
|
|
|
"license-checker": "^25.0.1",
|
2022-01-25 16:50:28 +03:00
|
|
|
"lodash.noop": "^3.0.1",
|
2021-06-02 15:53:36 +03:00
|
|
|
"mobx": "^6.3.2",
|
2022-07-18 17:47:06 +03:00
|
|
|
"outdent": "^0.8.0",
|
2021-11-24 17:11:45 +03:00
|
|
|
"prettier": "^2.3.2",
|
|
|
|
"pretty-quick": "^3.0.0",
|
2018-11-27 10:40:00 +03:00
|
|
|
"raf": "^3.4.1",
|
2021-06-02 15:53:36 +03:00
|
|
|
"react": "^17.0.2",
|
|
|
|
"react-dom": "^17.0.2",
|
|
|
|
"react-hot-loader": "^4.13.0",
|
2020-03-16 17:38:18 +03:00
|
|
|
"rimraf": "^3.0.2",
|
2020-07-25 19:06:22 +03:00
|
|
|
"shelljs": "^0.8.4",
|
2021-12-09 11:29:35 +03:00
|
|
|
"size-limit": "^7.0.4",
|
2021-06-02 15:53:36 +03:00
|
|
|
"styled-components": "^5.3.0",
|
|
|
|
"ts-jest": "^27.0.2",
|
2022-01-25 16:50:28 +03:00
|
|
|
"ts-loader": "^9.2.6",
|
2021-06-02 15:53:36 +03:00
|
|
|
"ts-node": "^10.0.0",
|
2022-08-03 14:28:38 +03:00
|
|
|
"tslib": "^2.4.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"typescript": "~4.1.0",
|
|
|
|
"unfetch": "^4.2.0",
|
2022-07-20 19:02:25 +03:00
|
|
|
"webpack": "^5.50.1",
|
2021-06-09 14:57:36 +03:00
|
|
|
"webpack-cli": "^4.7.2",
|
2021-12-09 13:38:03 +03:00
|
|
|
"webpack-dev-server": "^4.6.0",
|
2021-06-09 14:57:36 +03:00
|
|
|
"webpack-node-externals": "^3.0.0",
|
|
|
|
"workerize-loader": "github:redocly/workerize-loader#webpack-5-dist"
|
2017-05-08 11:24:25 +03:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
2019-08-01 10:34:53 +03:00
|
|
|
"core-js": "^3.1.4",
|
2020-11-17 12:22:34 +03:00
|
|
|
"mobx": "^6.0.4",
|
2021-06-02 15:53:36 +03:00
|
|
|
"react": "^16.8.4 || ^17.0.0",
|
|
|
|
"react-dom": "^16.8.4 || ^17.0.0",
|
2020-09-29 00:29:24 +03:00
|
|
|
"styled-components": "^4.1.1 || ^5.1.1"
|
2017-03-15 18:50:10 +03:00
|
|
|
},
|
2017-04-23 17:43:18 +03:00
|
|
|
"dependencies": {
|
2022-07-20 19:02:25 +03:00
|
|
|
"@redocly/openapi-core": "^1.0.0-beta.104",
|
2021-06-02 15:53:36 +03:00
|
|
|
"classnames": "^2.3.1",
|
2017-10-12 00:01:37 +03:00
|
|
|
"decko": "^1.2.0",
|
2021-06-02 15:53:36 +03:00
|
|
|
"dompurify": "^2.2.8",
|
|
|
|
"eventemitter3": "^4.0.7",
|
2022-02-24 14:19:47 +03:00
|
|
|
"json-pointer": "^0.6.2",
|
2021-06-02 15:53:36 +03:00
|
|
|
"lunr": "^2.3.9",
|
2018-01-21 22:39:51 +03:00
|
|
|
"mark.js": "^8.11.1",
|
2022-05-10 14:50:50 +03:00
|
|
|
"marked": "^4.0.15",
|
2021-06-02 15:53:36 +03:00
|
|
|
"mobx-react": "^7.2.0",
|
2022-05-30 16:18:44 +03:00
|
|
|
"openapi-sampler": "^1.3.0",
|
2021-06-09 14:57:36 +03:00
|
|
|
"path-browserify": "^1.0.1",
|
2022-08-10 10:21:50 +03:00
|
|
|
"perfect-scrollbar": "^1.5.5",
|
2021-06-02 15:53:36 +03:00
|
|
|
"polished": "^4.1.3",
|
2022-03-15 16:35:19 +03:00
|
|
|
"prismjs": "^1.27.0",
|
2019-03-11 18:08:29 +03:00
|
|
|
"prop-types": "^15.7.2",
|
2021-06-02 15:53:36 +03:00
|
|
|
"react-tabs": "^3.2.2",
|
2021-06-09 14:57:36 +03:00
|
|
|
"slugify": "~1.4.7",
|
2017-11-20 03:18:43 +03:00
|
|
|
"stickyfill": "^1.1.1",
|
2022-01-27 15:58:27 +03:00
|
|
|
"style-loader": "^3.3.1",
|
2021-06-02 15:53:36 +03:00
|
|
|
"swagger2openapi": "^7.0.6",
|
2019-09-30 10:12:26 +03:00
|
|
|
"url-template": "^2.0.8"
|
2017-10-12 00:01:37 +03:00
|
|
|
},
|
2021-12-09 11:29:35 +03:00
|
|
|
"size-limit": [
|
2018-03-17 20:56:08 +03:00
|
|
|
{
|
|
|
|
"path": "./bundles/redoc.standalone.js",
|
2021-12-09 11:29:35 +03:00
|
|
|
"limit": "350 kB"
|
2022-07-06 12:33:40 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "./bundles/redoc.lib.js",
|
|
|
|
"limit": "100 kB"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "./bundles/redoc.browser.lib.js",
|
|
|
|
"limit": "100 kB"
|
2018-03-17 20:56:08 +03:00
|
|
|
}
|
|
|
|
],
|
2017-10-12 00:01:37 +03:00
|
|
|
"jest": {
|
2021-06-02 15:53:36 +03:00
|
|
|
"testEnvironment": "jsdom",
|
2019-03-15 13:03:47 +03:00
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>/src/setupTests.ts"
|
|
|
|
],
|
2018-10-18 11:27:28 +03:00
|
|
|
"preset": "ts-jest",
|
2018-03-17 21:57:45 +03:00
|
|
|
"collectCoverageFrom": [
|
|
|
|
"src/**/*.{ts,tsx}"
|
|
|
|
],
|
2018-03-17 23:04:37 +03:00
|
|
|
"coverageReporters": [
|
|
|
|
"json",
|
|
|
|
"lcov",
|
|
|
|
"text-summary"
|
|
|
|
],
|
|
|
|
"coveragePathIgnorePatterns": [
|
2018-10-18 11:27:28 +03:00
|
|
|
"\\.d\\.ts$",
|
|
|
|
"/benchmark/",
|
2022-07-18 17:47:06 +03:00
|
|
|
"/node_modules/",
|
|
|
|
"src/services/__tests__/models/helpers.ts"
|
2018-10-18 11:27:28 +03:00
|
|
|
],
|
|
|
|
"modulePathIgnorePatterns": [
|
2022-07-18 17:47:06 +03:00
|
|
|
"/benchmark/",
|
|
|
|
"src/services/__tests__/models/helpers.ts"
|
2018-10-18 11:27:28 +03:00
|
|
|
],
|
2022-03-15 14:22:22 +03:00
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
],
|
2018-10-18 11:27:28 +03:00
|
|
|
"moduleNameMapper": {
|
|
|
|
"\\.(css|less)$": "<rootDir>/src/empty.js"
|
|
|
|
}
|
2017-10-12 00:01:37 +03:00
|
|
|
},
|
|
|
|
"prettier": {
|
|
|
|
"singleQuote": true,
|
|
|
|
"trailingComma": "all",
|
|
|
|
"printWidth": 100,
|
2021-11-24 17:11:45 +03:00
|
|
|
"arrowParens": "avoid"
|
2017-04-23 17:43:18 +03:00
|
|
|
}
|
2018-03-23 06:44:41 +03:00
|
|
|
}
|