Skip to content

Commit dcfdbc8

Browse files
Simplify aspnet-webpack - remove 'express' dependency and use 'connect' directly instead
1 parent ff5cdd1 commit dcfdbc8

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

src/Microsoft.AspNet.SpaServices/npm/aspnet-webpack/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "aspnet-webpack",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Helpers for using Webpack in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
55
"main": "index.js",
66
"scripts": {
7-
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
7+
"prepublish": "rm *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
88
"test": "echo \"Error: no test specified\" && exit 1"
99
},
1010
"author": "Microsoft",
1111
"license": "Apache-2.0",
1212
"dependencies": {
1313
"es6-promise": "^3.1.2",
14-
"express": "^4.13.4",
14+
"connect": "^3.4.1",
1515
"memory-fs": "^0.3.0",
1616
"require-from-string": "^1.1.0",
1717
"webpack": "^1.12.14",

src/Microsoft.AspNet.SpaServices/npm/aspnet-webpack/src/WebpackDevMiddleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as express from 'express';
1+
import * as connect from 'connect';
22
import * as webpack from 'webpack';
33
import { requireNewCopy } from './RequireNewCopy';
44

@@ -34,7 +34,7 @@ export function createWebpackDevServer(callback: CreateDevServerCallback, option
3434
return;
3535
}
3636

37-
const app = express();
37+
const app = connect();
3838
const defaultPort = 0; // 0 means 'choose randomly'. Could allow an explicit value to be supplied instead.
3939
const listener = app.listen(defaultPort, () => {
4040
// Build the final Webpack config based on supplied options

src/Microsoft.AspNet.SpaServices/npm/aspnet-webpack/tsd.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,11 @@
55
"path": "typings",
66
"bundle": "typings/tsd.d.ts",
77
"installed": {
8-
"express/express.d.ts": {
9-
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
10-
},
118
"webpack/webpack.d.ts": {
129
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
1310
},
1411
"node/node.d.ts": {
15-
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
16-
},
17-
"serve-static/serve-static.d.ts": {
18-
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
19-
},
20-
"mime/mime.d.ts": {
21-
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
12+
"commit": "e937b3e64af586d19f2ea29fdf771e9dc4feecc8"
2213
},
2314
"source-map/source-map.d.ts": {
2415
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
@@ -28,6 +19,9 @@
2819
},
2920
"es6-promise/es6-promise.d.ts": {
3021
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
22+
},
23+
"connect/connect.d.ts": {
24+
"commit": "e937b3e64af586d19f2ea29fdf771e9dc4feecc8"
3125
}
3226
}
3327
}

0 commit comments

Comments
 (0)