package.json 6.6 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
S
swaggerhub-bot 已提交
3
  "version": "3.23.0",
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",
K
Kyle Shockey 已提交
34
    "just-check-coverage": "nyc npm run just-test-in-node",
35 36 37 38
    "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",
39 40
    "hot-e2e-cypress-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-cypress/static",
    "hot-e2e-selenium-server": "webpack-dev-server --config webpack/dev-e2e.babel.js --content-base test/e2e-selenium/helpers",
41 42
    "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",
43 44 45
    "open-static": "node -e 'require(\"open\")(\"http://localhost:3002\")'",
    "serve-static": "http-server dist/ -i -a 0.0.0.0 -p 3002",
    "start": "npm-run-all --parallel serve-static open-static"
R
Ron 已提交
46 47
  },
  "dependencies": {
48
    "@braintree/sanitize-url": "^2.0.2",
49
    "@kyleshockey/js-yaml": "^1.0.1",
50
    "@kyleshockey/object-assign-deep": "^0.4.2",
51
    "@kyleshockey/xml": "^1.0.2",
K
Kyle Shockey 已提交
52
    "base64-js": "^1.2.0",
53
    "classnames": "^2.2.5",
54
    "core-js": "^2.5.1",
55
    "css.escape": "1.5.1",
56
    "deep-extend": "0.5.1",
57
    "dompurify": "^1.0.4",
K
Kyle Shockey 已提交
58
    "ieee754": "^1.1.8",
R
Ron 已提交
59
    "immutable": "^3.x.x",
60
    "js-file-download": "^0.4.1",
61
    "lodash": "^4.17.11",
D
Dennis Roche 已提交
62
    "memoizee": "^0.4.12",
R
RVKen 已提交
63
    "prop-types": "^15.5.10",
M
Mike Gilbode 已提交
64
    "react": "^15.6.2",
K
kyle 已提交
65
    "react-debounce-input": "^3.2.0",
M
Mike Gilbode 已提交
66
    "react-dom": "^15.6.2",
R
Ron 已提交
67
    "react-immutable-proptypes": "2.1.0",
68
    "react-immutable-pure-component": "^1.1.1",
D
Dennis Roche 已提交
69
    "react-inspector": "^2.3.0",
70
    "react-motion": "^0.5.2",
R
Ron 已提交
71 72 73
    "react-redux": "^4.x.x",
    "redux": "^3.x.x",
    "redux-immutable": "3.0.8",
O
Owen Conti 已提交
74
    "remarkable": "^1.7.1",
75
    "reselect": "^2.5.4",
D
Dennis Roche 已提交
76
    "serialize-error": "^2.1.0",
S
swaggerhub-bot 已提交
77
    "swagger-client": "^3.9.0",
78
    "url-parse": "^1.4.3",
K
Kyle Shockey 已提交
79
    "xml-but-prettier": "^1.0.1",
D
Dennis Roche 已提交
80
    "zenscroll": "^4.0.2"
R
Ron 已提交
81 82
  },
  "devDependencies": {
83 84 85 86 87 88 89 90 91 92
    "@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",
    "@babel/plugin-proposal-optional-chaining": "^7.0.0",
    "@babel/plugin-transform-runtime": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "@babel/preset-react": "^7.0.0",
    "@babel/register": "^7.4.4",
    "@babel/runtime-corejs2": "^7.0.0",
93
    "@release-it/conventional-changelog": "^1.0.0",
D
Dennis Roche 已提交
94
    "autoprefixer": "^8.4.1",
95
    "babel-eslint": "^9.0.0",
96
    "babel-loader": "^8.0.6",
97
    "babel-plugin-module-resolver": "^3.2.0",
98
    "babel-plugin-transform-react-remove-prop-types": "^0.4.13",
99
    "body-parser": "^1.18.3",
K
kyle 已提交
100
    "bundlesize": "^0.17.2",
D
Dennis Roche 已提交
101
    "chromedriver": "^2.38.3",
102
    "copy-webpack-plugin": "^5.0.3",
103
    "cors": "^2.8.4",
104
    "css-loader": "^3.0.0",
105
    "cypress": "^3.3.1",
K
kyle 已提交
106
    "dedent": "^0.7.0",
D
Dennis Roche 已提交
107
    "deepmerge": "^2.1.0",
108
    "enzyme": "^2.7.1",
R
RVKen 已提交
109
    "eslint": "^4.1.1",
110
    "eslint-plugin-import": "^2.13.0",
111
    "eslint-plugin-mocha": "^4.11.0",
K
kyle 已提交
112
    "eslint-plugin-react": "^7.10.0",
D
Dennis Roche 已提交
113
    "expect": "^1.20.2",
114
    "express": "^4.16.4",
115
    "file-loader": "^4.0.0",
K
Kyle Shockey 已提交
116
    "git-describe": "^4.0.1",
117
    "http-server": "^0.11.1",
118
    "ignore-assets-webpack-plugin": "^2.0.1",
D
Dennis Roche 已提交
119
    "imports-loader": "^0.8.0",
120
    "jsdom": "^11.10.0",
D
Dennis Roche 已提交
121
    "json-loader": "^0.5.7",
122
    "json-merger": "^1.1.0",
D
Dennis Roche 已提交
123 124 125
    "json-server": "^0.12.2",
    "less": "^3.0.2",
    "license-checker": "^19.0.0",
126
    "mini-css-extract-plugin": "^0.7.0",
D
Dennis Roche 已提交
127
    "mocha": "^5.1.1",
R
RVKen 已提交
128
    "nightwatch": "^0.9.16",
K
kyle 已提交
129
    "node-sass": "^4.12.0",
D
Dennis Roche 已提交
130
    "npm-run-all": "^4.1.2",
K
Kyle Shockey 已提交
131
    "nyc": "^11.3.0",
132
    "oauth2-server": "^2.4.1",
133
    "open": "6.0.0",
134 135
    "optimize-css-assets-webpack-plugin": "^5.0.3",
    "postcss-loader": "^3.0.0",
136
    "prettier": "^1.18.2",
137
    "raw-loader": "3.0.0",
138
    "react-test-renderer": "^15.5.4",
139
    "release-it": "^11.0.0",
R
Ron 已提交
140
    "rimraf": "^2.6.0",
141
    "sass-loader": "^7.1.0",
D
Dennis Roche 已提交
142
    "selenium-server-standalone-jar": "3.12.0",
143
    "source-map-support": "^0.5.12",
D
Dennis Roche 已提交
144
    "standard": "^11.0.1",
K
kyle 已提交
145
    "tachyons-sass": "^4.9.2",
146 147 148
    "terser-webpack-plugin": "^1.3.0",
    "url-loader": "^2.0.1",
    "webpack": "^4.35.3",
D
Dennis Roche 已提交
149
    "webpack-bundle-size-analyzer": "^2.5.0",
150 151
    "webpack-cli": "^3.3.5",
    "webpack-dev-server": "^3.7.2"
R
Ron 已提交
152 153 154 155
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
K
Kyle Shockey 已提交
156 157
  "nyc": {
    "all": true,
K
Kyle Shockey 已提交
158 159 160
    "include": [
      "**/src/core/plugins/**.js"
    ]
K
kyle 已提交
161 162 163 164
  },
  "bundlesize": [
    {
      "path": "./dist/swagger-ui-bundle.js",
165
      "maxSize": "1 MB",
K
kyle 已提交
166 167 168
      "compression": "none"
    }
  ]
R
Ron 已提交
169
}