This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
132 lines (132 loc) · 5.81 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
{
"name": "pipelines-frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@kubeflow/frontend": "github:kubeflow/frontend#fffc59d",
"@material-ui/core": "3.7.1",
"@material-ui/icons": "^3.0.1",
"brace": "^0.11.1",
"d3": "^5.7.0",
"d3-dsv": "^1.0.10",
"dagre": "^0.8.2",
"google-protobuf": "^3.6.1",
"http-proxy-middleware": "^0.19.0",
"immer": "^1.7.4",
"js-yaml": "^3.13.1",
"lodash": "^4.17.15",
"markdown-to-jsx": "^6.10.3",
"portable-fetch": "^3.0.0",
"re-resizable": "^4.9.0",
"react": "^16.12.0",
"react-ace": "^7.0.2",
"react-dom": "^16.12.0",
"react-dropzone": "^5.1.0",
"react-router-dom": "^4.3.1",
"react-virtualized": "^9.20.1",
"react-vis": "^1.11.2",
"typestyle": "^2.0.4"
},
"scripts": {
"analyze-bundle": "node analyze_bundle.js",
"apis": "npm run apis:experiment && npm run apis:job && npm run apis:pipeline && npm run apis:run && npm run apis:filter && npm run apis:visualization && npm run apis:auth",
"apis:experiment": "java -jar swagger-codegen-cli.jar generate -i ../backend/api/swagger/experiment.swagger.json -l typescript-fetch -o ./src/apis/experiment -c ./swagger-config.json",
"apis:job": "java -jar swagger-codegen-cli.jar generate -i ../backend/api/swagger/job.swagger.json -l typescript-fetch -o ./src/apis/job -c ./swagger-config.json",
"apis:pipeline": "java -jar swagger-codegen-cli.jar generate -i ../backend/api/swagger/pipeline.swagger.json -l typescript-fetch -o ./src/apis/pipeline -c ./swagger-config.json",
"apis:run": "java -jar swagger-codegen-cli.jar generate -i ../backend/api/swagger/run.swagger.json -l typescript-fetch -o ./src/apis/run -c ./swagger-config.json",
"apis:filter": "java -jar swagger-codegen-cli.jar generate -i ../backend/api/swagger/filter.swagger.json -l typescript-fetch -o ./src/apis/filter -c ./swagger-config.json",
"apis:visualization": "java -jar swagger-codegen-cli.jar generate -i ../backend/api/swagger/visualization.swagger.json -l typescript-fetch -o ./src/apis/visualization -c ./swagger-config.json",
"apis:auth": "java -jar swagger-codegen-cli.jar generate -i ../backend/api/swagger/auth.swagger.json -l typescript-fetch -o ./server/src/generated/apis/auth -c ./swagger-config.json",
"build": "npm run lint && EXTEND_ESLINT=true react-scripts build",
"docker": "COMMIT_HASH=`git rev-parse HEAD`; docker build -q -t ml-pipelines-frontend:${COMMIT_HASH} --build-arg COMMIT_HASH=${COMMIT_HASH} --build-arg DATE=\"`date -u`\" -f Dockerfile ..",
"eject": "react-scripts eject",
"format": "prettier --write './**/*.{ts,tsx}'",
"format:check": "prettier --check './**/*.{ts,tsx}' || node ./scripts/check-format-error-info.js",
"java": "java -version",
"lint": "eslint --ext js,ts,tsx src",
"mock:api": "ts-node-dev -O '{\"module\": \"commonjs\"}' --project mock-backend/tsconfig.json mock-backend/mock-api-server.ts 3001",
"mock:server": "node server/dist/server.js build",
"mock:server:inspect": "node inspect server/dist/server.js build",
"postinstall": "cd ./server && npm ci && cd ../mock-backend && npm ci",
"start:proxy": "./scripts/start-proxy.sh",
"start:proxy-and-server": "./scripts/start-proxy-and-server.sh",
"start:proxy-and-server-inspect": "./scripts/start-proxy-and-server.sh --inspect",
"start": "EXTEND_ESLINT=true react-scripts start",
"sync-backend-sample-config": "node scripts/sync-backend-sample-config.js",
"test": "react-scripts test",
"test:server:coverage": "cd ./server && npm test -- --coverage && cd ..",
"test:coverage": "npm test -- --coverage && npm run test:server:coverage",
"test:ci": "export CI=true && npm run format:check && npm run lint && npm run test:coverage",
"test:ci:prow": "npm set unsafe-perm true && npm ci && npm run test:ci && ./scripts/report-coveralls.sh"
},
"devDependencies": {
"@google-cloud/storage": "^4.1.3",
"@testing-library/react": "^9.4.0",
"@types/d3": "^5.0.0",
"@types/d3-dsv": "^1.0.33",
"@types/dagre": "^0.7.40",
"@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/express": "^4.16.0",
"@types/google-protobuf": "^3.7.2",
"@types/http-proxy-middleware": "^0.17.5",
"@types/jest": "^23.3.2",
"@types/js-yaml": "^3.12.3",
"@types/lodash": ">=4.14.117",
"@types/markdown-to-jsx": "^6.9.0",
"@types/node": "^10.17.11",
"@types/prettier": "^1.19.0",
"@types/react": "^16.9.22",
"@types/react-dom": "^16.9.5",
"@types/react-router-dom": "^4.3.1",
"@types/react-test-renderer": "^16.0.2",
"@types/react-virtualized": "^9.18.7",
"browserslist": "4.8.7",
"coveralls": "^3.0.2",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"enzyme-to-json": "^3.3.4",
"prettier": "1.19.1",
"react-router-test-context": "^0.1.0",
"react-scripts": "^3.4.1",
"react-test-renderer": "^16.5.2",
"snapshot-diff": "^0.6.1",
"swagger-ts-client": "^0.9.6",
"ts-node": "^7.0.1",
"ts-node-dev": "^1.0.0-pre.30",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.5",
"webpack": "4.42.0",
"webpack-bundle-analyzer": "^3.6.1"
},
"homepage": "./",
"jest": {
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/**/*.d.ts",
"!src/apis/**/*.ts",
"!src/icons/*.tsx",
"!src/third_party/*",
"!src/index.tsx",
"!src/CSSReset.tsx"
],
"snapshotSerializers": [
"./src/__serializers__/mock-function",
"snapshot-diff/serializer.js",
"enzyme-to-json/serializer"
]
},
"proxy": "http://localhost:3001",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}