package.json 8.1 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
3
  "version": "3.36.2",
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": {
T
Tim Lai 已提交
61
    "@babel/runtime-corejs3": "^7.11.2",
62
    "@braintree/sanitize-url": "^5.0.0",
63
    "@kyleshockey/object-assign-deep": "^0.4.2",
64
    "@kyleshockey/xml": "^1.0.2",
K
Kyle Shockey 已提交
65
    "base64-js": "^1.2.0",
66
    "classnames": "^2.2.6",
T
Tim Lai 已提交
67
    "core-js": "^2.6.11",
68
    "css.escape": "1.5.1",
69
    "deep-extend": "0.6.0",
70
    "dompurify": "^2.0.7",
71
    "ieee754": "^1.1.13",
R
Ron 已提交
72
    "immutable": "^3.x.x",
73
    "js-file-download": "^0.4.1",
74
    "js-yaml": "^3.13.1",
75
    "lodash": "^4.17.19",
D
Dennis Roche 已提交
76
    "memoizee": "^0.4.12",
77
    "prop-types": "^15.7.2",
78
    "randombytes": "^2.1.0",
M
Mike Gilbode 已提交
79
    "react": "^15.6.2",
80
    "react-copy-to-clipboard": "5.0.1",
K
kyle 已提交
81
    "react-debounce-input": "^3.2.0",
M
Mike Gilbode 已提交
82
    "react-dom": "^15.6.2",
R
Ron 已提交
83
    "react-immutable-proptypes": "2.1.0",
84
    "react-immutable-pure-component": "^1.1.1",
D
Dennis Roche 已提交
85
    "react-inspector": "^2.3.0",
86
    "react-motion": "^0.5.2",
87
    "react-redux": "=4.4.10",
88
    "react-syntax-highlighter": "=13.5.0",
89
    "redux": "=3.7.2",
90
    "redux-immutable": "3.1.0",
T
Tim Lai 已提交
91
    "remarkable": "^2.0.1",
92
    "reselect": "^4.0.0",
D
Dennis Roche 已提交
93
    "serialize-error": "^2.1.0",
94
    "sha.js": "^2.4.11",
95
    "swagger-client": "=3.12.0",
96
    "url-parse": "^1.4.7",
K
Kyle Shockey 已提交
97
    "xml-but-prettier": "^1.0.1",
D
Dennis Roche 已提交
98
    "zenscroll": "^4.0.2"
R
Ron 已提交
99 100
  },
  "devDependencies": {
101
    "@babel/cli": "=7.12.1",
102
    "@babel/core": "=7.12.3",
103 104 105 106 107
    "@babel/plugin-proposal-class-properties": "=7.12.1",
    "@babel/plugin-proposal-nullish-coalescing-operator": "=7.12.1",
    "@babel/plugin-proposal-optional-chaining": "=7.12.1",
    "@babel/plugin-transform-runtime": "=7.12.1",
    "@babel/preset-env": "=7.12.1",
108
    "@babel/preset-react": "=7.12.5",
109
    "@babel/register": "=7.12.1",
110 111
    "@commitlint/cli": "^11.0.0",
    "@commitlint/config-conventional": "^11.0.0",
112
    "@jest/globals": "=26.6.2",
113
    "@release-it/conventional-changelog": "=1.1.4",
114
    "autoprefixer": "^9.0.0",
115
    "babel-eslint": "^10.0.0",
116
    "babel-loader": "^8.1.0",
117
    "babel-plugin-lodash": "=3.3.4",
118 119
    "babel-plugin-module-resolver": "=4.0.0",
    "babel-plugin-transform-react-remove-prop-types": "=0.4.24",
120
    "body-parser": "^1.19.0",
121
    "bundlesize": "^0.18.0",
122
    "chromedriver": "^86.0.0",
123
    "copy-webpack-plugin": "^6.0.0",
124
    "cors": "^2.8.5",
125
    "cross-env": "=7.0.2",
126
    "css-loader": "^4.0.0",
127
    "cssnano": "=4.1.10",
128
    "cypress": "=5.5.0",
K
kyle 已提交
129
    "dedent": "^0.7.0",
130
    "deepmerge": "^4.0.0",
131
    "enzyme": "^2.7.1",
R
RVKen 已提交
132
    "eslint": "^4.1.1",
133
    "eslint-plugin-import": "^2.21.1",
134
    "eslint-plugin-jest": "=24.1.0",
135
    "eslint-plugin-mocha": "^8.0.0",
136
    "eslint-plugin-react": "^7.20.0",
137
    "esm": "=3.2.25",
D
Dennis Roche 已提交
138
    "expect": "^1.20.2",
139
    "express": "^4.17.1",
140
    "file-loader": "^6.0.0",
141
    "git-describe": "^4.0.4",
142
    "http-server": "^0.12.3",
143
    "husky": "=4.3.0",
144
    "ignore-assets-webpack-plugin": "^2.0.1",
145
    "inspectpack": "=4.5.2",
146
    "jest": "=25.5.4",
147
    "jsdom": "=15.2.1",
D
Dennis Roche 已提交
148
    "json-loader": "^0.5.7",
149
    "json-merger": "^1.1.2",
150
    "json-server": "^0.15.0",
151
    "less": "^3.11.2",
152
    "license-checker": "^25.0.0",
153
    "lint-staged": "=10.5.1",
154
    "mini-css-extract-plugin": "^1.0.0",
T
Timothy Lai 已提交
155
    "mocha": "=7.2.0",
156 157
    "nightwatch": "^1.3.6",
    "node-sass": "^4.14.1",
158
    "npm-audit-ci-wrapper": "^3.0.0",
159
    "npm-run-all": "^4.1.5",
160
    "oauth2-server": "^2.4.1",
161
    "open": "^7.0.4",
162
    "postcss-loader": "^3.0.0",
163
    "postcss-preset-env": "=6.7.0",
164
    "prettier": "^2.0.0",
165
    "raw-loader": "^4.0.0",
166
    "react-test-renderer": "^15.5.4",
167
    "release-it": "=13.6.5",
168
    "rimraf": "^3.0.0",
169
    "sass-loader": "^7.1.0",
170
    "selenium-server-standalone-jar": "^3.141.5",
171
    "source-map-support": "^0.5.19",
D
Dennis Roche 已提交
172
    "standard": "^11.0.1",
173
    "tachyons-sass": "^4.9.5",
174
    "terser-webpack-plugin": "^4.0.0",
175 176
    "url-loader": "^2.3.0",
    "webpack": "^4.43.0",
177
    "webpack-bundle-size-analyzer": "^3.1.0",
T
Tim Lai 已提交
178
    "webpack-cli": "^3.3.11",
179
    "webpack-dev-server": "^3.11.0",
180
    "webpack-stats-plugin": "=1.0.2"
R
Ron 已提交
181 182 183 184
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
K
kyle 已提交
185 186 187
  "bundlesize": [
    {
      "path": "./dist/swagger-ui-bundle.js",
188
      "maxSize": "1 MB",
K
kyle 已提交
189 190 191
      "compression": "none"
    }
  ]
R
Ron 已提交
192
}