Skip to content

Commit 8ca88b5

Browse files
committed
remove legacy code
1 parent 3e21265 commit 8ca88b5

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you'd like to make modifications to the codebase, run the dev server with: `n
5959
If you'd like to rebuild the `/dist` folder with your codebase changes, run `npm run build`.
6060

6161

62-
##### Integrate Tests
62+
##### Integration Tests
6363

6464
You will need JDK of version 7 or higher as instructed here
6565
http://nightwatchjs.org/gettingstarted#selenium-server-setup

dev-helpers/template.ejs dev-helpers/index.html

+8-7
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@
55
<meta charset="UTF-8">
66
<title>Swagger UI</title>
77
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
8+
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
89
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
910
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
1011
<style>
1112
html
1213
{
13-
box-sizing: border-box;
14-
overflow: -moz-scrollbars-vertical;
15-
overflow-y: scroll;
14+
box-sizing: border-box;
15+
overflow: -moz-scrollbars-vertical;
16+
overflow-y: scroll;
1617
}
1718
*,
1819
*:before,
1920
*:after
2021
{
21-
box-sizing: inherit;
22+
box-sizing: inherit;
2223
}
2324

2425
body {
@@ -33,7 +34,7 @@
3334
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
3435
<defs>
3536
<symbol viewBox="0 0 20 20" id="unlocked">
36-
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
37+
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
3738
</symbol>
3839

3940
<symbol viewBox="0 0 20 20" id="locked">
@@ -66,12 +67,12 @@
6667

6768
<div id="swagger-ui"></div>
6869

70+
<script src="./swagger-ui-bundle.js"> </script>
71+
<script src="./swagger-ui-standalone-preset.js"> </script>
6972
<script>
7073
window.onload = function() {
7174
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
7275
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
73-
74-
var spec = '<%- htmlWebpackPlugin.options.spec %>'
7576
// Build a system
7677
const ui = SwaggerUIBundle({
7778
url: "http://petstore.swagger.io/v2/swagger.json",

make-webpack-config.js

-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var path = require('path')
22

33
var webpack = require('webpack')
44
var ExtractTextPlugin = require('extract-text-webpack-plugin')
5-
var HtmlWebpackPlugin = require('html-webpack-plugin')
65
const CopyWebpackPlugin = require('copy-webpack-plugin')
76
var deepExtend = require('deep-extend')
87
const {gitDescribeSync} = require('git-describe')
@@ -77,11 +76,6 @@ module.exports = function(rules, options) {
7776
plugins.push( new webpack.NoEmitOnErrorsPlugin())
7877

7978
} else { // development mode
80-
plugins.push(
81-
new HtmlWebpackPlugin({
82-
template: 'dev-helpers/template.ejs',
83-
})
84-
)
8579
plugins.push(new CopyWebpackPlugin([ { from: 'test/e2e/specs', to: 'test-specs' } ]))
8680
}
8781

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"build-bundle": "webpack --config webpack-dist-bundle.config.js --colors",
1919
"build-core": "webpack --config webpack-dist.config.js --colors",
2020
"build-standalone": "webpack --config webpack-dist-standalone.config.js --colors",
21+
"predev": "npm install",
2122
"dev": "npm-run-all --parallel hot-server open-localhost",
2223
"watch": "webpack --config webpack-watch.config.js --watch --progress",
2324
"open-localhost": "node -e 'require(\"open\")(\"http://localhost:3200\")'",
@@ -103,7 +104,6 @@
103104
"extract-text-webpack-plugin": "^2.1.2",
104105
"file-loader": "0.11.2",
105106
"git-describe": "^4.0.1",
106-
"html-webpack-plugin": "^2.29.0",
107107
"imports-loader": "0.7.1",
108108
"json-loader": "0.5.4",
109109
"json-server": "^0.11.0",

0 commit comments

Comments
 (0)