partey_workadventure/messages/package.json

50 lines
2.2 KiB
JSON
Raw Normal View History

2020-09-17 17:14:47 +02:00
{
"name": "workadventure-messages",
"version": "1.0.0",
"description": "",
"scripts": {
"proto": "grpc_tools_node_protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --grpc_out=generated --js_out=\"import_style=commonjs,binary:generated\" --ts_out=generated -I ./protos protos/*.proto",
"copy-to-back": "rm -rf ../back/src/Messages/generated && cp -rf generated/ ../back/src/Messages/generated",
"copy-to-front": "rm -rf ../front/src/Messages/generated && cp -rf generated/ ../front/src/Messages/generated",
"copy-to-pusher": "rm -rf ../pusher/src/Messages/generated && cp -rf generated/ ../pusher/src/Messages/generated",
"json-copy-to-pusher": "rm -rf ../pusher/src/Messages/JsonMessages/* && cp -rf JsonMessages/* ../pusher/src/Messages/JsonMessages/",
"json-copy-to-front": "rm -rf ../front/src/Messages/JsonMessages/* && cp -rf JsonMessages/* ../front/src/Messages/JsonMessages/",
"proto-all": "yarn run proto && yarn run copy-to-back && yarn run copy-to-front && yarn run copy-to-pusher && yarn run json-copy-to-pusher && yarn run json-copy-to-front",
"proto:watch": "yarn run proto-all; inotifywait -q -m -e close_write protos/messages.proto JsonMessages/ | while read -r filename event; do yarn run proto-all; done"
2020-09-17 17:14:47 +02:00
},
"dependencies": {
"generic-type-guard": "^3.5.0",
2020-09-17 17:14:47 +02:00
"google-protobuf": "^3.13.0",
"grpc": "^1.24.4"
2020-09-17 17:14:47 +02:00
},
"devDependencies": {
"@types/google-protobuf": "^3.7.4",
"@types/node": "^14.14.7",
"@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0",
"dtslint": "^4.0.5",
"eslint": "^7.13.0",
"eslint-config-airbnb-typescript": "^12.0.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-sonarjs": "^0.5.0",
"grpc-tools": "^1.9.1",
"grpc_tools_node_protoc_ts": "^5.0.1",
"protobufjs": "^6.10.1",
"rimraf": "^3.0.2",
"shelljs": "^0.8.4",
"typescript": "^4.0.5"
},
"repository": {
"type": "git",
"url": "https://github.com/CatsMiaow/node-grpc-typescript.git"
},
"keywords": [
"Node.js",
"gRPC",
"TypeScript"
],
"homepage": "https://github.com/CatsMiaow/node-grpc-typescript#readme",
"author": "CatsMiaow",
"license": "MIT"
2020-09-17 17:14:47 +02:00
}