Skip to content

Commit

Permalink
Updated summary stats
Browse files Browse the repository at this point in the history
  • Loading branch information
anders617 committed Jun 15, 2020
1 parent 43665aa commit 5c56a19
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ load("@build_bazel_rules_nodejs//:index.bzl", "npm_package")
# To build and publish the package: bazel run //:mdining_ts_proto_package.publish
npm_package(
name = "mdining_ts_proto_package",
srcs = ["package.json", ".npmignore"],
srcs = ["package.json", ".npmignore", "README.md"],
deps = ["//proto:mdining_ts_proto"],
)
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,10 @@ client.getDiningHalls(new DiningHallsRequest())
.then((diningHalls) => console.log(diningHalls))
.catch((err) => console.log(err));
```

# Development

Run the following command to build and publish the npm package
```shell
bazel run //:mdining_ts_proto_package.publish
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdining-proto",
"version": "0.2.1",
"version": "0.2.2",
"main": "proto/index.js",
"repository": "https://github.com/anders617/mdining-proto.git",
"author": "anders617 <[email protected]>",
Expand Down
3 changes: 2 additions & 1 deletion proto/foodstat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ message SummaryStats {
repeated int64 totalFoodMealsServed = 3;
map<string, CountArray> allergenCounts = 4;
map<string, CountArray> attributeCounts = 5;
map<string, StringToInt> latestWeekdayFoodCounts = 6;
repeated string foods = 6;
map<string, CountArray> latestWeekdayFoodCounts = 7;
}

message StringToInt {
Expand Down

0 comments on commit 5c56a19

Please sign in to comment.