package.json 7.9 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
3
  "version": "3.44.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
    "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 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
    "hot-e2e-cypress-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-cypress/static",
48
    "hot-e2e-selenium-server": "webpack-dev-server --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 58
    "serve-static": "http-server dist/ -i -a 0.0.0.0 -p 3002",
    "start": "npm-run-all --parallel serve-static open-static"
R
Ron 已提交
59 60
  },
  "dependencies": {
61
    "@babel/runtime-corejs3": "^7.13.6",
62
    "@braintree/sanitize-url": "^5.0.0",
63
    "@kyleshockey/object-assign-deep": "^0.4.2",
64
    "@kyleshockey/xml": "^1.0.2",
65
    "base64-js": "^1.5.1",
66
    "classnames": "^2.2.6",
67
    "css.escape": "1.5.1",
68
    "deep-extend": "0.6.0",
69
    "dompurify": "^2.2.6",
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",
D
Dennis Roche 已提交
92
    "serialize-error": "^2.1.0",
93
    "sha.js": "^2.4.11",
94
    "swagger-client": "^3.13.1",
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.13.0",
101
    "@babel/core": "=7.13.1",
102
    "@babel/plugin-proposal-class-properties": "=7.13.0",
103
    "@babel/plugin-proposal-nullish-coalescing-operator": "=7.13.0",
104
    "@babel/plugin-proposal-optional-chaining": "=7.13.0",
105
    "@babel/plugin-transform-runtime": "=7.13.6",
106
    "@babel/preset-env": "=7.13.5",
107
    "@babel/preset-react": "=7.12.13",
108
    "@babel/register": "=7.13.0",
109 110
    "@commitlint/cli": "^11.0.0",
    "@commitlint/config-conventional": "^11.0.0",
111
    "@jest/globals": "=26.6.2",
112
    "@release-it/conventional-changelog": "=1.1.4",
113
    "autoprefixer": "^9.0.0",
114
    "babel-eslint": "^10.0.0",
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": "^87.0.7",
121
    "copy-webpack-plugin": "^7.0.0",
122
    "cors": "^2.8.5",
123
    "cross-env": "=7.0.3",
124
    "css-loader": "=5.0.2",
125
    "cssnano": "=4.1.10",
126
    "cypress": "=5.6.0",
K
kyle 已提交
127
    "dedent": "^0.7.0",
128
    "deepmerge": "^4.0.0",
129
    "enzyme": "^2.7.1",
R
RVKen 已提交
130
    "eslint": "^4.1.1",
131
    "eslint-plugin-import": "^2.21.1",
132
    "eslint-plugin-jest": "=24.1.5",
133
    "eslint-plugin-mocha": "^8.0.0",
134
    "eslint-plugin-react": "^7.22.0",
135
    "esm": "=3.2.25",
D
Dennis Roche 已提交
136
    "expect": "^1.20.2",
137
    "express": "^4.17.1",
138
    "file-loader": "^6.0.0",
139
    "git-describe": "^4.0.4",
140
    "http-server": "^0.12.3",
141
    "husky": "=4.3.8",
142
    "ignore-assets-webpack-plugin": "^2.0.1",
143
    "inspectpack": "=4.6.1",
144
    "jest": "=26.6.3",
145
    "jsdom": "=16.4.0",
D
Dennis Roche 已提交
146
    "json-loader": "^0.5.7",
147
    "json-merger": "^1.1.2",
148
    "json-server": "=0.16.3",
149
    "less": "^3.11.2",
150
    "license-checker": "^25.0.0",
151
    "lint-staged": "=10.5.4",
152
    "mini-css-extract-plugin": "^1.3.8",
153
    "mocha": "=8.3.0",
154 155
    "nightwatch": "^1.3.6",
    "node-sass": "^4.14.1",
156
    "npm-audit-ci-wrapper": "^3.0.0",
157
    "npm-run-all": "^4.1.5",
158
    "oauth2-server": "^2.4.1",
159
    "open": "^7.4.2",
160
    "postcss": "=8.2.6",
161
    "postcss-loader": "=4.2.0",
162
    "postcss-preset-env": "=6.7.0",
163
    "prettier": "^2.0.0",
164
    "raw-loader": "^4.0.0",
165
    "react-test-renderer": "^15.7.0",
166
    "release-it": "=13.7.1",
167
    "rimraf": "^3.0.0",
168
    "sass-loader": "^7.3.1",
169
    "selenium-server-standalone-jar": "^3.141.5",
170
    "source-map-support": "^0.5.19",
171
    "tachyons-sass": "^4.9.5",
172
    "terser-webpack-plugin": "^4.0.0",
173
    "url-loader": "^4.1.1",
174
    "webpack": "^4.46.0",
175
    "webpack-bundle-size-analyzer": "^3.1.0",
T
Tim Lai 已提交
176
    "webpack-cli": "^3.3.11",
177
    "webpack-dev-server": "^3.11.2",
178
    "webpack-stats-plugin": "=1.0.3"
R
Ron 已提交
179 180 181
  },
  "config": {
    "deps_check_dir": ".deps_check"
182
  }
R
Ron 已提交
183
}