Skip to content

Commit e9d301f

Browse files
committed
Merge dev into master
2 parents 27a9a66 + c2c435f commit e9d301f

File tree

185 files changed

+4757
-2853
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+4757
-2853
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ Publish
1414
/TestResults
1515

1616
/tools/NuGet.exe
17-
/node_modules
17+
/node_modules
18+
/.output

CustomDictionary.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
<Term CompoundAlternate="TableName">tableName</Term>
8383
<Term CompoundAlternate="ETag">etag</Term>
8484
<Term CompoundAlternate="ETag">eTag</Term>
85+
<Term CompoundAlternate="Typescript">TypeScript</Term>
8586
</Compound>
8687
<DiscreteExceptions>
8788
<Term>WebJobs</Term>

WebJobs.Script.sln

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 14
4-
VisualStudioVersion = 14.0.25420.1
5-
MinimumVisualStudioVersion = 10.0.40219.1
3+
# Visual Studio 15 (VS2017)
4+
VisualStudioVersion = 15.1.26403.7
5+
MinimumVisualStudioVersion = 15.0.0.0
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebJobs.Script", "src\WebJobs.Script\WebJobs.Script.csproj", "{1DC670CD-F42F-4D8F-97BD-0E1AA8221094}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{16351B76-87CA-4A8C-80A1-3DD83A0C4AA6}"
@@ -442,6 +442,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "swagger", "swagger", "{DCC9
442442
sample\.azurefunctions\swagger\swagger.json = sample\.azurefunctions\swagger\swagger.json
443443
EndProjectSection
444444
EndProject
445+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HttpTrigger-TypeScript", "HttpTrigger-TypeScript", "{62489417-341D-42AD-9E84-E97EB8236979}"
446+
ProjectSection(SolutionItems) = preProject
447+
sample\HttpTrigger-TypeScript\function.json = sample\HttpTrigger-TypeScript\function.json
448+
sample\HttpTrigger-TypeScript\index.ts = sample\HttpTrigger-TypeScript\index.ts
449+
EndProjectSection
450+
EndProject
445451
Global
446452
GlobalSection(SharedMSBuildProjectFiles) = preSolution
447453
test\WebJobs.Script.Tests.Shared\WebJobs.Script.Tests.Shared.projitems*{35a2025d-f68a-4b57-83a2-ed4eb9c3894d}*SharedItemsImports = 4
@@ -566,5 +572,6 @@ Global
566572
{EB76E1C8-C823-4707-BD83-20304425EFC4} = {FF9C0818-30D3-437A-A62D-7A61CA44F459}
567573
{7D50E081-A161-4E83-A6D4-F8529E518613} = {FF9C0818-30D3-437A-A62D-7A61CA44F459}
568574
{DCC9EBEB-5F60-4117-95D2-26507F9DE9A6} = {7D50E081-A161-4E83-A6D4-F8529E518613}
575+
{62489417-341D-42AD-9E84-E97EB8236979} = {FF9C0818-30D3-437A-A62D-7A61CA44F459}
569576
EndGlobalSection
570577
EndGlobal
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"bindings": [
3+
{
4+
"type": "httpTrigger",
5+
"name": "req",
6+
"direction": "in",
7+
"methods": [ "get" ]
8+
},
9+
{
10+
"type": "http",
11+
"name": "$return",
12+
"direction": "out"
13+
}
14+
]
15+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
export function index(context: any, req: any) {
2+
context.log('Node.js HTTP trigger function processed a request. Name=%s', req.query.name);
3+
var headerValue = req.headers['test-header'];
4+
if (headerValue) {
5+
context.log('test-header=' + headerValue);
6+
}
7+
8+
var res;
9+
if (typeof req.query.name == 'undefined') {
10+
res = {
11+
status: 400,
12+
body: "Please pass a name on the query string",
13+
headers: {
14+
'Content-Type': 'text/plain'
15+
}
16+
};
17+
}
18+
else {
19+
res = {
20+
status: 200,
21+
body: "Hello" + req.query.name,
22+
headers: {
23+
'Content-Type': 'text/plain'
24+
}
25+
};
26+
}
27+
28+
context.done(null, res);
29+
}

schemas/json/function.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,29 @@
33
"$schema": "http://json-schema.org/draft-04/schema#",
44
"type": "object",
55
"properties": {
6+
"disabled": {
7+
"type": "boolean",
8+
"description": "If set to true, marks the function as disabled (it cannot be triggered)."
9+
},
10+
"excluded": {
11+
"type": "boolean",
12+
"description": "If set to true, the function will not be loaded, compiled, or triggered."
13+
},
14+
"scriptFile": {
15+
"type": "string",
16+
"description": "Optional path to function script file."
17+
},
18+
"entryPoint": {
19+
"type": "string",
20+
"description": "Optional named entry point."
21+
},
622
"bindings": {
723
"type": "array",
824
"description": "A list of function bindings.",
925
"items": {
1026
"oneOf": [
1127
{ "$ref": "#/definitions/dynamicBinding" },
12-
{
28+
{
1329
"oneOf": [
1430
{ "$ref": "#/definitions/serviceBusBinding" },
1531
{ "$ref": "#/definitions/blobBinding" },
@@ -30,22 +46,6 @@
3046
"allOf": [
3147
{ "$ref": "#/definitions/bindingBase" }
3248
]
33-
},
34-
"disabled": {
35-
"type": "boolean",
36-
"description": "If set to true, marks the function as disabled (it cannot be triggered)."
37-
},
38-
"excluded": {
39-
"type": "boolean",
40-
"description": "If set to true, the function will not be loaded, compiled, or triggered."
41-
},
42-
"scriptFile": {
43-
"type": "string",
44-
"description": "Optional path to function script file."
45-
},
46-
"entryPoint": {
47-
"type": "string",
48-
"description": "Optional named entry point."
4949
}
5050
}
5151
},

src/Common/CommonAssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
[assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
1111

1212
[assembly: ComVisible(false)]
13-
[assembly: CLSCompliant(true)]
1413

1514
[assembly: AssemblyVersion("1.0.0.0")]
1615

src/Packages/Packages.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<SkipCopyBuildProduct>true</SkipCopyBuildProduct>
77
<ProjectGuid>{34AB8F63-18DE-4E0D-B21C-15E33B091634}</ProjectGuid>
88
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
9-
<NuGetPackageImportStamp>d7fae0d2</NuGetPackageImportStamp>
9+
<NuGetPackageImportStamp>
10+
</NuGetPackageImportStamp>
1011
<TargetFrameworkProfile />
1112
</PropertyGroup>
1213
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -70,7 +71,9 @@
7071
<PropertyGroup>
7172
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
7273
</PropertyGroup>
74+
<Error Condition="!Exists('..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets'))" />
7375
</Target>
76+
<Import Project="..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" />
7477
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
7578
Other similar extension points exist, see Microsoft.Common.targets.
7679
<Target Name="BeforeBuild">

src/Packages/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3+
<package id="Microsoft.Bcl.Build" version="1.0.21" targetFramework="net46" />
34
<package id="StyleCop.Analyzers" version="1.1.0-beta001" targetFramework="net46" developmentDependency="true" />
45
</packages>

src/WebJobs.Script.Extensibility.NuGet/WebJobs.Script.Extensibility.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1515
<tags>Microsoft Azure WebJobs Jobs Script Extensibility</tags>
1616
<dependencies>
17-
<dependency id="Microsoft.Azure.WebJobs" version="2.0.1-alpha1-10547" />
17+
<dependency id="Microsoft.Azure.WebJobs" version="2.0.1-alpha1-10677" />
1818
</dependencies>
1919
</metadata>
2020
</package>

0 commit comments

Comments
 (0)