Skip to content

Commit 8202572

Browse files
authored
Merge pull request #1566 from paulvanbrenk/expressTemplate
Express template
2 parents 7f48ae7 + 52f001b commit 8202572

File tree

17 files changed

+131
-29
lines changed

17 files changed

+131
-29
lines changed

Nodejs/Product/Nodejs/Nodejs.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,12 +1060,14 @@
10601060
<TypeScriptProject Include="ProjectTemplates\TypeScriptExpressApp\express.typings.json" />
10611061
<TypeScriptProject Include="ProjectTemplates\TypeScriptExpressApp\serve-static.typings.json" />
10621062
<TypeScriptProject Include="ProjectTemplates\TypeScriptExpressApp\typings.json" />
1063-
<TypeScriptProject Include="ProjectTemplates\TypeScriptExpressApp\mine.typings.json" />
1063+
<TypeScriptProject Include="ProjectTemplates\TypeScriptExpressApp\mime.typings.json" />
1064+
<TypeScriptProject Include="ProjectTemplates\TypeScriptExpressApp\debug.typings.json" />
10641065
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\express-serve-static-core.typings.json" />
10651066
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\express.typings.json" />
10661067
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\serve-static.typings.json" />
1067-
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\mine.typings.json" />
1068+
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\mime.typings.json" />
10681069
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\typings.json" />
1070+
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\debug.typings.json" />
10691071
<ZipItem Include="Templates\Files\EmptyJson\EmptyJson.json" />
10701072
<ZipItem Include="Templates\Files\EmptyLess\EmptyLess.less" />
10711073
<ZipItem Include="Templates\Files\EmptyPug\EmptyPug.pug" />
@@ -1470,6 +1472,10 @@
14701472
<ItemGroup>
14711473
<ZipItem Include="Templates\Files\EmptyTs\EmptyTs.ts" />
14721474
</ItemGroup>
1475+
<ItemGroup>
1476+
<TypeScriptProject Include="ProjectTemplates\TypeScriptAzureExpressApp\debug.d.ts" />
1477+
<TypeScriptProject Include="ProjectTemplates\TypeScriptExpressApp\debug.d.ts" />
1478+
</ItemGroup>
14731479
<PropertyGroup>
14741480
<!--
14751481
To specify a different registry root to register your package, uncomment the TargetRegistryRoot

Nodejs/Product/Nodejs/ProjectTemplates/CloudService/CloudService.vstemplate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
22
<TemplateData>
33
<Name Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3065"/>
4-
<Description Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3067"/>
4+
<Description Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3066"/>
55
<ProjectType>JavaScript</ProjectType>
66
<TemplateGroupID>CloudServiceProject</TemplateGroupID>
77
<TemplateID>Microsoft.CloudServiceProject.CloudService_js</TemplateID>

Nodejs/Product/Nodejs/ProjectTemplates/Express4App/ExpressApp.vstemplate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
22
<TemplateData>
3-
<Name Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3066"/>
3+
<Name Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3067"/>
44
<Description Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3068"/>
55
<Icon Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="406"/>
66
<ProjectType>JavaScript</ProjectType>

Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/TypeScriptExpressApp.njsproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<TypeScriptCompile Include="app.ts" />
3434
<TypeScriptCompile Include="routes\index.ts" />
3535
<TypeScriptCompile Include="routes\user.ts" />
36+
<TypeScriptCompile Include="typings\globals\debug\index.d.ts" />
3637
<TypeScriptCompile Include="typings\globals\express\index.d.ts" />
3738
<TypeScriptCompile Include="typings\globals\express-serve-static-core\index.d.ts" />
3839
<TypeScriptCompile Include="typings\globals\mime\index.d.ts" />

Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/TypeScriptExpressApp.vstemplate

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@
4343
</Folder>
4444
<Folder Name="mime">
4545
<ProjectItem TargetFileName="index.d.ts">mime.d.ts</ProjectItem>
46-
<ProjectItem TargetFileName="typings.json">mine.typings.json</ProjectItem>
46+
<ProjectItem TargetFileName="typings.json">mime.typings.json</ProjectItem>
4747
</Folder>
4848
<Folder Name="serve-static">
4949
<ProjectItem TargetFileName="index.d.ts">serve-static.d.ts</ProjectItem>
5050
<ProjectItem TargetFileName="typings.json">serve-static.typings.json</ProjectItem>
5151
</Folder>
52+
<Folder Name="debug">
53+
<ProjectItem TargetFileName="index.d.ts">debug.d.ts</ProjectItem>
54+
<ProjectItem TargetFileName="typings.json">debug.typings.json</ProjectItem>
55+
</Folder>
5256
</Folder>
5357
</Folder>
5458
<ProjectItem OpenInEditor="true">app.ts</ProjectItem>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Generated by typings
2+
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/debug/debug.d.ts
3+
declare var debug: debug.IDebug;
4+
5+
// Support AMD require
6+
declare module 'debug' {
7+
export = debug;
8+
}
9+
10+
declare namespace debug {
11+
export interface IDebug {
12+
(namespace: string): debug.IDebugger,
13+
coerce: (val: any) => any,
14+
disable: () => void,
15+
enable: (namespaces: string) => void,
16+
enabled: (namespaces: string) => boolean,
17+
18+
names: string[],
19+
skips: string[],
20+
21+
formatters: IFormatters
22+
}
23+
24+
export interface IFormatters {
25+
[formatter: string]: Function
26+
}
27+
28+
export interface IDebugger {
29+
(formatter: any, ...args: any[]): void;
30+
31+
enabled: boolean;
32+
log: Function;
33+
namespace: string;
34+
}
35+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"resolution": "main",
3+
"tree": {
4+
"src": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/debug/debug.d.ts",
5+
"raw": "registry:dt/debug#0.0.0+20160317120654",
6+
"typings": "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/debug/debug.d.ts"
7+
}
8+
}

Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/mine.typings.json renamed to Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/mime.typings.json

File renamed without changes.

Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureExpressApp/typings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"dependencies": {},
32
"globalDependencies": {
4-
"express": "registry:dt/express#4.0.0+20160708185218",
5-
"express-serve-static-core": "registry:dt/express-serve-static-core#4.0.0+20160829034835",
3+
"debug": "registry:dt/debug#0.0.0+20160317120654",
4+
"express": "registry:dt/express#4.0.0+20160317120654",
5+
"express-serve-static-core": "registry:dt/express-serve-static-core#0.0.0+20160602151406",
66
"mime": "registry:dt/mime#0.0.0+20160316155526",
77
"serve-static": "registry:dt/serve-static#0.0.0+20160606155157"
88
}

Nodejs/Product/Nodejs/ProjectTemplates/TypeScriptAzureWebApp/TypeScriptWebApp.vstemplate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<VSTemplate Version="3.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
22
<TemplateData>
3-
<Name Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3080"/>
3+
<Name Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3081"/>
44
<Description Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="3082"/>
55
<Icon Package="{FE8A8C3D-328A-476D-99F9-2A24B75F8C7F}" ID="410"/>
66
<ProjectType>TypeScript</ProjectType>

0 commit comments

Comments
 (0)