-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
168 lines (168 loc) · 15.8 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "k2hr3-api",
"version": "1.0.37",
"dependencies": {
"@kubernetes/client-node": "^0.22.3",
"body-parser": "^1.20.3",
"config": "^3.3.12",
"cookie-parser": "~1.4.7",
"dateformat": "^4.6.3",
"debug": "~4.3.7",
"express": "^4.21.2",
"jose": "^5.9.6",
"k2hdkc": "^1.0.11",
"morgan": "~1.10.0",
"rotating-file-stream": "^3.2.5"
},
"bin": {
"k2hr3-api": "./bin/www",
"k2hr3-watcher": "./bin/watcher"
},
"description": "K2HR3 REST API is K2hdkc based Resource and Roles and policy Rules",
"main": "app.js",
"directories": {
"config": "config",
"bin": "bin",
"lib": "lib",
"routes": "routes",
"test": "test"
},
"devDependencies": {
"chai": "^4.5.0",
"chai-http": "^4.4.0",
"eslint": "^8.57.1",
"mocha": "^11.0.1",
"nyc": "^17.1.0"
},
"scripts": {
"help": "echo 'command list:\n npm run start\n npm run start:prod\n npm run start:production\n npm run start:prod:dbg\n npm run start:prod:debug\n npm run start:prod:debug:break\n npm run start:prod:debug:nobreak\n npm run start:dev\n npm run start:develop\n npm run start:dev:dbg\n npm run start:dev:debug\n npm run start:dev:debug:break\n npm run start:dev:debug:nobreak\n npm run start:watcher:prod\n npm run start:watcher:production\n npm run start:watcher:dev\n npm run start:watcher:develop\n npm run start:watcher:dbg\n npm run start:watcher:debug\n npm run start:watcher:debug:break\n npm run start:watcher:debug:nobreak\n npm run start:watcher:oneshot:prod\n npm run start:watcher:oneshot:production\n npm run start:watcher:oneshot:dev\n npm run start:watcher:oneshot:develop\n npm run start:watcher:oneshot:dbg\n npm run start:watcher:oneshot:debug\n npm run start:watcher:oneshot:debug:break\n npm run start:watcher:oneshot:debug:nobreak\n npm run stop\n npm run stop:watcher\n npm run test\n npm run test:lint\n npm run test:cover\n npm run test:auto:all{:dbg}\n npm run test:auto:version{:dbg}\n npm run test:auto:usertokens{:dbg}\n npm run test:auto:list{:dbg}\n npm run test:auto:resource{:dbg}\n npm run test:auto:policy{:dbg}\n npm run test:auto:role{:dbg}\n npm run test:auto:tenant{:dbg}\n npm run test:auto:service{:dbg}\n npm run test:auto:acr{:dbg}\n npm run test:auto:userdata{:dbg}\n npm run test:auto:extdata{:dbg}\n npm run test:auto:watcher{:dbg}\n npm run test:auto:templengine\n npm run test:auto:templengine:async\n npm run test:manual:apis:version_get\n npm run test:manual:apis:usertoken_postput\n npm run test:manual:apis:usertoken_gethead\n npm run test:manual:apis:policy_postput\n npm run test:manual:apis:policy_gethead\n npm run test:manual:apis:policy_delete\n npm run test:manual:apis:resource_postput\n npm run test:manual:apis:resource_gethead\n npm run test:manual:apis:resource_delete\n npm run test:manual:apis:role_postput\n npm run test:manual:apis:role_gethead\n npm run test:manual:apis:role_delete\n npm run test:manual:apis:tenant_postput\n npm run test:manual:apis:tenant_gethead\n npm run test:manual:apis:tenant_delete\n npm run test:manual:apis:service_postput\n npm run test:manual:apis:service_gethead\n npm run test:manual:apis:service_delete\n npm run test:manual:apis:acr_postput\n npm run test:manual:apis:acr_get\n npm run test:manual:apis:acr_delete\n npm run test:manual:apis:list_gethead\n npm run test:manual:apis:userdata_get\n npm run test:manual:apis:extdata_get\n npm run test:manual:apis:allusertenant_get\n npm run test:manual:apis:k2hr3keys_get\n npm run test:manual:load:k2hdkcdata:auto\n npm run test:manual:load:k2hdkcdata:local\n npm run test:manual:templengine\n npm run test:manual:templengine:async\n'",
"start": "npm run start:production",
"start:prod": "npm run start:production",
"start:production": "bin/run.sh -bg --production && echo '' && echo 'Start on production - Success' && echo ''",
"start:prod:dbg": "npm run start:prod:debug",
"start:prod:debug": "npm run start:prod:debug:break",
"start:prod:debug:break": "echo '' && echo 'Start on production with debugging' && echo '' && bin/run.sh --production --debug --debuglevel dbg",
"start:prod:debug:nobreak": "echo '' && echo 'Start on production with debugging no break' && echo '' && bin/run.sh --production --debug-nobrk --debuglevel dbg",
"start:dev": "npm run start:develop",
"start:develop": "echo '' && echo 'Start on development without debugging' && echo '' && bin/run.sh -bg --development",
"start:dev:dbg": "npm run start:dev:debug",
"start:dev:debug": "npm run start:dev:debug:break",
"start:dev:debug:break": "echo '' && echo 'Start on development with debugging' && echo '' && bin/run.sh --development --debug --debuglevel dbg",
"start:dev:debug:nobreak": "echo '' && echo 'Start on development with debugging no break' && echo '' && bin/run.sh --development --debug-nobrk --debuglevel dbg",
"start:watcher:prod": "npm run start:watcher:production",
"start:watcher:production": "bin/run.sh -bg --production --watcher && echo '' && echo 'Start watcher on production - Success' && echo ''",
"start:watcher:dev": "npm run start:watcher:develop",
"start:watcher:develop": "echo '' && echo 'Start watcher on development without debugging' && echo '' && bin/run.sh -bg --development --watcher",
"start:watcher:dbg": "npm run start:watcher:debug",
"start:watcher:debug": "npm run start:watcher:debug:break",
"start:watcher:debug:break": "echo '' && echo 'Start watcher on development with debugging' && echo '' && bin/run.sh --development --watcher --debug --debuglevel dbg",
"start:watcher:debug:nobreak": "echo '' && echo 'Start watcher on development with debugging no break' && echo '' && bin/run.sh --development --watcher --debug-nobrk --debuglevel dbg",
"start:watcher:oneshot:prod": "npm run start:watcher:oneshot:production",
"start:watcher:oneshot:production": "bin/run.sh -bg --production --watcher --oneshot && echo '' && echo 'Start watcher on production - Success' && echo ''",
"start:watcher:oneshot:dev": "npm run start:watcher:oneshot:develop",
"start:watcher:oneshot:develop": "echo '' && echo 'Start watcher on development without debugging' && echo '' && bin/run.sh -bg --development --watcher --oneshot",
"start:watcher:oneshot:dbg": "npm run start:watcher:oneshot:debug",
"start:watcher:oneshot:debug": "npm run start:watcher:oneshot:debug:break",
"start:watcher:oneshot:debug:break": "echo '' && echo 'Start watcher on development with debugging' && echo '' && bin/run.sh --development --watcher --oneshot --debug --debuglevel dbg",
"start:watcher:oneshot:debug:nobreak": "echo '' && echo 'Start watcher on development with debugging no break' && echo '' && bin/run.sh --development --watcher --oneshot --debug-nobrk --debuglevel dbg",
"stop": "bin/run.sh --stop && echo '' && echo 'Stop - Success' && echo ''",
"stop:watcher": "bin/run.sh --stop --watcher && echo '' && echo 'Stop watcher - Success' && echo ''",
"test": "npm run test:cover",
"test:lint": "eslint lib/*.js app.js bin/www bin/watcher routes/*.js tests/*.js",
"test:cover": "echo 'Test with coverage' && nyc --reporter=lcov --reporter=text npm run test:auto:all",
"test:auto": "echo 'Auto test : npm run test:auto:*\n test:auto:all{:dbg}\n test:auto:version{:dbg}\n test:auto:usertokens{:dbg}\n test:auto:list{:dbg}\n test:auto:resource{:dbg}\n test:auto:policy{:dbg}\n test:auto:role{:dbg}\n test:auto:tenant{:dbg}\n test:auto:tenant{:dbg}\n test:auto:service{:dbg}\n test:auto:acr{:dbg}\n test:auto:userdata{:dbg}\n test:auto:extdata{:dbg}\n test:auto:watcher{:dbg}\n test:auto:templengine\n test:auto:templengine:async\n'",
"test:auto:all": "echo 'All test' && npm run test:lint && tests/test.sh -t 8000 all && npm run test:auto:templengine && npm run test:auto:templengine:async && echo 'Succeed test' && echo ''",
"test:auto:all:dbg": "echo 'All test with debugging' && npm run test:lint && tests/test.sh -t 8000 -d dbg all && echo 'Succeed test' && echo ''",
"test:auto:version": "echo 'Test Version' && tests/test.sh -t 8000 version && echo 'Succeed test' && echo ''",
"test:auto:version:dbg": "echo 'Test Version with debugging' && tests/test.sh -t 8000 -d dbg version && echo 'Succeed test' && echo ''",
"test:auto:usertokens": "echo 'Test UserTokens' && tests/test.sh -t 8000 usertokens && echo 'Succeed test' && echo ''",
"test:auto:usertokens:dbg": "echo 'Test UserTokens with debugging' && tests/test.sh -t 8000 -d dbg usertokens && echo 'Succeed test' && echo ''",
"test:auto:list": "echo 'Test List' && tests/test.sh -t 8000 list && echo 'Succeed test' && echo ''",
"test:auto:list:dbg": "echo 'Test List with debugging' && tests/test.sh -t 8000 -d dbg list && echo 'Succeed test' && echo ''",
"test:auto:resource": "echo 'Test Resource' && tests/test.sh -t 8000 resource && echo 'Succeed test' && echo ''",
"test:auto:resource:dbg": "echo 'Test Resource with debugging' && tests/test.sh -t 8000 -d dbg resource && echo 'Succeed test' && echo ''",
"test:auto:policy": "echo 'Test Policy' && tests/test.sh -t 8000 policy && echo 'Succeed test' && echo ''",
"test:auto:policy:dbg": "echo 'Test Policy with debugging' && tests/test.sh -t 8000 -d dbg policy && echo 'Succeed test' && echo ''",
"test:auto:role": "echo 'Test Role' && tests/test.sh -t 8000 role && echo 'Succeed test' && echo ''",
"test:auto:role:dbg": "echo 'Test Role with debugging' && tests/test.sh -t 8000 -d dbg role && echo 'Succeed test' && echo ''",
"test:auto:tenant": "echo 'Test Tenant' && tests/test.sh -t 8000 tenant && echo 'Succeed test' && echo ''",
"test:auto:tenant:dbg": "echo 'Test Tenant with debugging' && tests/test.sh -t 8000 -d dbg tenant && echo 'Succeed test' && echo ''",
"test:auto:service": "echo 'Test Service' && tests/test.sh -t 8000 service && echo 'Succeed test' && echo ''",
"test:auto:service:dbg": "echo 'Test Service with debugging' && tests/test.sh -t 8000 -d dbg service && echo 'Succeed test' && echo ''",
"test:auto:acr": "echo 'Test ACR' && tests/test.sh -t 8000 acr && echo 'Succeed test' && echo ''",
"test:auto:acr:dbg": "echo 'Test ACR with debugging' && tests/test.sh -t 8000 -d dbg acr && echo 'Succeed test' && echo ''",
"test:auto:userdata": "echo 'Test Userdata' && tests/test.sh -t 8000 userdata && echo 'Succeed test' && echo ''",
"test:auto:userdata:dbg": "echo 'Test Userdata with debugging' && tests/test.sh -t 8000 -d dbg userdata && echo 'Succeed test' && echo ''",
"test:auto:extdata": "echo 'Test Extdata' && tests/test.sh -t 8000 extdata && echo 'Succeed test' && echo ''",
"test:auto:extdata:dbg": "echo 'Test Extdata with debugging' && tests/test.sh -t 8000 -d dbg extdata && echo 'Succeed test' && echo ''",
"test:auto:watcher": "echo 'Test Watcher Process' && tests/test.sh -t 8000 watcher && echo 'Succeed test' && echo ''",
"test:auto:watcher:dbg": "echo 'Test Watcher Process with debugging' && tests/test.sh -t 8000 -d dbg watcher && echo 'Succeed test' && echo ''",
"test:auto:templengine": "echo 'Test template engine' && tests/auto_template.sh && echo 'Succeed test' && echo ''",
"test:auto:templengine:async": "echo 'Test asynchronous template engine' && tests/auto_template.sh -a && echo 'Succeed test' && echo ''",
"test:manual": "echo 'Manual test : npm run test:manual:*\n test:manual:apis:version_get\n test:manual:apis:usertoken_postput\n test:manual:apis:usertoken_gethead\n test:manual:apis:policy_postput\n test:manual:apis:policy_gethead\n test:manual:apis:policy_delete\n test:manual:apis:resource_postput\n test:manual:apis:resource_gethead\n test:manual:apis:resource_delete\n test:manual:apis:role_postput\n test:manual:apis:role_gethead\n test:manual:apis:role_delete\n test:manual:apis:tenant_postput\n test:manual:apis:tenant_gethead\n test:manual:apis:tenant_delete\n test:manual:apis:service_postput\n test:manual:apis:service_gethead\n test:manual:apis:service_delete\n test:manual:apis:acr_postput\n test:manual:apis:acr_get\n test:manual:apis:acr_delete\n test:manual:apis:list_gethead\n test:manual:apis:userdata_get\n test:manual:apis:extdata_get\n test:manual:apis:allusertenant_get\n test:manual:apis:k2hr3keys_get\n test:manual:load:k2hdkcdata:auto\n test:manual:load:k2hdkcdata:local\n test:manual:templengine\n test:manual:templengine:async\n'",
"test:manual:apis:version_get": "tests/manual_test.sh version_get",
"test:manual:apis:usertoken_postput": "tests/manual_test.sh usertoken_postput",
"test:manual:apis:usertoken_gethead": "tests/manual_test.sh usertoken_gethead",
"test:manual:apis:policy_postput": "tests/manual_test.sh policy_postput",
"test:manual:apis:policy_gethead": "tests/manual_test.sh policy_gethead",
"test:manual:apis:policy_delete": "tests/manual_test.sh policy_delete",
"test:manual:apis:resource_postput": "tests/manual_test.sh resource_postput",
"test:manual:apis:resource_gethead": "tests/manual_test.sh resource_gethead",
"test:manual:apis:resource_delete": "tests/manual_test.sh resource_delete",
"test:manual:apis:role_postput": "tests/manual_test.sh role_postput",
"test:manual:apis:role_gethead": "tests/manual_test.sh role_gethead",
"test:manual:apis:role_delete": "tests/manual_test.sh role_delete",
"test:manual:apis:tenant_postput": "tests/manual_test.sh tenant_postput",
"test:manual:apis:tenant_gethead": "tests/manual_test.sh tenant_gethead",
"test:manual:apis:tenant_delete": "tests/manual_test.sh tenant_delete",
"test:manual:apis:service_postput": "tests/manual_test.sh service_postput",
"test:manual:apis:service_gethead": "tests/manual_test.sh service_gethead",
"test:manual:apis:service_delete": "tests/manual_test.sh service_delete",
"test:manual:apis:acr_postput": "tests/manual_test.sh acr_postput",
"test:manual:apis:acr_get": "tests/manual_test.sh acr_get",
"test:manual:apis:acr_delete": "tests/manual_test.sh acr_delete",
"test:manual:apis:list_gethead": "tests/manual_test.sh list_gethead",
"test:manual:apis:userdata_get": "tests/manual_test.sh userdata_get",
"test:manual:apis:extdata_get": "tests/manual_test.sh extdata_get",
"test:manual:apis:allusertenant_get": "tests/manual_test.sh allusertenant_get",
"test:manual:apis:k2hr3keys_get": "tests/manual_test.sh k2hr3keys_get",
"test:manual:load:k2hdkcdata:auto": "tests/k2hdkc_test_load.sh --for_auto_test && echo '' && echo 'Load test data for automatically testing - Success' && echo ''",
"test:manual:load:k2hdkcdata:local": "tests/k2hdkc_test_load.sh --main 33348 --sub 37146 && echo '' && echo 'Load test data for local testing - Success' && echo ''",
"test:manual:templengine": "tests/auto_template.sh && echo '' && echo 'Test template engine - Success' && echo ''",
"test:manual:templengine:async": "tests/auto_template.sh -a && echo '' && echo 'Test asynchronous template engine - Success' && echo ''"
},
"repository": {
"type": "git",
"url": "[email protected]:yahoojapan/k2hr3_api.git"
},
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/yahoojapan/k2hr3_api/issues",
"email": "[email protected]"
},
"homepage": "https://k2hr3.antpick.ax/",
"keywords": [
"K2HR3",
"RBAC",
"K2HASH",
"K2HDKC",
"CHMPX",
"ROLE",
"POLICY",
"RULE",
"RESOURCE",
"express",
"ejs",
"webpack",
"babel"
],
"author": [
"Takeshi Nakatani <[email protected]> (https://github.com/ggtakec)"
],
"contributors": [
"Hirotaka Wakabayashi <[email protected]> (https://github.com/hiwakaba)"
],
"license": "MIT"
}