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