package.json 6.8 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
S
swaggerhub-bot 已提交
3
  "version": "3.26.0",
R
Ron 已提交
4
  "main": "dist/swagger-ui.js",
5
  "homepage": "https://github.com/swagger-api/swagger-ui",
R
Ron 已提交
6 7 8 9 10 11
  "repository": "git@github.com:swagger-api/swagger-ui.git",
  "contributors": [
    "(in alphabetical order)",
    "Anna Bodnia <anna.bodnia@gmail.com>",
    "Buu Nguyen <buunguyen@gmail.com>",
    "Josh Ponelat <jponelat@gmail.com>",
K
kyle 已提交
12
    "Kyle Shockey <kyleshockey@gmail.com>",
R
Ron 已提交
13 14 15 16 17
    "Robert Barnwell <robert@robertismy.name>",
    "Sahar Jafari <shr.jafari@gmail.com>"
  ],
  "license": "Apache-2.0",
  "scripts": {
18
    "automated-release": "release-it -VV --config ./release/.release-it.json",
19 20 21 22 23
    "build": "run-p --aggregate-output build-core build-bundle build-standalone build-stylesheets",
    "build-bundle": "webpack --colors --config webpack/bundle.babel.js",
    "build-core": "webpack --colors --config webpack/core.babel.js",
    "build-standalone": "webpack --colors --config webpack/standalone.babel.js",
    "build-stylesheets": "webpack --colors --config webpack/stylesheets.babel.js",
R
Ron 已提交
24
    "predev": "npm install",
25
    "dev": "webpack-dev-server --config webpack/dev.babel.js",
R
Ron 已提交
26
    "deps-license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv",
27
    "deps-size": "webpack -p --config webpack/bundle.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
K
kyle 已提交
28
    "deps-check": "run-s deps-license deps-size",
29 30 31
    "lint": "eslint --cache --ext \".js,.jsx\" src test",
    "lint-errors": "eslint --cache --quiet --ext \".js,.jsx\" src test",
    "lint-fix": "eslint --cache --ext \".js,.jsx\" src test --fix",
32
    "test": "run-s just-test-in-node e2e-cypress lint-errors",
K
kyle 已提交
33
    "test-in-node": "run-s lint-errors just-test-in-node",
34
    "just-test-in-node": "mocha --require test/mocha/setup.js --recursive --compilers js:@babel/register --require source-map-support \"test/mocha/**/*.{js,jsx}\"",
35 36 37 38
    "test-e2e-cypress": "cypress run",
    "test-e2e-selenium": "sleep 3 && nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json",
    "e2e-initial-render": "nightwatch test/e2e-selenium/scenarios/ --config test/e2e-selenium/nightwatch.json --group initial-render",
    "mock-api": "json-server --watch test/e2e-selenium/db.json --port 3204",
39
    "hot-e2e-cypress-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-cypress/static",
40
    "hot-e2e-selenium-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-selenium/static",
41
    "e2e-cypress": "run-p -r hot-e2e-cypress-server mock-api test-e2e-cypress",
42
    "dev-e2e-cypress-open": "cypress open",
43
    "dev-e2e-cypress": "run-p -r hot-e2e-cypress-server mock-api dev-e2e-cypress-open",
44
    "e2e-selenium": "run-p -r hot-e2e-selenium-server mock-api test-e2e-selenium",
45
    "open-static": "node -e \"require('open')('http://localhost:3002')\"",
46 47 48
    "security-audit": "run-s -sc security-audit:all security-audit:prod",
    "security-audit:prod": "npm-audit-ci-wrapper -p -t low",
    "security-audit:all": "npm-audit-ci-wrapper -t moderate",
49 50
    "serve-static": "http-server dist/ -i -a 0.0.0.0 -p 3002",
    "start": "npm-run-all --parallel serve-static open-static"
R
Ron 已提交
51 52
  },
  "dependencies": {
53
    "@babel/runtime-corejs2": "^7.5.5",
54
    "@braintree/sanitize-url": "^4.0.0",
55
    "@kyleshockey/object-assign-deep": "^0.4.2",
56
    "@kyleshockey/xml": "^1.0.2",
K
Kyle Shockey 已提交
57
    "base64-js": "^1.2.0",
58
    "classnames": "^2.2.6",
59
    "core-js": "^2.5.1",
60
    "css.escape": "1.5.1",
61
    "deep-extend": "0.6.0",
62
    "dompurify": "^2.0.7",
63
    "ieee754": "^1.1.13",
R
Ron 已提交
64
    "immutable": "^3.x.x",
65
    "js-file-download": "^0.4.1",
66
    "js-yaml": "^3.13.1",
67
    "lodash": "^4.17.15",
D
Dennis Roche 已提交
68
    "memoizee": "^0.4.12",
69
    "prop-types": "^15.7.2",
70
    "randombytes": "^2.1.0",
M
Mike Gilbode 已提交
71
    "react": "^15.6.2",
K
kyle 已提交
72
    "react-debounce-input": "^3.2.0",
M
Mike Gilbode 已提交
73
    "react-dom": "^15.6.2",
R
Ron 已提交
74
    "react-immutable-proptypes": "2.1.0",
75
    "react-immutable-pure-component": "^1.1.1",
D
Dennis Roche 已提交
76
    "react-inspector": "^2.3.0",
77
    "react-motion": "^0.5.2",
R
Ron 已提交
78
    "react-redux": "^4.x.x",
79 80
    "redux": "^3.x.x",
    "redux-immutable": "3.1.0",
T
Tim Lai 已提交
81
    "remarkable": "^2.0.1",
82
    "reselect": "^4.0.0",
D
Dennis Roche 已提交
83
    "serialize-error": "^2.1.0",
84
    "sha.js": "^2.4.11",
85
    "swagger-client": "^3.10.6",
86
    "url-parse": "^1.4.7",
K
Kyle Shockey 已提交
87
    "xml-but-prettier": "^1.0.1",
D
Dennis Roche 已提交
88
    "zenscroll": "^4.0.2"
R
Ron 已提交
89 90
  },
  "devDependencies": {
91 92 93 94 95 96 97 98 99
    "@babel/cli": "^7.10.1",
    "@babel/core": "^7.10.2",
    "@babel/plugin-proposal-class-properties": "^7.10.1",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1",
    "@babel/plugin-proposal-optional-chaining": "^7.10.1",
    "@babel/plugin-transform-runtime": "^7.10.1",
    "@babel/preset-env": "^7.10.2",
    "@babel/preset-react": "^7.10.1",
    "@babel/register": "^7.10.1",
100
    "@release-it/conventional-changelog": "^1.1.0",
101
    "autoprefixer": "^9.0.0",
102
    "babel-eslint": "^10.0.0",
103
    "babel-loader": "^8.1.0",
104
    "babel-plugin-module-resolver": "^4.0.0",
105
    "babel-plugin-transform-react-remove-prop-types": "^0.4.13",
106
    "body-parser": "^1.19.0",
107
    "bundlesize": "^0.18.0",
108
    "chromedriver": "^80.0.2",
109
    "copy-webpack-plugin": "^6.0.0",
110
    "cors": "^2.8.5",
111
    "css-loader": "^3.5.3",
112
    "cypress": "^3.8.3",
K
kyle 已提交
113
    "dedent": "^0.7.0",
114
    "deepmerge": "^4.0.0",
115
    "enzyme": "^2.7.1",
R
RVKen 已提交
116
    "eslint": "^4.1.1",
117 118
    "eslint-plugin-import": "^2.21.1",
    "eslint-plugin-mocha": "^6.3.0",
119
    "eslint-plugin-react": "^7.20.0",
D
Dennis Roche 已提交
120
    "expect": "^1.20.2",
121
    "express": "^4.17.1",
122
    "file-loader": "^6.0.0",
123
    "git-describe": "^4.0.4",
124
    "http-server": "^0.12.3",
125
    "ignore-assets-webpack-plugin": "^2.0.1",
D
Dennis Roche 已提交
126
    "imports-loader": "^0.8.0",
127
    "jsdom": "^11.10.0",
D
Dennis Roche 已提交
128
    "json-loader": "^0.5.7",
129
    "json-merger": "^1.1.2",
130
    "json-server": "^0.15.0",
131
    "less": "^3.11.2",
132
    "license-checker": "^25.0.0",
R
Renovate Bot 已提交
133
    "mini-css-extract-plugin": "^0.9.0",
134
    "mocha": "^5.2.0",
135 136 137
    "nightwatch": "^1.3.6",
    "node-sass": "^4.14.1",
    "npm-audit-ci-wrapper": "^2.5.4",
138
    "npm-run-all": "^4.1.5",
139
    "oauth2-server": "^2.4.1",
140
    "open": "^7.0.4",
141 142
    "optimize-css-assets-webpack-plugin": "^5.0.3",
    "postcss-loader": "^3.0.0",
143
    "prettier": "^1.19.1",
144
    "raw-loader": "^4.0.0",
145
    "react-test-renderer": "^15.5.4",
146
    "release-it": "^12.4.3",
147
    "rimraf": "^2.7.1",
148
    "sass-loader": "^7.1.0",
149
    "selenium-server-standalone-jar": "^3.141.5",
150
    "source-map-support": "^0.5.19",
D
Dennis Roche 已提交
151
    "standard": "^11.0.1",
152
    "tachyons-sass": "^4.9.5",
153 154 155
    "terser-webpack-plugin": "^1.4.4",
    "url-loader": "^2.3.0",
    "webpack": "^4.43.0",
156
    "webpack-bundle-size-analyzer": "^3.1.0",
T
Tim Lai 已提交
157 158
    "webpack-cli": "^3.3.11",
    "webpack-dev-server": "^3.11.0"
R
Ron 已提交
159 160 161 162
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
K
kyle 已提交
163 164 165
  "bundlesize": [
    {
      "path": "./dist/swagger-ui-bundle.js",
166
      "maxSize": "1 MB",
K
kyle 已提交
167 168 169
      "compression": "none"
    }
  ]
R
Ron 已提交
170
}