-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
180 lines (180 loc) · 7.55 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
{
"name": "portal-core-components",
"version": "2.11.0",
"main": "./lib/index.js",
"private": true,
"homepage": "http://localhost:3010/core-components",
"dependencies": {
"@date-io/moment": "^1.3.13",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-regular-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3",
"@material-ui/lab": "~4.0.0-alpha.61",
"@material-ui/pickers": "^3.3.11",
"@material-ui/styles": "^4.11.5",
"@stomp/rx-stomp": "^2.0.0",
"@stomp/stompjs": "^7.0.0",
"@types/dateformat": "^5.0.2",
"@types/lodash": "^4.17.7",
"@types/react": "^17.0.80",
"@types/react-copy-to-clipboard": "^5.0.7",
"@types/react-dom": "^17.0.25",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"@types/sockjs-client": "^1.5.4",
"@types/ua-parser-js": "^0.7.39",
"@types/wicg-file-system-access": "^2023.10.5",
"clsx": "^2.1.1",
"core-js": "^3.37.1",
"d3-drag": "^3.0.0",
"d3-selection": "^3.0.0",
"d3-transition": "^3.0.1",
"dateformat": "^5.0.3",
"dom-to-image": "^2.6.0",
"dygraphs": "~2.2.1",
"file-saver": "^2.0.5",
"highlight.js": "^11.10.0",
"history": "^5.3.0",
"html-react-parser": "^5.1.12",
"leaflet": "~1.6.0",
"lodash": "^4.17.21",
"material-table": "^1.69.3",
"moment": "^2.30.1",
"node-lzw": "^0.3.1",
"papaparse": "^5.4.1",
"pdfjs-dist": "~4.4.168",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^17.0.2",
"react-error-boundary": "^4.0.13",
"react-id-generator": "^3.0.2",
"react-leaflet": "^2.8.0",
"react-leaflet-grouped-layer-control": "0.0.13",
"react-markdown": "^8.0.7",
"react-router": "^6.25.1",
"react-router-dom": "^6.25.1",
"react-select": "^5.8.0",
"redux": "^4.2.1",
"redux-observable": "^2.0.0",
"remark-gfm": "^3.0.1",
"rxjs": "^7.8.1",
"sockjs-client": "^1.6.1",
"tinycolor2": "^1.6.0",
"ua-parser-js": "^1.0.38",
"universal-cookie": "^7.2.0",
"zod": "^3.23.8"
},
"peerDependencies": {
"commander": "^12.1.0",
"cssnano": "^7.0.4",
"jsdom": "^24.1.1",
"node-fetch": "^3.3.2",
"postcss": "^8.4.40",
"prettier": "^3.3.3",
"worker-loader": "^3.0.8"
},
"peerDependenciesMeta": {
"commander": {
"optional": true
},
"cssnano": {
"optional": true
},
"jsdom": {
"optional": true
},
"node-fetch": {
"optional": true
},
"postcss": {
"optional": true
},
"prettier": {
"optional": true
},
"worker-loader": {
"optional": true
}
},
"devDependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.24.9",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/plugin-transform-object-assign": "^7.24.7",
"@babel/preset-env": "^7.24.8",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@jest/globals": "^29.7.0",
"@testing-library/react-hooks": "^8.0.1",
"@typescript-eslint/parser": "^7.17.0",
"commander": "^12.1.0",
"cssnano": "^7.0.4",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-react": "^7.35.0",
"express": "^4.19.2",
"html-loader": "^5.1.0",
"jest-canvas-mock": "^2.5.2",
"jsdom": "^24.1.1",
"node-fetch": "^3.3.2",
"postcss": "^8.4.40",
"prettier": "^3.3.3",
"react-scripts": "^5.0.1",
"react-test-renderer": "^17.0.2",
"typescript": "~4.9.5",
"worker-loader": "^3.0.8"
},
"scripts": {
"start": "react-scripts start",
"start:prod": "node server.js",
"build": "react-scripts build",
"test": "npx jest --config jest.config.js",
"test:clear-cache": "npx jest --clearCache",
"test:updateSnapshots": "npx jest --config jest.config.js --updateSnapshot",
"lint": "(npx eslint src/ --ext .js,.jsx,.ts,.tsx || true) && exit 0",
"lint:fix": "(npx eslint --fix src/ --ext .js,.jsx,.ts,.tsx || true) && exit 0",
"lib": "npm run lib:pre-process && npm run lib:babel-build && npm run lib:types && npm run lib:post-cleanup",
"lib:babel-build": "NODE_ENV=production && babel ./src/lib_components --out-dir lib --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored",
"lib:clean": "(rm -r ./lib || true) && (rm -r ./src/lib_components/remoteAssets/* || true)",
"lib:clean-build": "npm run lib:clean && npm run lib",
"lib:types": "npx tsc --project tsconfig.d.json",
"lib:pre-process": "node ./scripts/lib/lib-cache-remote-assets.js --prettify-index --css-replace-relative-urls",
"lib:post-cleanup": "npm run lib:post-clean-styleGuides && npm run lib:post-clean-img && npm run lib:post-clean-tests && node ./scripts/lib/lib-fix-worker-babel.js",
"lib:post-clean-styleGuides": "rm ./lib/components/**/StyleGuide.*",
"lib:post-clean-img": "rm -r ./lib/components/SiteMap/png && rm -r ./lib/components/SiteMap/svg_source && rm -r ./lib/components/DataThemeIcon/svg_source",
"lib:post-clean-tests": "rm -r ./lib/*/__tests__ && rm -r ./lib/*/*/__tests__",
"checks": "npm run lib && npm run lint && npm run test && npm run build",
"checks:docker": "npm run build:docker-image && npm run lib:docker && npm run test:docker && npm run build:docker",
"start:docker": "docker run --rm --tty --interactive --volume=/$(pwd):/app/src --volume=/app/src/node_modules --workdir=/app/src --publish=3010:3010 portal-core-components:latest-builder npm run start",
"start:docker-prod": "docker run --rm --tty --interactive --volume=/$(pwd):/app/src --volume=/app/src/node_modules --workdir=/app/src --publish=3000:3000 portal-core-components:latest-builder npm run start:prod",
"build:docker-clean": "docker image rm portal-core-components:latest-builder",
"build:docker-build-image": "docker buildx build --no-cache --tag portal-core-components:latest-builder --file ./build.Dockerfile .",
"build:docker-image": "(npm run build:docker-clean || true) && npm run build:docker-build-image",
"build:docker": "docker run --rm --tty --interactive --env GENERATE_SOURCEMAP=false --env NODE_OPTIONS=--max_old_space_size=4096 --volume=/$(pwd):/app/src --volume=/app/src/node_modules --workdir=/app/src portal-core-components:latest-builder npm run build",
"lib:docker": "docker run --rm --tty --interactive --volume=/$(pwd):/app/src --volume=/app/src/node_modules --workdir=/app/src portal-core-components:latest-builder npm run lib",
"test:docker": "docker run --rm --tty --interactive --volume=/$(pwd):/app/src --volume=/app/src/node_modules --workdir=/app/src portal-core-components:latest-builder npm run test:docker-command",
"test:docker-update-snapshots": "docker run --rm --tty --interactive --volume=/$(pwd):/app/src --volume=/app/src/node_modules --workdir=/app/src portal-core-components:latest-builder npm run test:docker-command-update-snapshots",
"test:docker-command": "npm run lint && npm run test",
"test:docker-command-update-snapshots": "npm run lint && npm run test:updateSnapshots"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}