-
Notifications
You must be signed in to change notification settings - Fork 35
/
package.json
113 lines (113 loc) · 7.33 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"private": true,
"author": "smnbbrv",
"scripts": {
"ng": "ng",
"start": "run-s start:lib:protoc-gen-ng",
"start:lib:protoc-gen-ng": "nodemon --watch packages/protoc-gen-ng/src --watch packages/protoc-gen-ng/test/proto -e ts,proto --exec 'npm run build:test && npm run build:lib:protoc-gen-ng && npm run test:lib:protoc-gen-ng:generate && npm run test:lib:protoc-gen-ng:generate-grpc-web && echo \"Done\"'",
"build": "run-s build:lib build:test",
"build:lib": "run-s build:lib:common build:lib:core build:lib:grpc-web-client build:lib:improbable-eng-grpc-web-client build:lib:worker build:lib:worker-client build:lib:protoc-gen-ng build:lib:well-known-types",
"build:lib:core": "ng build core --configuration production && cpy LICENSE.md dist/core/",
"build:lib:common": "ng build common --configuration production && cpy LICENSE.md dist/common/",
"build:lib:grpc-web-client": "ng build grpc-web-client --configuration production && cpy LICENSE.md dist/grpc-web-client/",
"build:lib:improbable-eng-grpc-web-client": "ng build improbable-eng-grpc-web-client --configuration production && cpy LICENSE.md dist/improbable-eng-grpc-web-client/",
"build:lib:worker": "ng build worker --configuration production && cpy LICENSE.md dist/worker/",
"build:lib:worker-client": "ng build worker-client --configuration production && cpy LICENSE.md dist/worker-client/",
"build:lib:protoc-gen-ng": "cd packages/protoc-gen-ng && rimraf ../../dist/protoc-gen-ng && tsc -p tsconfig.build.json && chmod +x ../../dist/protoc-gen-ng/main.js && cpy package.json ../../dist/protoc-gen-ng/ && cpy ../../LICENSE.md ../../dist/protoc-gen-ng/ && cpy README.md ../../dist/protoc-gen-ng/",
"build:lib:well-known-types": "ng build well-known-types --configuration production && cpy LICENSE.md dist/well-known-types/",
"build:lib:well-known-types:generate": "rimraf packages/well-known-types/src/lib/* && $(pwd)/node_modules/.bin/grpc_tools_node_protoc --plugin=protoc-gen-ng=$(pwd)/dist/protoc-gen-ng/main.js --ng_out=config=packages/well-known-types/ngx-grpc.conf.js:./packages/well-known-types/src/lib packages/well-known-types/generate.proto && rimraf packages/well-known-types/src/lib/packages",
"build:test": "tsc -p packages/protoc-gen-ng/test/tsconfig.packages.json",
"test": "run-s test:lib:protoc-gen-ng",
"test:lib": "run-s test:lib:common test:lib:core test:lib:worker test:lib:worker-client test:lib:protoc-gen-ng",
"test:lib:common": "ng test common --watch=false --progress=false --browsers=ChromeHeadlessCI --code-coverage",
"test:lib:core": "ng test core --watch=false --progress=false --browsers=ChromeHeadlessCI --code-coverage",
"test:lib:worker": "ng test worker --watch=false --progress=false --browsers=ChromeHeadlessCI --code-coverage",
"test:lib:worker-client": "ng test worker-client --watch=false --progress=false --browsers=ChromeHeadlessCI --code-coverage",
"test:lib:protoc-gen-ng": "jest -c packages/protoc-gen-ng/jest.config.js",
"test:lib:protoc-gen-ng:watch": "jest -c packages/protoc-gen-ng/jest.config.js --watchAll",
"test:lib:protoc-gen-ng:generate": "cd packages/protoc-gen-ng && mkdir -p ./test/out && rimraf ./test/out/* && $(pwd)/../../node_modules/.bin/grpc_tools_node_protoc --plugin=protoc-gen-ng=$(pwd)/../../dist/protoc-gen-ng/main.js --ng_out=config=./ngx-grpc.conf.js:./test/out -I test/proto $(find test/proto -iname \"*.proto\")",
"test:lib:protoc-gen-ng:generate-grpc-web": "cd packages/protoc-gen-ng && mkdir -p ./test/out-grpc-web && rimraf ./test/out-grpc-web/* && $(pwd)/../../node_modules/.bin/grpc_tools_node_protoc --plugin=protoc-gen-grpc=$(pwd)/../..node_modules/.bin/protoc_gen_grpc_web -I=test/proto --js_out=import_style=commonjs:test/out-grpc-web --grpc-web_out=import_style=commonjs+dts,mode=grpcweb:test/out-grpc-web $(find test/proto -iname \"*.proto\")",
"lint": "run-s lint:ng lint:lib:protoc-gen-ng",
"lint:ng": "ng lint",
"lint:lib:protoc-gen-ng": "eslint -c packages/protoc-gen-ng/.eslintrc.json 'packages/protoc-gen-ng/src/**/*.ts' 'packages/protoc-gen-ng/test/spec/**/*.ts'",
"release": "semantic-release",
"examples": "run-p examples:basic examples:backend",
"examples:basic": "ng serve basic-example --port 4200",
"examples:backend": "docker-compose -f examples/backend/docker-compose.yaml down && docker-compose -f examples/backend/docker-compose.yaml up --remove-orphans --build",
"examples:backend:no-proxy": "cd examples/backend && npm start",
"examples:proto:generate": "run-s examples:proto:generate-backend examples:proto:generate-basic",
"examples:proto:generate-basic": "mkdir -p examples/basic-example/src/proto && rm -rf examples/basic-example/src/proto/* && $(pwd)/node_modules/.bin/grpc_tools_node_protoc --plugin=protoc-gen-ng=$(pwd)/dist/protoc-gen-ng/main.js --ng_out=config=examples/basic-example/ngx-grpc.conf.js:examples/basic-example/src/proto -I examples/proto $(find examples/proto -iname \"*.proto\")",
"examples:proto:generate-backend": "cd examples/backend && npm run proto:generate"
},
"dependencies": {
"@angular/animations": "^13.2.3",
"@angular/cdk": "^13.2.3",
"@angular/common": "^13.2.3",
"@angular/compiler": "^13.2.3",
"@angular/core": "^13.2.3",
"@angular/forms": "^13.2.3",
"@angular/material": "^13.2.3",
"@angular/platform-browser": "^13.2.3",
"@angular/platform-browser-dynamic": "^13.2.3",
"@angular/router": "^13.2.3",
"@improbable-eng/grpc-web": "^0.14.0",
"google-protobuf": "^3.15.8",
"grpc-web": "^1.3.0",
"rxjs": "^6.6.3",
"tslib": "^2.0.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^13.2.4",
"@angular-eslint/builder": "13.1.0",
"@angular-eslint/eslint-plugin": "13.1.0",
"@angular-eslint/eslint-plugin-template": "13.1.0",
"@angular-eslint/schematics": "13.1.0",
"@angular-eslint/template-parser": "13.1.0",
"@angular/cli": "^13.2.4",
"@angular/compiler-cli": "^13.2.3",
"@angular/language-service": "^13.2.3",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/google-protobuf": "^3.15.2",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/jest": "^26.0.15",
"@types/node": "^12.19.2",
"@types/prettier": "^2.1.5",
"@typescript-eslint/eslint-plugin": "5.3.0",
"@typescript-eslint/parser": "5.3.0",
"babel-jest": "^27.5.1",
"cpy-cli": "^4.0.0",
"eslint": "^8.2.0",
"eslint-plugin-import": "2.25.2",
"eslint-plugin-jsdoc": "latest",
"eslint-plugin-prefer-arrow": "latest",
"grpc-tools": "^1.11.3",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"jest": "^27.2.5",
"karma": "~6.3.4",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^13.2.1",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5",
"prettier": "^2.1.2",
"protractor": "~7.0.0",
"rimraf": "^3.0.2",
"semantic-release": "^19.0.2",
"ts-jest": "^27.0.5",
"ts-node": "^9.1.1",
"typescript": "~4.5.5",
"winston": "^3.3.3"
},
"optionalDependencies": {
"protoc-gen-grpc-web": "^1.3.0"
}
}