From 150400735888f6826ceeb6158cc1fa857573b799 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Wed, 14 Sep 2016 11:20:05 -0700 Subject: [PATCH] Upgrade TypeScript Express App Template To Express 4 Moves the existing TypeScriptExpressApp Template to use express 4. This includes: * Updating to use new/changed apis. * Including modern typings files in a way that emulates what `typings` does * Adding a bin/www file. * Small other fixes. --- Nodejs/Product/Nodejs/Nodejs.csproj | 13 + .../TypeScriptAzureExpressApp/index.ts | 7 +- .../TypeScriptExpressApp/ExpressApp.njsproj | 9 +- .../ExpressApp.vstemplate | 37 +- .../TypeScriptExpressApp/app.ts | 56 +- .../express-serve-static-core.d.ts | 1072 ++++++++++ .../express-serve-static-core.typings.json | 8 + .../TypeScriptExpressApp/express.d.ts | 1849 +---------------- .../TypeScriptExpressApp/express.typings.json | 8 + .../TypeScriptExpressApp/index.ts | 7 +- .../TypeScriptExpressApp/main.css | 13 +- .../TypeScriptExpressApp/mime.d.ts | 15 + .../TypeScriptExpressApp/mine.typings.json | 8 + .../TypeScriptExpressApp/package.json | 10 +- .../TypeScriptExpressApp/serve-static.d.ts | 80 + .../serve-static.typings.json | 8 + .../TypeScriptExpressApp/typings.json | 9 + .../TypeScriptExpressApp/user.ts | 7 +- .../ProjectTemplates/TypeScriptExpressApp/www | 9 + 19 files changed, 1368 insertions(+), 1857 deletions(-) create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/express-serve-static-core.d.ts create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/express-serve-static-core.typings.json create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/express.typings.json create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/mime.d.ts create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/mine.typings.json create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/serve-static.d.ts create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/serve-static.typings.json create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/typings.json create mode 100644 Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptExpressApp/www diff --git a/Nodejs/Product/Nodejs/Nodejs.csproj b/Nodejs/Product/Nodejs/Nodejs.csproj index 21707c28e..88593211c 100644 --- a/Nodejs/Product/Nodejs/Nodejs.csproj +++ b/Nodejs/Product/Nodejs/Nodejs.csproj @@ -760,6 +760,12 @@ + + + + + + Designer @@ -1204,6 +1210,13 @@ + + + + + + +