mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Simplify aspnet-webpack - remove 'express' dependency and use 'connect' directly instead
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "aspnet-webpack",
|
"name": "aspnet-webpack",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "Helpers for using Webpack in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
|
"description": "Helpers for using Webpack in ASP.NET projects. Works in conjunction with the Microsoft.AspNet.SpaServices NuGet package.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
|
"prepublish": "rm *.d.ts && tsd update && tsc && echo 'Finished building NPM package \"aspnet-webpack\"'",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"author": "Microsoft",
|
"author": "Microsoft",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"es6-promise": "^3.1.2",
|
"es6-promise": "^3.1.2",
|
||||||
"express": "^4.13.4",
|
"connect": "^3.4.1",
|
||||||
"memory-fs": "^0.3.0",
|
"memory-fs": "^0.3.0",
|
||||||
"require-from-string": "^1.1.0",
|
"require-from-string": "^1.1.0",
|
||||||
"webpack": "^1.12.14",
|
"webpack": "^1.12.14",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import * as express from 'express';
|
import * as connect from 'connect';
|
||||||
import * as webpack from 'webpack';
|
import * as webpack from 'webpack';
|
||||||
import { requireNewCopy } from './RequireNewCopy';
|
import { requireNewCopy } from './RequireNewCopy';
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ export function createWebpackDevServer(callback: CreateDevServerCallback, option
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const app = express();
|
const app = connect();
|
||||||
const defaultPort = 0; // 0 means 'choose randomly'. Could allow an explicit value to be supplied instead.
|
const defaultPort = 0; // 0 means 'choose randomly'. Could allow an explicit value to be supplied instead.
|
||||||
const listener = app.listen(defaultPort, () => {
|
const listener = app.listen(defaultPort, () => {
|
||||||
// Build the final Webpack config based on supplied options
|
// Build the final Webpack config based on supplied options
|
||||||
|
|||||||
@@ -5,20 +5,11 @@
|
|||||||
"path": "typings",
|
"path": "typings",
|
||||||
"bundle": "typings/tsd.d.ts",
|
"bundle": "typings/tsd.d.ts",
|
||||||
"installed": {
|
"installed": {
|
||||||
"express/express.d.ts": {
|
|
||||||
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
|
||||||
},
|
|
||||||
"webpack/webpack.d.ts": {
|
"webpack/webpack.d.ts": {
|
||||||
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
||||||
},
|
},
|
||||||
"node/node.d.ts": {
|
"node/node.d.ts": {
|
||||||
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
"commit": "e937b3e64af586d19f2ea29fdf771e9dc4feecc8"
|
||||||
},
|
|
||||||
"serve-static/serve-static.d.ts": {
|
|
||||||
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
|
||||||
},
|
|
||||||
"mime/mime.d.ts": {
|
|
||||||
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
|
||||||
},
|
},
|
||||||
"source-map/source-map.d.ts": {
|
"source-map/source-map.d.ts": {
|
||||||
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
||||||
@@ -28,6 +19,9 @@
|
|||||||
},
|
},
|
||||||
"es6-promise/es6-promise.d.ts": {
|
"es6-promise/es6-promise.d.ts": {
|
||||||
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
"commit": "0144ad5a74053f2292424847259c4c8e1d0fecaa"
|
||||||
|
},
|
||||||
|
"connect/connect.d.ts": {
|
||||||
|
"commit": "e937b3e64af586d19f2ea29fdf771e9dc4feecc8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user