-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
65 lines (65 loc) · 2.77 KB
/
composer.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
{
"name": "bearsunday/thrift",
"version": "0.1.0",
"license": "MIT",
"autoload": {
"psr-4": {
"BEARSunday\\Thrift\\": "src"
},
"classmap": ["gen-php"]
},
"autoload-dev": {
"psr-4": {
"MyVendor\\MyApp\\": "tests/stub-resource/src"
}
},
"authors": [
{
"name": "Akihito Koriyama",
"email": "[email protected]"
}
],
"require": {
"php": "^8.1",
"apache/thrift": "^0.19.0",
"bear/package": "^1.10",
"bear/resource": "^1.21"
},
"require-dev": {
"doctrine/coding-standard": "^12.0",
"squizlabs/php_codesniffer": "^3.5"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"process-timeout":0
},
"scripts": {
"build:all": ["@build:thrift", "@build:go", "@build:py", "@build:php", "@build:bear", "@build:rb"],
"build:thrift": [
"rm -rf client/go_client/gen*",
"rm -rf client/py_client/gen*",
"rm -rf client/rb_client/gen*",
"thrift -r --gen php:server ResourceService.thrift",
"thrift -r --gen go -o client/go_client ResourceService.thrift && mv client/go_client/gen-go client/go_client/gen_go",
"thrift -r --gen py -o client/py_client ResourceService.thrift && mv client/py_client/gen-py client/py_client/gen_py",
"thrift -r --gen rb -o client/rb_client ResourceService.thrift && mv client/rb_client/gen-rb client/rb_client/gen_rb"
],
"build:go": "cd client/go_client && go build",
"build:py": "cd client/py_client && python3 -m venv ./ && . ./bin/activate && ./bin/pip install thrift",
"build:php": "composer update && cd tests/Fake/app && composer update",
"build:bear": "cd client/bear_client && composer dump",
"build:rb": "cd client/rb_client && bundle install",
"serve": "php bin/serve.php",
"run:all": ["@run:go", "@run:py", "@run:php", "@run:bear", "@run:rb"],
"run:go": "./client/go_client/go_client 127.0.0.1 9090 get \"page://self/?name=World!\"",
"run:py": "./client/py_client/bin/python3 ./client/py_client/main.py 127.0.0.1 9090 get \"page://self/?name=World!\"",
"run:php": "php ./client/php_client/main.php get \"page://self/?name=World!\"",
"run:bear": "php ./client/bear_client/main.php",
"run:rb": "cd ./client/rb_client && bundle exec ruby main.rb 127.0.0.1 9090 get \"page://self/?name=World!\"",
"cs": ["phpcs --standard=./phpcs.xml src"],
"cs-fix": ["phpcbf src bin --standard=./phpcs.xml"],
"test": ["php bin/serve.php &", "sleep 1", "@run:go", "@run:py", "@run:php", "@run:bear"]
}
}