Skip to content

Commit 132b454

Browse files
committed
Merge branch 'dev'
2 parents d13c951 + a704013 commit 132b454

20 files changed

+2525
-2088
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Getting Started
44

55
[Azure Functions Language Extensibility Wiki](https://github.com/Azure/azure-webjobs-sdk-script/wiki/Language-Extensibility)
6+
[worker.config.json](https://github.com/Azure/azure-functions-host/wiki/Authoring-&-Testing-Language-Extensions#workerconfigjson)
67

78
- `git clone https://github.com/Azure/azure-functions-nodejs-worker`
89
- `cd azure-functions-nodejs-worker`

Worker.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>Microsoft.Azure.Functions.NodeJsWorker</id>
5-
<version>1.0.0-beta2$version$</version>
5+
<version>1.0.0-beta3$version$</version>
66
<authors>Microsoft</authors>
77
<owners>Microsoft</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>

azure-functions-language-worker-protobuf/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,19 @@ set OUTDIR=%MSGDIR%\DotNet
5252
mkdir %OUTDIR%
5353
%GRPC_TOOLS_PATH%\protoc.exe %PROTO% --csharp_out %OUTDIR% --grpc_out=%OUTDIR% --plugin=protoc-gen-grpc=%GRPC_TOOLS_PATH%\grpc_csharp_plugin.exe --proto_path=%PROTO_PATH% --proto_path=%PROTOBUF_TOOLS%
5454
```
55-
## Java
56-
--TODO--
57-
5855
## JavaScript
56+
In package.json, add to the build script the following commands to build .js files and to build .ts files. Use and install npm package `protobufjs`.
57+
58+
Generate JavaScript files:
59+
```
60+
pbjs -t json-module -w commonjs -o azure-functions-language-worker-protobuf/src/rpc.js azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto
61+
```
62+
Generate TypeScript files:
63+
```
64+
pbjs -t static-module azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto -o azure-functions-language-worker-protobuf/src/rpc_static.js && pbts -o azure-functions-language-worker-protobuf/src/rpc.d.ts azure-functions-language-worker-protobuf/src/rpc_static.js
65+
```
66+
67+
## Java
5968
Maven plugin : [protobuf-maven-plugin](https://www.xolstice.org/protobuf-maven-plugin/)
6069
In pom.xml add following under configuration for this plugin
6170
<protoSourceRoot>${basedir}/<path to this repo>/azure-functions-language-worker-protobuf/src/proto</protoSourceRoot>

azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ syntax = "proto3";
44
option java_multiple_files = true;
55
option java_package = "com.microsoft.azure.functions.rpc.messages";
66
option java_outer_classname = "FunctionProto";
7-
option objc_class_prefix = "FunctionRpc";
87
option csharp_namespace = "Microsoft.Azure.WebJobs.Script.Grpc.Messages";
98

10-
package FunctionRpc;
9+
package AzureFunctionsRpcMessages;
1110

1211
import "google/protobuf/duration.proto";
1312

0 commit comments

Comments
 (0)