package.json 5.7 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
K
v3.4.2  
Kyle Shockey 已提交
3
  "version": "3.4.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 Shockey 已提交
22
    "dev": "npm-run-all --parallel hot-server open-localhost",
R
Ron 已提交
23 24
    "watch": "webpack --config webpack-watch.config.js --watch --progress",
    "open-localhost": "node -e 'require(\"open\")(\"http://localhost:3200\")'",
K
Kyle Shockey 已提交
25
    "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 已提交
26 27 28
    "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 已提交
29 30 31
    "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 已提交
32 33 34
    "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",
35
    "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
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
    "e2e": "npm-run-all --parallel -r hot-server mock-api test-e2e"
R
Ron 已提交
40 41
  },
  "dependencies": {
42
    "@braintree/sanitize-url": "^2.0.2",
K
Kyle Shockey 已提交
43
    "base64-js": "^1.2.0",
R
Ron 已提交
44
    "brace": "0.7.0",
45
    "classnames": "^2.2.5",
O
Owen Conti 已提交
46
    "commonmark": "^0.28.1",
47
    "css.escape": "1.5.1",
R
Ron 已提交
48 49 50
    "deep-extend": "0.4.1",
    "expect": "1.20.2",
    "getbase": "^2.8.2",
K
Kyle Shockey 已提交
51
    "ieee754": "^1.1.8",
R
Ron 已提交
52 53 54 55 56 57
    "immutable": "^3.x.x",
    "js-yaml": "^3.5.5",
    "lodash": "4.17.2",
    "matcher": "^0.1.2",
    "memoizee": "0.4.1",
    "promise-worker": "^1.1.1",
R
RVKen 已提交
58
    "prop-types": "^15.5.10",
R
Ron 已提交
59
    "react": "^15.4.0",
60
    "react-addons-perf": "^15.4.0",
R
Ron 已提交
61
    "react-addons-shallow-compare": "0.14.8",
62
    "react-addons-test-utils": "^15.4.0",
R
Ron 已提交
63 64 65 66 67
    "react-collapse": "2.3.1",
    "react-dom": "^15.4.0",
    "react-height": "^2.0.0",
    "react-hot-loader": "1.3.1",
    "react-immutable-proptypes": "2.1.0",
68
    "react-markdown": "^2.5.0",
R
Ron 已提交
69 70 71 72 73 74 75
    "react-motion": "0.4.4",
    "react-object-inspector": "0.2.1",
    "react-redux": "^4.x.x",
    "react-split-pane": "0.1.57",
    "redux": "^3.x.x",
    "redux-immutable": "3.0.8",
    "redux-logger": "*",
O
Owen Conti 已提交
76
    "remarkable": "^1.7.1",
R
Ron 已提交
77
    "reselect": "2.5.3",
K
Kyle Shockey 已提交
78
    "sanitize-html": "^1.14.1",
79
    "scroll-to-element": "^2.0.0",
R
Ron 已提交
80
    "serialize-error": "2.0.0",
K
Kyle Shockey 已提交
81
    "shallowequal": "0.2.2",
K
v3.4.1  
Kyle Shockey 已提交
82
    "swagger-client": "^3.3.1",
83
    "url-parse": "^1.1.8",
R
Ron 已提交
84 85 86
    "whatwg-fetch": "0.11.1",
    "worker-loader": "^0.7.1",
    "xml": "1.0.1",
R
RVKen 已提交
87
    "yaml-js": "0.2.0"
R
Ron 已提交
88 89
  },
  "devDependencies": {
R
RVKen 已提交
90
    "autoprefixer": "7.1.1",
R
Ron 已提交
91 92
    "babel-core": "^6.23.1",
    "babel-eslint": "^7.1.1",
R
RVKen 已提交
93
    "babel-loader": "^7.1.0",
R
Ron 已提交
94
    "babel-plugin-module-alias": "^1.6.0",
95
    "babel-plugin-transform-runtime": "^6.23.0",
R
Ron 已提交
96 97 98 99 100
    "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 已提交
101
    "chromedriver": "^2.30.1",
R
RVKen 已提交
102
    "copy-webpack-plugin": "^4.0.1",
R
RVKen 已提交
103 104
    "css-loader": "0.28.4",
    "deep-extend": "^0.5.0",
R
Ron 已提交
105
    "deepmerge": "^1.3.2",
106
    "enzyme": "^2.7.1",
R
RVKen 已提交
107 108
    "eslint": "^4.1.1",
    "eslint-plugin-import": "^2.6.0",
109
    "eslint-plugin-mocha": "^4.11.0",
R
RVKen 已提交
110 111 112
    "eslint-plugin-react": "^7.1.0",
    "extract-text-webpack-plugin": "^2.1.2",
    "file-loader": "0.11.2",
K
Kyle Shockey 已提交
113
    "git-describe": "^4.0.1",
R
RVKen 已提交
114 115
    "imports-loader": "0.7.1",
    "json-loader": "0.5.4",
R
RVKen 已提交
116
    "json-server": "^0.11.0",
R
RVKen 已提交
117 118 119
    "karma": "^1.7.0",
    "karma-chrome-launcher": "^2.2.0",
    "karma-mocha": "^1.3.0",
K
Kyle Shockey 已提交
120
    "karma-sourcemap-loader": "^0.3.7",
R
RVKen 已提交
121 122 123 124
    "karma-webpack": "2.0.3",
    "less": "2.7.2",
    "license-checker": "^11.0.0",
    "mocha": "^3.4.2",
R
RVKen 已提交
125
    "nightwatch": "^0.9.16",
R
Ron 已提交
126
    "node-sass": "^4.5.0",
R
RVKen 已提交
127
    "npm-run-all": "4.0.2",
R
Ron 已提交
128 129
    "null-loader": "0.1.1",
    "open": "0.0.5",
R
RVKen 已提交
130
    "postcss-loader": "2.0.6",
R
Ron 已提交
131 132
    "raw-loader": "0.5.1",
    "react-hot-loader": "^1.3.1",
133
    "react-test-renderer": "^15.5.4",
R
Ron 已提交
134 135
    "rimraf": "^2.6.0",
    "sass-loader": "^6.0.2",
136
    "selenium-server-standalone-jar": "3.4.0",
R
RVKen 已提交
137 138 139 140 141
    "standard": "^10.0.2",
    "standard-loader": "^6.0.1",
    "style-loader": "0.18.2",
    "url-loader": "0.5.9",
    "webpack": "^2.6.1",
R
Ron 已提交
142 143 144 145 146 147 148 149
    "webpack-bundle-size-analyzer": "^2.5.0"
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
150
    "IE 11"
R
Ron 已提交
151 152
  ],
  "optionalDependencies": {
R
RVKen 已提交
153
    "webpack-dev-server": "2.5.0"
R
Ron 已提交
154 155
  }
}