package.json 5.9 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
K
kyle 已提交
3
  "version": "3.17.2",
R
Ron 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16
  "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": {
K
kyle 已提交
17
    "build": "run-p --aggregate-output build-core build-bundle build-standalone",
R
Ron 已提交
18 19 20 21
    "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
    "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",
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",
K
kyle 已提交
31 32
    "test": "run-s just-test-in-node lint-errors",
    "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-core/register --require source-map-support test/core test/components test/bugs test/swagger-ui-dist-package test/xss",
K
Kyle Shockey 已提交
34
    "just-check-coverage": "nyc npm run just-test-in-node",
K
Kenny 已提交
35
    "test-e2e": "sleep 3 && nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json",
K
Kenny 已提交
36
    "e2e-initial-render": "nightwatch test/e2e/scenarios/ --config test/e2e/nightwatch.json --group initial-render",
37
    "mock-api": "json-server --watch test/e2e/db.json --port 3204",
38
    "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 已提交
39
    "e2e": "run-p -r hot-e2e-server mock-api test-e2e",
40 41 42
    "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 已提交
43 44
  },
  "dependencies": {
45
    "@braintree/sanitize-url": "^2.0.2",
K
Kyle Shockey 已提交
46
    "base64-js": "^1.2.0",
47
    "classnames": "^2.2.5",
O
Owen Conti 已提交
48
    "commonmark": "^0.28.1",
49
    "core-js": "^2.5.1",
50
    "css.escape": "1.5.1",
51
    "deep-extend": "0.5.1",
52
    "dompurify": "^1.0.4",
K
Kyle Shockey 已提交
53
    "ieee754": "^1.1.8",
R
Ron 已提交
54
    "immutable": "^3.x.x",
55
    "js-file-download": "^0.4.1",
R
Ron 已提交
56
    "js-yaml": "^3.5.5",
D
Dennis Roche 已提交
57 58
    "lodash": "^4.17.10",
    "memoizee": "^0.4.12",
R
RVKen 已提交
59
    "prop-types": "^15.5.10",
M
Mike Gilbode 已提交
60
    "react": "^15.6.2",
61
    "react-addons-perf": "^15.4.0",
62
    "react-collapse": "^4.0.3",
K
kyle 已提交
63
    "react-debounce-input": "^3.2.0",
M
Mike Gilbode 已提交
64
    "react-dom": "^15.6.2",
R
Ron 已提交
65
    "react-immutable-proptypes": "2.1.0",
66
    "react-immutable-pure-component": "^1.1.1",
D
Dennis Roche 已提交
67
    "react-inspector": "^2.3.0",
68
    "react-markdown": "^2.5.0",
69
    "react-motion": "^0.5.2",
R
Ron 已提交
70
    "react-redux": "^4.x.x",
D
Dennis Roche 已提交
71
    "react-split-pane": "^0.1.77",
R
Ron 已提交
72 73
    "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",
K
kyle 已提交
77
    "swagger-client": "^3.8.7",
78
    "url-parse": "^1.1.8",
R
Ron 已提交
79
    "xml": "1.0.1",
K
Kyle Shockey 已提交
80
    "xml-but-prettier": "^1.0.1",
D
Dennis Roche 已提交
81 82
    "yaml-js": "^0.2.3",
    "zenscroll": "^4.0.2"
R
Ron 已提交
83 84
  },
  "devDependencies": {
D
Dennis Roche 已提交
85
    "autoprefixer": "^8.4.1",
R
Ron 已提交
86 87
    "babel-core": "^6.23.1",
    "babel-eslint": "^7.1.1",
R
RVKen 已提交
88
    "babel-loader": "^7.1.0",
R
Ron 已提交
89
    "babel-plugin-module-alias": "^1.6.0",
K
kyle 已提交
90
    "babel-plugin-transform-es2015-constants": "^6.1.4",
91
    "babel-plugin-transform-runtime": "^6.23.0",
R
Ron 已提交
92 93 94 95 96
    "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",
D
Dennis Roche 已提交
97
    "chromedriver": "^2.38.3",
R
RVKen 已提交
98
    "copy-webpack-plugin": "^4.0.1",
D
Dennis Roche 已提交
99 100
    "css-loader": "^0.28.11",
    "deepmerge": "^2.1.0",
101
    "enzyme": "^2.7.1",
R
RVKen 已提交
102
    "eslint": "^4.1.1",
103
    "eslint-plugin-import": "^2.13.0",
104
    "eslint-plugin-mocha": "^4.11.0",
K
kyle 已提交
105
    "eslint-plugin-react": "~7.7.0",
D
Dennis Roche 已提交
106 107 108
    "expect": "^1.20.2",
    "extract-text-webpack-plugin": "^3.0.2",
    "file-loader": "^1.1.11",
K
Kyle Shockey 已提交
109
    "git-describe": "^4.0.1",
D
Dennis Roche 已提交
110
    "imports-loader": "^0.8.0",
111
    "jsdom": "^11.10.0",
D
Dennis Roche 已提交
112 113 114 115 116
    "json-loader": "^0.5.7",
    "json-server": "^0.12.2",
    "less": "^3.0.2",
    "license-checker": "^19.0.0",
    "mocha": "^5.1.1",
R
RVKen 已提交
117
    "nightwatch": "^0.9.16",
R
Ron 已提交
118
    "node-sass": "^4.5.0",
D
Dennis Roche 已提交
119
    "npm-run-all": "^4.1.2",
R
Ron 已提交
120
    "null-loader": "0.1.1",
K
Kyle Shockey 已提交
121
    "nyc": "^11.3.0",
R
Ron 已提交
122
    "open": "0.0.5",
D
Dennis Roche 已提交
123
    "postcss-loader": "^2.1.5",
R
Ron 已提交
124
    "raw-loader": "0.5.1",
125
    "react-test-renderer": "^15.5.4",
R
Ron 已提交
126
    "rimraf": "^2.6.0",
D
Dennis Roche 已提交
127 128 129
    "sass-loader": "^7.0.1",
    "selenium-server-standalone-jar": "3.12.0",
    "standard": "^11.0.1",
R
RVKen 已提交
130
    "standard-loader": "^6.0.1",
D
Dennis Roche 已提交
131
    "style-loader": "^0.21.0",
K
kyle 已提交
132
    "tachyons-sass": "^4.9.2",
K
kyle 已提交
133
    "uglifyjs-webpack-plugin": "^1.2.5",
D
Dennis Roche 已提交
134 135 136 137 138
    "url-loader": "^1.0.1",
    "webpack": "^3.1.0",
    "webpack-bundle-size-analyzer": "^2.5.0",
    "webpack-cli": "^2.0.4",
    "worker-loader": "^1.1.1"
R
Ron 已提交
139 140 141 142 143 144 145
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
146
    "IE 11"
R
Ron 已提交
147 148
  ],
  "optionalDependencies": {
D
Dennis Roche 已提交
149
    "webpack-dev-server": "^2.11.1"
K
Kyle Shockey 已提交
150 151 152
  },
  "nyc": {
    "all": true,
K
Kyle Shockey 已提交
153 154 155
    "include": [
      "**/src/core/plugins/**.js"
    ]
R
Ron 已提交
156 157
  }
}