package.json 6.5 KB
Newer Older
R
Ron 已提交
1 2
{
  "name": "swagger-ui",
K
kyle 已提交
3
  "version": "3.18.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",
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-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",
35 36 37 38 39 40 41 42
    "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",
    "hot-e2e-cypress-server": "webpack-dev-server --port 3230 --content-base test/e2e-cypress/static --host 0.0.0.0 --config webpack-hot-dev-server.config.js --inline --hot --progress",
    "hot-e2e-selenium-server": "webpack-dev-server --port 3230 --content-base test/e2e-selenium/helpers --host 0.0.0.0 --config webpack-hot-dev-server.config.js --inline --hot --progress",
    "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",
K
Kyle Shockey 已提交
50
    "base64-js": "^1.2.0",
51
    "classnames": "^2.2.5",
52
    "core-js": "^2.5.1",
53
    "css.escape": "1.5.1",
54
    "deep-extend": "0.5.1",
55
    "dompurify": "^1.0.4",
K
Kyle Shockey 已提交
56
    "ieee754": "^1.1.8",
R
Ron 已提交
57
    "immutable": "^3.x.x",
58
    "js-file-download": "^0.4.1",
D
Dennis Roche 已提交
59 60
    "lodash": "^4.17.10",
    "memoizee": "^0.4.12",
R
RVKen 已提交
61
    "prop-types": "^15.5.10",
M
Mike Gilbode 已提交
62
    "react": "^15.6.2",
63
    "react-addons-perf": "^15.4.0",
K
kyle 已提交
64
    "react-debounce-input": "^3.2.0",
M
Mike Gilbode 已提交
65
    "react-dom": "^15.6.2",
R
Ron 已提交
66
    "react-immutable-proptypes": "2.1.0",
67
    "react-immutable-pure-component": "^1.1.1",
D
Dennis Roche 已提交
68
    "react-inspector": "^2.3.0",
69
    "react-motion": "^0.5.2",
R
Ron 已提交
70 71 72
    "react-redux": "^4.x.x",
    "redux": "^3.x.x",
    "redux-immutable": "3.0.8",
O
Owen Conti 已提交
73
    "remarkable": "^1.7.1",
74
    "reselect": "^2.5.4",
D
Dennis Roche 已提交
75
    "serialize-error": "^2.1.0",
K
kyle 已提交
76
    "swagger-client": "^3.8.15",
77
    "url-parse": "^1.1.8",
R
Ron 已提交
78
    "xml": "1.0.1",
K
Kyle Shockey 已提交
79
    "xml-but-prettier": "^1.0.1",
D
Dennis Roche 已提交
80
    "zenscroll": "^4.0.2"
R
Ron 已提交
81 82
  },
  "devDependencies": {
D
Dennis Roche 已提交
83
    "autoprefixer": "^8.4.1",
R
Ron 已提交
84 85
    "babel-core": "^6.23.1",
    "babel-eslint": "^7.1.1",
R
RVKen 已提交
86
    "babel-loader": "^7.1.0",
R
Ron 已提交
87
    "babel-plugin-module-alias": "^1.6.0",
K
kyle 已提交
88
    "babel-plugin-transform-es2015-constants": "^6.1.4",
89
    "babel-plugin-transform-react-remove-prop-types": "^0.4.13",
90
    "babel-plugin-transform-runtime": "^6.23.0",
R
Ron 已提交
91 92 93 94 95
    "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",
K
kyle 已提交
96
    "bundlesize": "^0.17.0",
D
Dennis Roche 已提交
97
    "chromedriver": "^2.38.3",
R
RVKen 已提交
98
    "copy-webpack-plugin": "^4.0.1",
D
Dennis Roche 已提交
99
    "css-loader": "^0.28.11",
100
    "cypress": "^3.1.0",
K
kyle 已提交
101
    "dedent": "^0.7.0",
D
Dennis Roche 已提交
102
    "deepmerge": "^2.1.0",
103
    "enzyme": "^2.7.1",
R
RVKen 已提交
104
    "eslint": "^4.1.1",
105
    "eslint-plugin-import": "^2.13.0",
106
    "eslint-plugin-mocha": "^4.11.0",
K
kyle 已提交
107
    "eslint-plugin-react": "^7.10.0",
D
Dennis Roche 已提交
108 109 110
    "expect": "^1.20.2",
    "extract-text-webpack-plugin": "^3.0.2",
    "file-loader": "^1.1.11",
K
Kyle Shockey 已提交
111
    "git-describe": "^4.0.1",
112
    "http-server": "^0.11.1",
D
Dennis Roche 已提交
113
    "imports-loader": "^0.8.0",
114
    "jsdom": "^11.10.0",
D
Dennis Roche 已提交
115 116 117 118 119
    "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 已提交
120
    "nightwatch": "^0.9.16",
R
Ron 已提交
121
    "node-sass": "^4.5.0",
D
Dennis Roche 已提交
122
    "npm-run-all": "^4.1.2",
R
Ron 已提交
123
    "null-loader": "0.1.1",
K
Kyle Shockey 已提交
124
    "nyc": "^11.3.0",
R
Ron 已提交
125
    "open": "0.0.5",
D
Dennis Roche 已提交
126
    "postcss-loader": "^2.1.5",
R
Ron 已提交
127
    "raw-loader": "0.5.1",
128
    "react-test-renderer": "^15.5.4",
R
Ron 已提交
129
    "rimraf": "^2.6.0",
D
Dennis Roche 已提交
130 131 132
    "sass-loader": "^7.0.1",
    "selenium-server-standalone-jar": "3.12.0",
    "standard": "^11.0.1",
R
RVKen 已提交
133
    "standard-loader": "^6.0.1",
D
Dennis Roche 已提交
134
    "style-loader": "^0.21.0",
K
kyle 已提交
135
    "tachyons-sass": "^4.9.2",
K
kyle 已提交
136
    "uglifyjs-webpack-plugin": "^1.2.5",
D
Dennis Roche 已提交
137 138 139 140 141
    "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 已提交
142 143 144 145 146 147 148
  },
  "config": {
    "deps_check_dir": ".deps_check"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
149
    "IE 11"
R
Ron 已提交
150 151
  ],
  "optionalDependencies": {
D
Dennis Roche 已提交
152
    "webpack-dev-server": "^2.11.1"
K
Kyle Shockey 已提交
153 154 155
  },
  "nyc": {
    "all": true,
K
Kyle Shockey 已提交
156 157 158
    "include": [
      "**/src/core/plugins/**.js"
    ]
K
kyle 已提交
159 160 161 162
  },
  "bundlesize": [
    {
      "path": "./dist/swagger-ui-bundle.js",
163
      "maxSize": "1 MB",
K
kyle 已提交
164 165 166
      "compression": "none"
    }
  ]
R
Ron 已提交
167
}