-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
192 lines (192 loc) · 7.72 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
{
"name": "k2hr3-app",
"version": "1.0.37",
"dependencies": {
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.0",
"@mui/icons-material": "^6.2.1",
"@mui/material": "^6.2.1",
"ajv": "^8.17.1",
"body-parser": "^1.20.3",
"config": "^3.3.12",
"cookie-parser": "^1.4.7",
"debug": "^4.4.0",
"ejs": "^3.1.10",
"express": "^4.21.2",
"express-session": "^1.18.1",
"jose": "^5.9.6",
"morgan": "^1.10.0",
"openid-client": "^5.7.1",
"passport": "^0.7.0",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-transition-group": "^4.4.5",
"rotating-file-stream": "^3.2.5",
"serve-favicon": "^2.5.0",
"whatwg-fetch": "^3.6.20"
},
"bin": {
"k2hr3-app": "./bin/www",
"k2hr3-build-all-licenses": "./bin/build_all_licenses"
},
"description": "K2HR3 Web Application is K2hdkc based Resource and Roles and policy Rules",
"main": "app.js",
"directories": {
"bin": "bin",
"config": "config",
"public": "public",
"routes": "routes",
"src": "src",
"test": "test",
"views": "views"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/eslint-parser": "^7.25.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-decorators": "^7.25.9",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.26.3",
"babel-jest": "^29.7.0",
"babel-loader": "^9.2.1",
"css-loader": "^7.1.2",
"eslint": "^8.57.1",
"eslint-plugin-react": "^7.37.2",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"license-checker": "^25.0.1",
"react-test-context-provider": "^2.2.0",
"react-test-renderer": "^18.3.1",
"style-loader": "^4.0.0",
"webpack": "^5.97.1",
"webpack-cli": "^5.1.4"
},
"browser": {
"crypto": false
},
"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 stop\n npm run build\n npm run build:dbg\n npm run build:all\n npm run build:all:dbg\n npm run build:webpack\n npm run build:webpack:dbg\n npm run build:license\n npm run test\n npm run test:all\n npm run test:lint\n npm run test:jest\n npm run test:update\n npm run test:watch\n npm run deploy\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",
"start:prod:debug:nobreak": "echo '' && echo 'Start on production with debugging no break' && echo '' && bin/run.sh --production --debug-nobrk",
"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",
"start:dev:debug:nobreak": "echo '' && echo 'Start on development with debugging no break' && echo '' && bin/run.sh --development --debug-nobrk",
"stop": "bin/run.sh --stop && echo '' && echo 'Stop - Success' && echo ''",
"build": "npm run build:all",
"build:dbg": "npm run build:all:dbg",
"build:all": "npm run build:license && npm run build:webpack",
"build:all:dbg": "npm run build:license && npm run build:webpack:dbg",
"build:webpack": "echo '' && echo 'Start Production Build' && echo '' && webpack --config webpack.config.js --progress --mode production && echo '' && echo 'Production Build - Success' && echo ''",
"build:webpack:dbg": "echo '' && echo 'Start Development Build' && echo '' && NODE_ENV=development webpack --config webpack.config.js --progress --mode development && echo '' && echo 'Development Build - Success' && echo ''",
"build:license": "echo '' && echo 'Extract license of dependent libraries' && echo '' && bin/build_all_licenses && echo ''",
"test": "npm run test:all",
"test:all": "echo 'All Test - ESLint and JEST' && npm run test:lint && npm run test:jest",
"test:lint": "echo 'Run ESlint(NOTE: maybe install eslint in global)' && eslint app.js webpack.config.js bin/www routes/*.js routes/*/*.js src/*/*.js src/*.jsx src/*/*.jsx tests/*/*.js tests/*/*.jsx && echo 'ESlint - Success' && echo ''",
"test:jest": "echo 'Run JEST' && jest --env=jsdom --silent && echo 'JEST - Success' && echo ''",
"test:update": "echo 'Update JEST snapshot' && jest --env=jsdom --updateSnapshot --silent && echo 'Update JEST snapshot - Success' && echo ''",
"test:watch": "echo 'Start JEST watch' && jest --env=jsdom --watch --silent && echo 'Start JEST watch - Success' && echo ''",
"deploy": "echo 'Deploy github pages for demo' && demo/demo_deploy.sh && echo 'Deploy github pages for demo - Success' && echo ''"
},
"repository": {
"type": "git",
"url": "[email protected]:yahoojapan/k2hr3_app.git"
},
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/yahoojapan/k2hr3_app/issues",
"email": "[email protected]"
},
"homepage": "https://demo.k2hr3.antpick.ax/",
"keywords": [
"K2HR3",
"K2HASH",
"K2HDKC",
"CHMPX",
"ROLE",
"POLICY",
"RULE",
"RESOURCE",
"express",
"ejs",
"webpack",
"react",
"babel",
"material-ui"
],
"jest": {
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/tests/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/tests/__mocks__/styleMock.js"
},
"globals": {
"k2hr3global": {
"r3apischeme": "http",
"r3apihost": "localhost",
"r3apiport": "3000",
"r3appmenu": "[{\"name\":\"Dummy Menu\",\"url\":\"https://localhost/dummy/menu/\"}]",
"r3userdata": "\"#include\\n{{= %K2HR3_API_HOST_URI% }}/v1/userdata/TestRegisterPathForJEST\\n\"",
"username": "test",
"unscopedtoken": "UnscopedUserToken_ForTestByJEST",
"uselocaltenant": true,
"dbgheader": "x-k2hr3-debug",
"dbgvalue": "debug",
"dbgresheader": "x-k2hr3-error"
}
},
"testEnvironmentOptions": {
"url": "https://localhost/"
}
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
[
"@babel/plugin-proposal-private-methods",
{
"loose": true
}
],
[
"@babel/plugin-proposal-private-property-in-object",
{
"loose": true
}
]
]
},
"author": [
"Takeshi Nakatani <[email protected]> (https://github.com/ggtakec)"
],
"contributors": [
"Hirotaka Wakabayashi <[email protected]> (https://github.com/hiwakaba)"
],
"license": "MIT"
}