Merge pull request #368 from photoview/update-ui-dependencies
Update UI dependencies
This commit is contained in:
commit
b60c15c700
|
@ -12,7 +12,13 @@ const bs = browserSync.create()
|
||||||
const production = process.env.NODE_ENV == 'production'
|
const production = process.env.NODE_ENV == 'production'
|
||||||
const watchMode = process.argv[2] == 'watch'
|
const watchMode = process.argv[2] == 'watch'
|
||||||
|
|
||||||
const ENVIRONMENT_VARIABLES = ['NODE_ENV', 'PHOTOVIEW_API_ENDPOINT', 'VERSION', 'BUILD_DATE', 'COMMIT_SHA']
|
const ENVIRONMENT_VARIABLES = [
|
||||||
|
'NODE_ENV',
|
||||||
|
'PHOTOVIEW_API_ENDPOINT',
|
||||||
|
'VERSION',
|
||||||
|
'BUILD_DATE',
|
||||||
|
'COMMIT_SHA',
|
||||||
|
]
|
||||||
|
|
||||||
const defineEnv = ENVIRONMENT_VARIABLES.reduce((acc, key) => {
|
const defineEnv = ENVIRONMENT_VARIABLES.reduce((acc, key) => {
|
||||||
acc[`process.env.${key}`] = process.env[key] ? `"${process.env[key]}"` : null
|
acc[`process.env.${key}`] = process.env[key] ? `"${process.env[key]}"` : null
|
||||||
|
@ -31,7 +37,6 @@ const esbuildOptions = {
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
bundle: true,
|
bundle: true,
|
||||||
platform: 'browser',
|
platform: 'browser',
|
||||||
target: ['chrome58', 'firefox57', 'safari11', 'edge16'],
|
|
||||||
splitting: true,
|
splitting: true,
|
||||||
minify: production,
|
minify: production,
|
||||||
sourcemap: !production,
|
sourcemap: !production,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -9,8 +9,8 @@
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"description": "UI app for Photoview",
|
"description": "UI app for Photoview",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@apollo/client": "^3.3.14",
|
"@apollo/client": "^3.3.17",
|
||||||
"@babel/core": "^7.13.15",
|
"@babel/core": "^7.14.0",
|
||||||
"@babel/preset-react": "^7.13.13",
|
"@babel/preset-react": "^7.13.13",
|
||||||
"@babel/preset-typescript": "^7.13.0",
|
"@babel/preset-typescript": "^7.13.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
|
@ -22,33 +22,33 @@
|
||||||
"browser-sync": "^2.26.14",
|
"browser-sync": "^2.26.14",
|
||||||
"connect-history-api-fallback": "^1.6.0",
|
"connect-history-api-fallback": "^1.6.0",
|
||||||
"copy-to-clipboard": "^3.3.1",
|
"copy-to-clipboard": "^3.3.1",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^9.0.2",
|
||||||
"esbuild": "^0.8.52",
|
"esbuild": "^0.11.20",
|
||||||
"esbuild-plugin-babel": "^0.2.3",
|
"esbuild-plugin-babel": "^0.2.3",
|
||||||
"eslint": "^7.24.0",
|
"eslint": "^7.26.0",
|
||||||
"eslint-plugin-jest": "^24.3.5",
|
"eslint-plugin-jest": "^24.3.6",
|
||||||
"eslint-plugin-jest-dom": "^3.8.0",
|
"eslint-plugin-jest-dom": "^3.9.0",
|
||||||
"eslint-plugin-react": "^7.23.2",
|
"eslint-plugin-react": "^7.23.2",
|
||||||
"eslint-plugin-react-hooks": "^4.2.0",
|
"eslint-plugin-react-hooks": "^4.2.0",
|
||||||
"fs-extra": "^9.1.0",
|
"fs-extra": "^10.0.0",
|
||||||
"i18next": "^20.2.1",
|
"i18next": "^20.2.2",
|
||||||
"mapbox-gl": "^2.2.0",
|
"mapbox-gl": "^2.2.0",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-helmet": "^6.1.0",
|
"react-helmet": "^6.1.0",
|
||||||
"react-i18next": "^11.8.12",
|
"react-i18next": "^11.8.15",
|
||||||
"react-router-dom": "^5.2.0",
|
"react-router-dom": "^5.2.0",
|
||||||
"react-router-prop-types": "^1.0.5",
|
"react-router-prop-types": "^1.0.5",
|
||||||
"react-spring": "^8.0.27",
|
"react-spring": "^8.0.27",
|
||||||
"react-test-renderer": "^17.0.2",
|
"react-test-renderer": "^17.0.2",
|
||||||
"semantic-ui-css": "^2.4.1",
|
"semantic-ui-css": "^2.4.1",
|
||||||
"semantic-ui-react": "^2.0.3",
|
"semantic-ui-react": "^2.0.3",
|
||||||
"styled-components": "^5.2.3",
|
"styled-components": "^5.3.0",
|
||||||
"subscriptions-transport-ws": "^0.9.18",
|
"subscriptions-transport-ws": "^0.9.18",
|
||||||
"typescript": "^4.2.4",
|
"typescript": "^4.2.4",
|
||||||
"url-join": "^4.0.1",
|
"url-join": "^4.0.1",
|
||||||
"workbox-build": "^6.1.2"
|
"workbox-build": "^6.1.5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node --experimental-modules build.mjs watch",
|
"start": "node --experimental-modules build.mjs watch",
|
||||||
|
@ -65,26 +65,26 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/plugin-transform-runtime": "^7.13.15",
|
"@babel/plugin-transform-runtime": "^7.13.15",
|
||||||
"@babel/preset-env": "^7.13.15",
|
"@babel/preset-env": "^7.14.1",
|
||||||
"@testing-library/jest-dom": "^5.11.10",
|
"@testing-library/jest-dom": "^5.12.0",
|
||||||
"@testing-library/react": "^11.2.6",
|
"@testing-library/react": "^11.2.6",
|
||||||
"@testing-library/user-event": "^13.1.8",
|
"@testing-library/user-event": "^13.1.8",
|
||||||
"@types/geojson": "^7946.0.7",
|
"@types/geojson": "^7946.0.7",
|
||||||
"@types/jest": "^26.0.23",
|
"@types/jest": "^26.0.23",
|
||||||
"@types/mapbox-gl": "^2.1.1",
|
"@types/mapbox-gl": "^2.1.2",
|
||||||
"@types/react": "^17.0.3",
|
"@types/react": "^17.0.5",
|
||||||
"@types/react-dom": "^17.0.3",
|
"@types/react-dom": "^17.0.4",
|
||||||
"@types/react-helmet": "^6.1.1",
|
"@types/react-helmet": "^6.1.1",
|
||||||
"@types/react-router-dom": "^5.1.7",
|
"@types/react-router-dom": "^5.1.7",
|
||||||
"@types/styled-components": "^5.1.9",
|
"@types/styled-components": "^5.1.9",
|
||||||
"@types/url-join": "^4.0.0",
|
"@types/url-join": "^4.0.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.21.0",
|
"@typescript-eslint/eslint-plugin": "^4.23.0",
|
||||||
"@typescript-eslint/parser": "^4.21.0",
|
"@typescript-eslint/parser": "^4.23.0",
|
||||||
"eslint-config-prettier": "^8.1.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"husky": "^6.0.0",
|
"husky": "^6.0.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"lint-staged": "^10.5.4",
|
"lint-staged": "^11.0.0",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.3.0",
|
||||||
"tsc-files": "^1.1.2"
|
"tsc-files": "^1.1.2"
|
||||||
},
|
},
|
||||||
"cache": {
|
"cache": {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
<link rel="stylesheet" href="/src/index.css" />
|
<link rel="stylesheet" href="/index.css" />
|
||||||
|
|
||||||
<!-- Apple touch devices -->
|
<!-- Apple touch devices -->
|
||||||
<link rel="apple-touch-icon" href="/assets/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" href="/assets/apple-touch-icon.png" />
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script type="module" src="/src/index.js"></script>
|
<script type="module" src="/index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue