Adding Prettier in messages

This commit is contained in:
David Négrier 2021-12-16 16:40:50 +01:00
parent fff45c2f92
commit 1ed10b0cdd
6 changed files with 381 additions and 9 deletions

View file

@ -9,8 +9,11 @@
"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/",
"precommit": "lint-staged",
"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"
"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",
"pretty": "yarn prettier --write 'JsonMessages/**/*.ts'",
"pretty-check": "yarn prettier --check 'JsonMessages/**/*.ts'"
},
"dependencies": {
"generic-type-guard": "^3.5.0",
@ -29,6 +32,8 @@
"eslint-plugin-sonarjs": "^0.5.0",
"grpc-tools": "^1.9.1",
"grpc_tools_node_protoc_ts": "^5.0.1",
"lint-staged": "^11.0.0",
"prettier": "^2.3.1",
"protobufjs": "^6.10.1",
"rimraf": "^3.0.2",
"shelljs": "^0.8.4",
@ -43,7 +48,12 @@
"gRPC",
"TypeScript"
],
"homepage": "https://github.com/CatsMiaow/node-grpc-typescript#readme",
"author": "CatsMiaow",
"license": "MIT"
"homepage": "https://github.com/thecodingmachine/workadventure",
"author": "David Négrier",
"license": "SEE LICENSE IN LICENSE.txt",
"lint-staged": {
"*.ts": [
"yarn run pretty"
]
}
}