Skip to content

Instantly share code, notes, and snippets.

@Esya
Created September 24, 2020 16:16
Show Gist options
  • Save Esya/01d91d046e64ced6da75aa065e52f735 to your computer and use it in GitHub Desktop.
Save Esya/01d91d046e64ced6da75aa065e52f735 to your computer and use it in GitHub Desktop.
load("//tools:service.bzl", "service")
service(
# Actual package name
package_name = "@wemaintain/microservice-devices-state",
additional_files = glob(["src/i18n/credentials.json"]),
has_grpc = True,
# Build time dependencies
build_deps = [
"@npm//@types/dotenv",
"@npm//@types/express",
"@npm//@types/graphql-relay",
],
# Dependencies at runtime.
service_deps = [
"//packages/testing",
"//packages/graphql-module",
"//packages/microservice-aws",
"//packages/nest-s3",
"//packages/nest-base",
"//packages/nest-grpc",
"//packages/logger",
"//packages/nest-notifications",
"//packages/typeorm-pick-connection",
"//services/bids/public",
"//services/emergencies/public",
"//services/contracts/public",
"//services/buildings/public",
"//services/elevators/public",
"//services/mechanics/public",
"//services/users/public",
"//services/visits/public",
"@npm//@auto-relay/typeorm",
"@npm//@auto-relay/sorting",
"@npm//@grpc/proto-loader",
"@npm//@nestjs/common",
"@npm//@nestjs/core",
"@npm//@nestjs/microservices",
"@npm//@nestjs/platform-express",
"@npm//@nestjs/typeorm",
"@npm//apollo-server-express",
"@npm//auto-relay",
"@npm//aws-sdk",
"@npm//class-validator",
"@npm//dotenv",
"@npm//google-spreadsheet",
"@npm//graphql",
"@npm//graphql-relay",
"@npm//graphql-tools",
"@npm//grpc",
"@npm//moment",
"@npm//protobufjs",
"@npm//type-graphql",
"@npm//typeorm",
"@npm//mysql",
],
# Service name, must match the path in the repo such as /services/{name}
service_name = "devices-state",
# Test deps - jest, jest-extended and faker already included
test_deps = [
"@npm//@types/supertest",
"@npm//@nestjs/testing",
"@npm//apollo-server-testing",
"@npm//supertest",
]
)
# This is needed by the generated public module
exports_files([
"tsconfig.json",
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment