From 5c56a19ef4754acc8a0e1da0097108a36b827d88 Mon Sep 17 00:00:00 2001 From: anders617 Date: Mon, 15 Jun 2020 12:05:01 -0400 Subject: [PATCH] Updated summary stats --- BUILD | 2 +- README.md | 7 +++++++ package.json | 2 +- proto/foodstat.proto | 3 ++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/BUILD b/BUILD index 09dddcf..0ef681b 100644 --- a/BUILD +++ b/BUILD @@ -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"], ) diff --git a/README.md b/README.md index 099ef9d..e3832fd 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/package.json b/package.json index 3620cc6..3b0b802 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/proto/foodstat.proto b/proto/foodstat.proto index 8ba7c1a..c39e6d0 100644 --- a/proto/foodstat.proto +++ b/proto/foodstat.proto @@ -27,7 +27,8 @@ message SummaryStats { repeated int64 totalFoodMealsServed = 3; map allergenCounts = 4; map attributeCounts = 5; - map latestWeekdayFoodCounts = 6; + repeated string foods = 6; + map latestWeekdayFoodCounts = 7; } message StringToInt {