mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
199 lines
6.2 KiB
JSON
199 lines
6.2 KiB
JSON
{
|
|
"name": "redoc",
|
|
"version": "2.0.0-rc.9",
|
|
"description": "ReDoc",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/Redocly/redoc"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9",
|
|
"npm": ">=3.0.0"
|
|
},
|
|
"author": "Roman Hotsiy <gotsijroman@gmail.com>",
|
|
"license": "MIT",
|
|
"keywords": [
|
|
"OpenAPI",
|
|
"OpenAPI Specification",
|
|
"Swagger",
|
|
"JSON-Schema",
|
|
"API",
|
|
"REST",
|
|
"documentation",
|
|
"React.js"
|
|
],
|
|
"main": "bundles/redoc.lib.js",
|
|
"types": "typings/index.d.ts",
|
|
"scripts": {
|
|
"start": "webpack-dev-server --mode=development --env.playground --hot --config demo/webpack.config.ts",
|
|
"start:prod": "webpack-dev-server --env.playground --mode=production --config demo/webpack.config.ts",
|
|
"start:benchmark": "webpack-dev-server --mode=production --env.bench --config demo/webpack.config.ts",
|
|
"test": "npm run lint && npm run unit && npm run bundlesize && npm run license-check",
|
|
"unit": "jest --coverage",
|
|
"e2e": "cypress run",
|
|
"e2e-ci": "cypress run --record",
|
|
"bundlesize": "bundlesize",
|
|
"cy:open": "cypress open",
|
|
"bundle:clean": "rimraf bundles",
|
|
"bundle:standalone": "webpack --env.standalone --mode=production",
|
|
"bundle:lib": "webpack --mode=production && npm run declarations",
|
|
"bundle": "npm run bundle:clean && npm run bundle:lib && npm run bundle:standalone",
|
|
"declarations": "tsc --emitDeclarationOnly -p tsconfig.lib.json && cp -R src/types typings/",
|
|
"stats": "webpack --env.standalone --json --profile --mode=production > stats.json",
|
|
"prettier": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1",
|
|
"lint": "tslint --project tsconfig.json",
|
|
"benchmark": "node ./benchmark/benchmark.js",
|
|
"start:demo": "webpack-dev-server --hot --config demo/webpack.config.ts --mode=development",
|
|
"compile:cli": "tsc custom.d.ts cli/index.ts --target es6 --module commonjs --types yargs",
|
|
"build:demo": "webpack --mode=production --config demo/webpack.config.ts",
|
|
"deploy:demo": "npm run build:demo && deploy-to-gh-pages --update demo/dist",
|
|
"license-check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0;BSD;BSD-2-Clause;BSD-3-Clause' --summary",
|
|
"docker:build": "docker build -f config/docker/Dockerfile -t redoc ."
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.3.4",
|
|
"@babel/plugin-syntax-decorators": "7.2.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
"@babel/plugin-syntax-jsx": "7.2.0",
|
|
"@babel/plugin-syntax-typescript": "7.3.3",
|
|
"@cypress/webpack-preprocessor": "4.0.3",
|
|
"@hot-loader/react-dom": "^16.8.4",
|
|
"@types/chai": "4.1.7",
|
|
"@types/dompurify": "^0.0.32",
|
|
"@types/enzyme": "^3.9.0",
|
|
"@types/enzyme-to-json": "^1.5.3",
|
|
"@types/jest": "^24.0.11",
|
|
"@types/json-pointer": "^1.0.30",
|
|
"@types/lodash": "^4.14.122",
|
|
"@types/lunr": "^2.3.2",
|
|
"@types/mark.js": "^8.11.3",
|
|
"@types/marked": "^0.6.3",
|
|
"@types/prismjs": "^1.9.1",
|
|
"@types/prop-types": "^15.7.0",
|
|
"@types/react": "^16.8.7",
|
|
"@types/react-dom": "^16.8.2",
|
|
"@types/react-hot-loader": "^4.1.0",
|
|
"@types/react-tabs": "^2.3.1",
|
|
"@types/styled-components": "^4.1.12",
|
|
"@types/tapable": "1.0.4",
|
|
"@types/webpack": "^4.4.25",
|
|
"@types/webpack-env": "^1.13.9",
|
|
"@types/yargs": "^12.0.9",
|
|
"babel-loader": "8.0.5",
|
|
"babel-plugin-styled-components": "^1.10.0",
|
|
"beautify-benchmark": "^0.2.4",
|
|
"bundlesize": "^0.17.1",
|
|
"conventional-changelog-cli": "^2.0.12",
|
|
"copy-webpack-plugin": "^5.0.0",
|
|
"core-js": "^2.6.5",
|
|
"coveralls": "^3.0.3",
|
|
"css-loader": "^2.1.1",
|
|
"cypress": "~3.1.5",
|
|
"deploy-to-gh-pages": "^1.3.6",
|
|
"enzyme": "^3.9.0",
|
|
"enzyme-adapter-react-16": "^1.10.0",
|
|
"enzyme-to-json": "^3.3.5",
|
|
"fork-ts-checker-webpack-plugin": "1.0.0",
|
|
"html-webpack-plugin": "^3.1.0",
|
|
"jest": "^24.3.1",
|
|
"license-checker": "^25.0.1",
|
|
"lodash": "^4.17.11",
|
|
"mobx": "^4.3.1",
|
|
"prettier": "^1.16.4",
|
|
"prettier-eslint": "^8.8.2",
|
|
"raf": "^3.4.1",
|
|
"react": "^16.8.4",
|
|
"react-dom": "^16.8.4",
|
|
"rimraf": "^2.6.3",
|
|
"shelljs": "^0.8.3",
|
|
"source-map-loader": "^0.2.4",
|
|
"style-loader": "^0.23.1",
|
|
"styled-components": "^4.1.3",
|
|
"ts-jest": "24.0.0",
|
|
"ts-loader": "5.3.3",
|
|
"ts-node": "^8.0.3",
|
|
"tslint": "^5.13.1",
|
|
"tslint-react": "^3.4.0",
|
|
"typescript": "^3.3.3333",
|
|
"unfetch": "^4.1.0",
|
|
"url-polyfill": "^1.1.5",
|
|
"webpack": "^4.29.6",
|
|
"webpack-cli": "^3.2.3",
|
|
"webpack-dev-server": "^3.2.1",
|
|
"webpack-node-externals": "^1.6.0",
|
|
"workerize-loader": "^1.0.4",
|
|
"yaml-js": "^0.2.3"
|
|
},
|
|
"peerDependencies": {
|
|
"mobx": "^4.2.0 || ^5.0.0",
|
|
"react": "^16.8.4",
|
|
"react-dom": "^16.8.4",
|
|
"styled-components": "^4.1.1",
|
|
"core-js": "^2.6.5"
|
|
},
|
|
"dependencies": {
|
|
"classnames": "^2.2.6",
|
|
"decko": "^1.2.0",
|
|
"dompurify": "^1.0.10",
|
|
"eventemitter3": "^3.0.0",
|
|
"json-pointer": "^0.6.0",
|
|
"json-schema-ref-parser": "^6.1.0",
|
|
"lunr": "2.3.6",
|
|
"mark.js": "^8.11.1",
|
|
"marked": "^0.6.1",
|
|
"memoize-one": "^5.0.0",
|
|
"mobx-react": "^5.4.3",
|
|
"openapi-sampler": "1.0.0-beta.14",
|
|
"perfect-scrollbar": "^1.4.0",
|
|
"polished": "^3.0.3",
|
|
"prismjs": "^1.15.0",
|
|
"prop-types": "^15.7.2",
|
|
"react-dropdown": "^1.6.4",
|
|
"react-hot-loader": "^4.8.0",
|
|
"react-tabs": "^3.0.0",
|
|
"slugify": "^1.3.4",
|
|
"stickyfill": "^1.1.1",
|
|
"swagger2openapi": "^5.2.3",
|
|
"tslib": "^1.9.3",
|
|
"uri-template-lite": "^19.4.0"
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "./bundles/redoc.standalone.js",
|
|
"maxSize": "300 kB"
|
|
}
|
|
],
|
|
"jest": {
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/src/setupTests.ts"
|
|
],
|
|
"preset": "ts-jest",
|
|
"collectCoverageFrom": [
|
|
"src/**/*.{ts,tsx}"
|
|
],
|
|
"coverageReporters": [
|
|
"json",
|
|
"lcov",
|
|
"text-summary"
|
|
],
|
|
"coveragePathIgnorePatterns": [
|
|
"\\.d\\.ts$",
|
|
"/benchmark/",
|
|
"/node_modules/"
|
|
],
|
|
"modulePathIgnorePatterns": [
|
|
"/benchmark/"
|
|
],
|
|
"moduleNameMapper": {
|
|
"\\.(css|less)$": "<rootDir>/src/empty.js"
|
|
}
|
|
},
|
|
"prettier": {
|
|
"singleQuote": true,
|
|
"trailingComma": "all",
|
|
"printWidth": 100,
|
|
"parser": "typescript"
|
|
}
|
|
}
|