package.json 6.6 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
S
swaggerhub-bot 已提交
3
  "version": "3.23.3",
R
Ron 已提交
4 5 6 7 8 9 10
  "main": "dist/swagger-ui.js",
  "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 已提交
11
    "Kyle Shockey <kyleshockey@gmail.com>",
R
Ron 已提交
12 13 14 15 16
    "Robert Barnwell <robert@robertismy.name>",
    "Sahar Jafari <shr.jafari@gmail.com>"
  ],
  "license": "Apache-2.0",
  "scripts": {
17
    "automated-release": "release-it --config ./release/.release-it.json",
18 19 20 21 22
    "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 已提交
23
    "predev": "npm install",
24
    "dev": "webpack-dev-server --config webpack/dev.babel.js",
R
Ron 已提交
25
    "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",
26
    "deps-size": "webpack -p --config webpack/bundle.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
K
kyle 已提交
27
    "deps-check": "run-s deps-license deps-size",
K
Kyle Shockey 已提交
28 29 30
    "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",
31
    "test": "run-s just-test-in-node e2e-cypress lint-errors",
K
kyle 已提交
32
    "test-in-node": "run-s lint-errors just-test-in-node",
33
    "just-test-in-node": "mocha --require test/setup.js --recursive --compilers js:@babel/register --require source-map-support test/core test/components test/bugs test/docker test/swagger-ui-dist-package test/xss",
34 35 36 37
    "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",
38
    "hot-e2e-cypress-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-cypress/static",
39
    "hot-e2e-selenium-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-selenium/static",
40 41
    "e2e-cypress": "run-p -r hot-e2e-cypress-server mock-api test-e2e-cypress",
    "e2e-selenium": "run-p -r hot-e2e-selenium-server mock-api test-e2e-selenium",
42
    "open-static": "node -e 'require(\"open\")(\"http://localhost:3002\")'",
43 44 45
    "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",
46 47
    "serve-static": "http-server dist/ -i -a 0.0.0.0 -p 3002",
    "start": "npm-run-all --parallel serve-static open-static"
R
Ron 已提交
48 49
  },
  "dependencies": {
50
    "@babel/runtime-corejs2": "^7.5.5",
51
    "@braintree/sanitize-url": "^2.0.2",
52
    "@kyleshockey/js-yaml": "^1.0.1",
53
    "@kyleshockey/object-assign-deep": "^0.4.2",
54
    "@kyleshockey/xml": "^1.0.2",
K
Kyle Shockey 已提交
55
    "base64-js": "^1.2.0",
56
    "classnames": "^2.2.5",
57
    "core-js": "^2.5.1",
58
    "css.escape": "1.5.1",
59
    "deep-extend": "0.6.0",
60
    "dompurify": "^1.0.4",
K
Kyle Shockey 已提交
61
    "ieee754": "^1.1.8",
R
Ron 已提交
62
    "immutable": "^3.x.x",
63
    "js-file-download": "^0.4.1",
64
    "lodash": "^4.17.14",
D
Dennis Roche 已提交
65
    "memoizee": "^0.4.12",
R
RVKen 已提交
66
    "prop-types": "^15.5.10",
M
Mike Gilbode 已提交
67
    "react": "^15.6.2",
K
kyle 已提交
68
    "react-debounce-input": "^3.2.0",
M
Mike Gilbode 已提交
69
    "react-dom": "^15.6.2",
R
Ron 已提交
70
    "react-immutable-proptypes": "2.1.0",
71
    "react-immutable-pure-component": "^1.1.1",
D
Dennis Roche 已提交
72
    "react-inspector": "^2.3.0",
73
    "react-motion": "^0.5.2",
R
Ron 已提交
74 75 76
    "react-redux": "^4.x.x",
    "redux": "^3.x.x",
    "redux-immutable": "3.0.8",
77
    "remarkable": "^1.7.4",
78
    "reselect": "^2.5.4",
D
Dennis Roche 已提交
79
    "serialize-error": "^2.1.0",
S
swaggerhub-bot 已提交
80
    "swagger-client": "^3.9.0",
81
    "url-parse": "^1.4.3",
K
Kyle Shockey 已提交
82
    "xml-but-prettier": "^1.0.1",
D
Dennis Roche 已提交
83
    "zenscroll": "^4.0.2"
R
Ron 已提交
84 85
  },
  "devDependencies": {
86 87 88 89
    "@babel/cli": "^7.0.0",
    "@babel/core": "^7.0.0",
    "@babel/plugin-proposal-class-properties": "^7.5.0",
    "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
90
    "@babel/plugin-proposal-optional-chaining": "^7.2.0",
91 92 93 94
    "@babel/plugin-transform-runtime": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "@babel/preset-react": "^7.0.0",
    "@babel/register": "^7.4.4",
95
    "@release-it/conventional-changelog": "^1.1.0",
D
Dennis Roche 已提交
96
    "autoprefixer": "^8.4.1",
97
    "babel-eslint": "^9.0.0",
98
    "babel-loader": "^8.0.6",
99
    "babel-plugin-module-resolver": "^3.2.0",
100
    "babel-plugin-transform-react-remove-prop-types": "^0.4.13",
101
    "body-parser": "^1.18.3",
102
    "bundlesize": "^0.18.0",
D
Dennis Roche 已提交
103
    "chromedriver": "^2.38.3",
104
    "copy-webpack-plugin": "^5.0.3",
105
    "cors": "^2.8.4",
106
    "css-loader": "^3.0.0",
107
    "cypress": "^3.4.1",
K
kyle 已提交
108
    "dedent": "^0.7.0",
D
Dennis Roche 已提交
109
    "deepmerge": "^2.1.0",
110
    "enzyme": "^2.7.1",
R
RVKen 已提交
111
    "eslint": "^4.1.1",
112
    "eslint-plugin-import": "^2.13.0",
113
    "eslint-plugin-mocha": "^4.11.0",
K
kyle 已提交
114
    "eslint-plugin-react": "^7.10.0",
D
Dennis Roche 已提交
115
    "expect": "^1.20.2",
116
    "express": "^4.16.4",
117
    "file-loader": "^4.0.0",
K
Kyle Shockey 已提交
118
    "git-describe": "^4.0.1",
119
    "http-server": "^0.11.1",
120
    "ignore-assets-webpack-plugin": "^2.0.1",
D
Dennis Roche 已提交
121
    "imports-loader": "^0.8.0",
122
    "jsdom": "^11.10.0",
D
Dennis Roche 已提交
123
    "json-loader": "^0.5.7",
124 125
    "json-merger": "^1.1.1",
    "json-server": "^0.15.0",
D
Dennis Roche 已提交
126 127
    "less": "^3.0.2",
    "license-checker": "^19.0.0",
128
    "mini-css-extract-plugin": "^0.7.0",
D
Dennis Roche 已提交
129
    "mocha": "^5.1.1",
130
    "nightwatch": "^1.1.13",
K
kyle 已提交
131
    "node-sass": "^4.12.0",
132
    "npm-audit-ci-wrapper": "^2.3.0",
D
Dennis Roche 已提交
133
    "npm-run-all": "^4.1.2",
134
    "oauth2-server": "^2.4.1",
135
    "open": "6.0.0",
136 137
    "optimize-css-assets-webpack-plugin": "^5.0.3",
    "postcss-loader": "^3.0.0",
138
    "prettier": "^1.18.2",
139
    "raw-loader": "3.0.0",
140
    "react-test-renderer": "^15.5.4",
141
    "release-it": "^12.3.3",
R
Ron 已提交
142
    "rimraf": "^2.6.0",
143
    "sass-loader": "^7.1.0",
D
Dennis Roche 已提交
144
    "selenium-server-standalone-jar": "3.12.0",
145
    "source-map-support": "^0.5.12",
D
Dennis Roche 已提交
146
    "standard": "^11.0.1",
K
kyle 已提交
147
    "tachyons-sass": "^4.9.2",
148 149 150
    "terser-webpack-plugin": "^1.3.0",
    "url-loader": "^2.0.1",
    "webpack": "^4.35.3",
D
Dennis Roche 已提交
151
    "webpack-bundle-size-analyzer": "^2.5.0",
152 153
    "webpack-cli": "^3.3.5",
    "webpack-dev-server": "^3.7.2"
R
Ron 已提交
154 155 156 157
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
K
kyle 已提交
158 159 160
  "bundlesize": [
    {
      "path": "./dist/swagger-ui-bundle.js",
161
      "maxSize": "1 MB",
K
kyle 已提交
162 163 164
      "compression": "none"
    }
  ]
R
Ron 已提交
165
}