package.json 6.1 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
K
kyle 已提交
3
  "version": "3.13.2",
R
Ron 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  "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>",
    "Kyle Shockey <kyleshockey1@gmail.com>",
    "Robert Barnwell <robert@robertismy.name>",
    "Sahar Jafari <shr.jafari@gmail.com>"
  ],
  "license": "Apache-2.0",
  "scripts": {
    "build": "npm run build-core && npm run build-bundle && npm run build-standalone",
    "build-bundle": "webpack --config webpack-dist-bundle.config.js --colors",
    "build-core": "webpack --config webpack-dist.config.js --colors",
    "build-standalone": "webpack --config webpack-dist-standalone.config.js --colors",
    "predev": "npm install",
K
kyle 已提交
22
    "dev": "npm-run-all --parallel hot-server",
R
Ron 已提交
23
    "watch": "webpack --config webpack-watch.config.js --watch --progress",
K
Kyle Shockey 已提交
24
    "hot-server": "webpack-dev-server --host 0.0.0.0 --config webpack-hot-dev-server.config.js --inline --hot --progress --content-base dev-helpers/",
R
Ron 已提交
25 26 27
    "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",
    "deps-size": "webpack -p --config webpack.check.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
    "deps-check": "npm run deps-license && npm run 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",
K
Kyle Shockey 已提交
31 32 33
    "test": "npm run lint-errors && npm run just-test-in-node",
    "test-in-node": "npm run lint-errors && npm run just-test-in-node",
    "just-test": "karma start --config karma.conf.js",
34
    "just-test-in-node": "mocha --recursive --compilers js:babel-core/register test/core test/components test/bugs test/swagger-ui-dist-package test/xss",
K
Kyle Shockey 已提交
35
    "just-check-coverage": "nyc npm run just-test-in-node",
K
Kenny 已提交
36
    "test-e2e": "sleep 3 && nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json",
K
Kenny 已提交
37
    "e2e-initial-render": "nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json --group initial-render",
38
    "mock-api": "json-server --watch test/e2e/db.json --port 3204",
39
    "hot-e2e-server": "webpack-dev-server --port 3230 --content-base test/e2e/helpers --host 0.0.0.0 --config webpack-hot-dev-server.config.js --inline --hot --progress",
K
kyle 已提交
40
    "e2e": "npm-run-all --parallel -r hot-e2e-server mock-api test-e2e"
R
Ron 已提交
41 42
  },
  "dependencies": {
43
    "@braintree/sanitize-url": "^2.0.2",
K
Kyle Shockey 已提交
44
    "base64-js": "^1.2.0",
R
Ron 已提交
45
    "brace": "0.7.0",
46
    "classnames": "^2.2.5",
O
Owen Conti 已提交
47
    "commonmark": "^0.28.1",
48
    "core-js": "^2.5.1",
49
    "css.escape": "1.5.1",
R
Ron 已提交
50 51 52
    "deep-extend": "0.4.1",
    "expect": "1.20.2",
    "getbase": "^2.8.2",
K
Kyle Shockey 已提交
53
    "ieee754": "^1.1.8",
R
Ron 已提交
54 55
    "immutable": "^3.x.x",
    "js-yaml": "^3.5.5",
56
    "lodash": "4.17.5",
R
Ron 已提交
57 58 59
    "matcher": "^0.1.2",
    "memoizee": "0.4.1",
    "promise-worker": "^1.1.1",
R
RVKen 已提交
60
    "prop-types": "^15.5.10",
M
Mike Gilbode 已提交
61
    "react": "^15.6.2",
62
    "react-addons-perf": "^15.4.0",
R
Ron 已提交
63
    "react-addons-shallow-compare": "0.14.8",
M
Mike Gilbode 已提交
64
    "react-addons-test-utils": "^15.6.2",
65
    "react-collapse": "^4.0.3",
K
kyle 已提交
66
    "react-debounce-input": "^3.2.0",
M
Mike Gilbode 已提交
67
    "react-dom": "^15.6.2",
R
Ron 已提交
68 69 70
    "react-height": "^2.0.0",
    "react-hot-loader": "1.3.1",
    "react-immutable-proptypes": "2.1.0",
71
    "react-immutable-pure-component": "^1.1.1",
72
    "react-markdown": "^2.5.0",
73
    "react-motion": "^0.5.2",
R
Ron 已提交
74 75
    "react-object-inspector": "0.2.1",
    "react-redux": "^4.x.x",
76
    "react-split-pane": "0.1.70",
R
Ron 已提交
77 78 79
    "redux": "^3.x.x",
    "redux-immutable": "3.0.8",
    "redux-logger": "*",
O
Owen Conti 已提交
80
    "remarkable": "^1.7.1",
R
Ron 已提交
81
    "reselect": "2.5.3",
K
Kyle Shockey 已提交
82
    "sanitize-html": "^1.14.1",
83
    "scroll-to-element": "^2.0.0",
R
Ron 已提交
84
    "serialize-error": "2.0.0",
K
Kyle Shockey 已提交
85
    "shallowequal": "0.2.2",
K
kyle 已提交
86
    "swagger-client": "^3.5.2",
87
    "url-parse": "^1.1.8",
R
Ron 已提交
88 89 90
    "whatwg-fetch": "0.11.1",
    "worker-loader": "^0.7.1",
    "xml": "1.0.1",
K
Kyle Shockey 已提交
91
    "xml-but-prettier": "^1.0.1",
L
Liam Shaw 已提交
92
    "yaml-js": "0.2.0",
93
    "zenscroll": "4.0.1"
R
Ron 已提交
94 95
  },
  "devDependencies": {
R
RVKen 已提交
96
    "autoprefixer": "7.1.1",
R
Ron 已提交
97 98
    "babel-core": "^6.23.1",
    "babel-eslint": "^7.1.1",
R
RVKen 已提交
99
    "babel-loader": "^7.1.0",
R
Ron 已提交
100
    "babel-plugin-module-alias": "^1.6.0",
101
    "babel-plugin-transform-runtime": "^6.23.0",
R
Ron 已提交
102 103 104 105 106
    "babel-preset-es2015": "^6.22.0",
    "babel-preset-es2015-ie": "^6.6.2",
    "babel-preset-react": "^6.23.0",
    "babel-preset-stage-0": "^6.22.0",
    "babel-runtime": "^6.23.0",
R
RVKen 已提交
107
    "chromedriver": "^2.30.1",
R
RVKen 已提交
108
    "copy-webpack-plugin": "^4.0.1",
R
RVKen 已提交
109 110
    "css-loader": "0.28.4",
    "deep-extend": "^0.5.0",
R
Ron 已提交
111
    "deepmerge": "^1.3.2",
112
    "enzyme": "^2.7.1",
R
RVKen 已提交
113 114
    "eslint": "^4.1.1",
    "eslint-plugin-import": "^2.6.0",
115
    "eslint-plugin-mocha": "^4.11.0",
R
RVKen 已提交
116 117 118
    "eslint-plugin-react": "^7.1.0",
    "extract-text-webpack-plugin": "^2.1.2",
    "file-loader": "0.11.2",
K
Kyle Shockey 已提交
119
    "git-describe": "^4.0.1",
R
RVKen 已提交
120 121
    "imports-loader": "0.7.1",
    "json-loader": "0.5.4",
R
RVKen 已提交
122
    "json-server": "^0.11.0",
R
RVKen 已提交
123 124 125
    "karma": "^1.7.0",
    "karma-chrome-launcher": "^2.2.0",
    "karma-mocha": "^1.3.0",
K
Kyle Shockey 已提交
126
    "karma-sourcemap-loader": "^0.3.7",
R
RVKen 已提交
127 128 129 130
    "karma-webpack": "2.0.3",
    "less": "2.7.2",
    "license-checker": "^11.0.0",
    "mocha": "^3.4.2",
R
RVKen 已提交
131
    "nightwatch": "^0.9.16",
R
Ron 已提交
132
    "node-sass": "^4.5.0",
R
RVKen 已提交
133
    "npm-run-all": "4.0.2",
R
Ron 已提交
134
    "null-loader": "0.1.1",
K
Kyle Shockey 已提交
135
    "nyc": "^11.3.0",
R
Ron 已提交
136
    "open": "0.0.5",
R
RVKen 已提交
137
    "postcss-loader": "2.0.6",
R
Ron 已提交
138 139
    "raw-loader": "0.5.1",
    "react-hot-loader": "^1.3.1",
140
    "react-test-renderer": "^15.5.4",
R
Ron 已提交
141 142
    "rimraf": "^2.6.0",
    "sass-loader": "^6.0.2",
143
    "selenium-server-standalone-jar": "3.4.0",
R
RVKen 已提交
144 145 146
    "standard": "^10.0.2",
    "standard-loader": "^6.0.1",
    "style-loader": "0.18.2",
K
kyle 已提交
147
    "tachyons-sass": "^4.9.2",
R
RVKen 已提交
148 149
    "url-loader": "0.5.9",
    "webpack": "^2.6.1",
R
Ron 已提交
150 151 152 153 154 155 156 157
    "webpack-bundle-size-analyzer": "^2.5.0"
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
158
    "IE 11"
R
Ron 已提交
159 160
  ],
  "optionalDependencies": {
R
RVKen 已提交
161
    "webpack-dev-server": "2.5.0"
K
Kyle Shockey 已提交
162 163 164
  },
  "nyc": {
    "all": true,
K
Kyle Shockey 已提交
165 166 167
    "include": [
      "**/src/core/plugins/**.js"
    ]
R
Ron 已提交
168 169
  }
}