package.json 7.9 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
3
  "version": "3.50.0",
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 25 26
    "build-bundle": "webpack --color --config webpack/bundle.babel.js",
    "build-core": "webpack --color --config webpack/core.babel.js",
    "build-standalone": "webpack --color --config webpack/standalone.babel.js",
    "build-stylesheets": "webpack --color --config webpack/stylesheets.babel.js",
    "build:es:bundle": "webpack --color --config webpack/es-bundle.babel.js",
    "build:es:bundle:core": "webpack --color --config webpack/es-bundle-core.babel.js",
R
Ron 已提交
27
    "predev": "npm install",
28
    "dev": "webpack serve --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 --ext \".js,.jsx\" src test",
    "lint-errors": "eslint --quiet --ext \".js,.jsx\" src test",
    "lint-fix": "eslint --ext \".js,.jsx\" src test --fix",
35
    "test": "run-s just-test-in-node test:unit-jest 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
    "test:unit-jest": "cross-env BABEL_ENV=test jest --config ./config/jest/jest.unit.config.js",
45 46
    "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",
47 48
    "hot-e2e-cypress-server": "webpack serve --config webpack/dev-e2e.babel.js --content-base test/e2e-cypress/static",
    "hot-e2e-selenium-server": "webpack serve --config webpack/dev-e2e.babel.js --content-base test/e2e-selenium/static",
49
    "e2e-cypress": "run-p -r hot-e2e-cypress-server mock-api test-e2e-cypress",
50
    "dev-e2e-cypress-open": "cypress open",
51
    "dev-e2e-cypress": "run-p -r hot-e2e-cypress-server mock-api dev-e2e-cypress-open",
52
    "e2e-selenium": "run-p -r hot-e2e-selenium-server mock-api test-e2e-selenium",
53
    "open-static": "node -e \"require('open')('http://localhost:3002')\"",
54 55 56
    "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",
57
    "serve-static": "ws -d dist/ --hostname 0.0.0.0 -p 3002",
58
    "start": "npm-run-all --parallel serve-static open-static"
R
Ron 已提交
59 60
  },
  "dependencies": {
61
    "@babel/runtime-corejs3": "^7.14.0",
62
    "@braintree/sanitize-url": "^5.0.1",
63
    "@kyleshockey/object-assign-deep": "^0.4.2",
64
    "@kyleshockey/xml": "^1.0.2",
65
    "base64-js": "^1.5.1",
66
    "classnames": "^2.3.1",
67
    "css.escape": "1.5.1",
68
    "deep-extend": "0.6.0",
69
    "dompurify": "^2.2.9",
70
    "ieee754": "^1.2.1",
R
Ron 已提交
71
    "immutable": "^3.x.x",
72
    "js-file-download": "^0.4.12",
73
    "js-yaml": "^3.13.1",
74
    "lodash": "^4.17.21",
75
    "memoizee": "^0.4.15",
76
    "prop-types": "^15.7.2",
77
    "randombytes": "^2.1.0",
T
Tim Lai 已提交
78
    "react": "=15.7.0",
79
    "react-copy-to-clipboard": "5.0.3",
80
    "react-debounce-input": "^3.2.3",
T
Tim Lai 已提交
81
    "react-dom": "=15.7.0",
82
    "react-immutable-proptypes": "2.2.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": "=4.4.10",
87
    "react-syntax-highlighter": "^15.4.3",
88
    "redux": "=3.7.2",
89
    "redux-immutable": "3.1.0",
T
Tim Lai 已提交
90
    "remarkable": "^2.0.1",
91
    "reselect": "^4.0.0",
92
    "serialize-error": "^8.1.0",
93
    "sha.js": "^2.4.11",
94
    "swagger-client": "^3.13.5",
95
    "url-parse": "^1.5.1",
K
Kyle Shockey 已提交
96
    "xml-but-prettier": "^1.0.1",
D
Dennis Roche 已提交
97
    "zenscroll": "^4.0.2"
R
Ron 已提交
98 99
  },
  "devDependencies": {
100
    "@babel/cli": "=7.14.3",
101
    "@babel/core": "=7.14.2",
102
    "@babel/eslint-parser": "=7.14.3",
103
    "@babel/plugin-proposal-class-properties": "=7.13.0",
104
    "@babel/plugin-proposal-nullish-coalescing-operator": "=7.14.2",
105
    "@babel/plugin-proposal-optional-chaining": "=7.14.2",
106
    "@babel/plugin-transform-runtime": "=7.14.3",
107
    "@babel/preset-env": "=7.14.2",
108
    "@babel/preset-react": "=7.13.13",
109
    "@babel/register": "=7.13.16",
110
    "@commitlint/cli": "^12.1.4",
111
    "@commitlint/config-conventional": "^12.1.4",
112
    "@jest/globals": "=26.6.2",
113
    "@release-it/conventional-changelog": "=1.1.4",
114
    "autoprefixer": "^10.2.6",
115
    "babel-loader": "^8.1.0",
116
    "babel-plugin-lodash": "=3.3.4",
117
    "babel-plugin-module-resolver": "=4.1.0",
118
    "babel-plugin-transform-react-remove-prop-types": "=0.4.24",
119
    "body-parser": "^1.19.0",
120
    "chromedriver": "^90.0.1",
121
    "cors": "^2.8.5",
122
    "cross-env": "=7.0.3",
123
    "css-loader": "=5.2.6",
124
    "cssnano": "=5.0.4",
125
    "cypress": "^6.7.1",
K
kyle 已提交
126
    "dedent": "^0.7.0",
127
    "deepmerge": "^4.0.0",
128
    "enzyme": "^2.7.1",
129
    "eslint": "^7.27.0",
130
    "eslint-plugin-import": "^2.23.3",
131
    "eslint-plugin-jest": "^24.3.6",
132
    "eslint-plugin-mocha": "^8.0.8",
133
    "eslint-plugin-react": "^7.23.2",
134
    "esm": "=3.2.25",
D
Dennis Roche 已提交
135
    "expect": "^1.20.2",
136
    "express": "^4.17.1",
137
    "file-loader": "^6.0.0",
138
    "git-describe": "^4.0.4",
139
    "husky": "=6.0.0",
140
    "ignore-assets-webpack-plugin": "^2.0.1",
141
    "inspectpack": "=4.7.1",
142
    "jest": "=27.0.4",
143
    "jsdom": "=16.6.0",
D
Dennis Roche 已提交
144
    "json-loader": "^0.5.7",
145
    "json-merger": "^1.1.6",
146
    "json-server": "=0.16.3",
147
    "less": "^4.1.1",
148
    "license-checker": "^25.0.0",
149
    "lint-staged": "=10.5.4",
150
    "local-web-server": "^4.2.1",
151
    "mini-css-extract-plugin": "^1.6.0",
152
    "mocha": "=8.4.0",
153
    "nightwatch": "^1.6.4",
154
    "node-sass": "^4.14.1",
155
    "npm-audit-ci-wrapper": "^3.0.2",
156
    "npm-run-all": "^4.1.5",
157
    "oauth2-server": "^2.4.1",
158
    "open": "^8.2.0",
159
    "postcss": "=8.2.15",
160
    "postcss-loader": "=4.3.0",
161
    "postcss-preset-env": "=6.7.0",
162
    "prettier": "^2.3.0",
163
    "raw-loader": "^4.0.0",
164
    "react-test-renderer": "^15.7.0",
165
    "release-it": "=13.7.1",
166
    "rimraf": "^3.0.0",
167
    "sass-loader": "^9.0.3",
168
    "selenium-server-standalone-jar": "^3.141.5",
169
    "source-map-support": "^0.5.19",
170
    "tachyons-sass": "^4.9.5",
171
    "terser-webpack-plugin": "^4.2.3",
172
    "url-loader": "^4.1.1",
173
    "webpack": "^5.39.1",
174
    "webpack-bundle-size-analyzer": "^3.1.0",
175
    "webpack-cli": "^4.7.0",
176
    "webpack-dev-server": "^3.11.2",
177
    "webpack-stats-plugin": "=1.0.3"
R
Ron 已提交
178 179 180
  },
  "config": {
    "deps_check_dir": ".deps_check"
181
  }
R
Ron 已提交
182
}