forked from okta/samples-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
58 lines (58 loc) · 2.41 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
{
"name": "okta/samples-php",
"description": "PHP Sample Applications for Okta",
"license": "Apache-2.0",
"authors": [
{
"name": "Okta Developers",
"email": "developers@okta.com"
}
],
"require": {
"php": "^7.0"
},
"scripts": {
"post-install-cmd": [
"npm install",
"echo \"Installing Custom Login Dependencies\" && cd custom-login && composer install",
"echo \"Installing Okta Hosted Login Dependencies\" && cd okta-hosted-login && composer install",
"echo \"Installing Resource Server Dependencies\" && cd resource-server && composer install"
],
"post-update-cmd": [
"npm update",
"echo \"Updating Custom Login Dependencies\" && cd custom-login && composer update",
"echo \"Updating Okta Hosted Login Dependencies\" && cd okta-hosted-login && composer update",
"echo \"Updating Resource Server Dependencies\" && cd resource-server && composer update"
],
"test": [
"composer test:e2e",
"composer test:resource-server"
],
"test:e2e": [
"composer setup-env",
"composer test:custom-login",
"composer test:okta-hosted-login"
],
"test:custom-login": [
"composer setup-env",
"npm run pretest && npm run test:custom-login"
],
"test:okta-hosted-login": [
"composer setup-env",
"npm run pretest && npm run test:okta-hosted-login"
],
"test:resource-server": [
"composer setup-env",
"npm run pretest && npm run test:resource-server"
],
"sample:custom-login": "php -S 127.0.0.1:8080 -t ./custom-login ./custom-login/index.php",
"sample:okta-hosted-login": "php -S 127.0.0.1:8080 -t ./okta-hosted-login ./okta-hosted-login/index.php",
"sample:resource-server": "php -S 127.0.0.1:8000 -t ./resource-server ./resource-server/index.php",
"setup-env": "npm run setup-env",
"post-autoload-dump": [
"echo \"Dumping Custom Login Autoload\" && cd custom-login && composer dump-autoload",
"echo \"Dumping Okta Hosted Login Autoload\" && cd okta-hosted-login && composer dump-autoload",
"echo \"Dumping Resource Server Autoload\" && cd resource-server && composer dump-autoload"
]
}
}