mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-06-15 20:30:41 +02:00
314 lines
13 KiB
JSON
314 lines
13 KiB
JSON
{
|
|
"name": "digitransit-ui",
|
|
"version": "0.0.1",
|
|
"description": "Digitransit UI - open nationwide journey planning platform",
|
|
"author": "digitransit@hsl.fi",
|
|
"license": "(AGPL-3.0 OR EUPL-1.2)",
|
|
"private": true,
|
|
"packageManager": "yarn@3.4.1",
|
|
"workspaces": [
|
|
"digitransit-util/packages/*",
|
|
"digitransit-search-util/packages/*",
|
|
"digitransit-component/packages/*",
|
|
"digitransit-store/packages/*"
|
|
],
|
|
"scripts": {
|
|
"postinstall": "yarn run node14-patch",
|
|
"setup": "yarn install && yarn build-workspaces",
|
|
"static": "mkdir -p _static/js; mkdir -p _static/css; cp -r static/* _static",
|
|
"win-static": "xcopy static\\* _static /e /s /y /i& if not exist _static\\js mkdir _static\\js& if not exist _static\\css mkdir _static\\css",
|
|
"prebuild": "yarn run static && yarn run relay",
|
|
"predev": "yarn run static",
|
|
"predev-win-hsl": "yarn run win-static",
|
|
"predev-win-national": "yarn run win-static",
|
|
"dev": "bash -c \"trap 'pkill -QUIT -P $$ > /dev/null' EXIT; yarn run predev && yarn run relay-watch & NODE_ENV=development yarn nodemon -e js,css,scss,html --watch ./server/ --watch ./app/ server/server.js & NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=development yarn webpack-dev-server & yarn digitransit-watch-components\"",
|
|
"dev-win-hsl": "yarn predev-win-hsl && cd win-launch-scripts&& hsl-win-launch-script.bat",
|
|
"dev-win-national": "yarn predev-win-hsl && cd win-launch-scripts&& set CONFIG=&& national-win-launch-script.bat",
|
|
"dev-nowatch": "bash -c 'NODE_ENV=development node server/server.js & NODE_ENV=development webpack-dev-server'",
|
|
"test-accessibility": "./test/accessibility.sh",
|
|
"test-unit": "yarn test-unit:components && yarn test-unit:store && yarn test-unit:app",
|
|
"test-unit:app": "mocha --exit --require mock-local-storage --file test/unit/helpers/babel-register.js --file test/unit/helpers/init.js \"test/unit/**/*.test.js\"",
|
|
"test-unit:store": "yarn lerna run build:test --scope '@digitransit-store/*'",
|
|
"test-unit:components": "yarn lerna run build:test --scope '@digitransit-component/*'",
|
|
"test-single": "yarn test-unit:app -g",
|
|
"test:e2e": "jest --runInBand --detectOpenHandles --config=./test/e2e/jest.config.js",
|
|
"test:update-snapshots": "UPDATE_E2E=true jest --runInBand --detectOpenHandles --updateSnapshot --config=./test/e2e/jest.config.js",
|
|
"test:update-all-desktop-snapshots": "CONFIG=hsl yarn test:update-snapshots && CONFIG=tampere yarn test:update-snapshots && CONFIG=matka yarn test:update-snapshots",
|
|
"test:update-all-mobile-snapshots": "MOBILE=true CONFIG=hsl yarn test:update-snapshots && MOBILE=true CONFIG=tampere yarn test:update-snapshots && MOBILE=true CONFIG=matka yarn test:update-snapshots",
|
|
"test:update-all-snapshots": "yarn test:update-all-desktop-snapshots && yarn test:update-all-mobile-snapshots",
|
|
"es-lint": "eslint .",
|
|
"lint": "yarn run es-lint && yarn run prettier-styles && yarn run stylelint",
|
|
"prettier-styles": "prettier sass/**/*.scss app/**/*.scss digitransit-component/**/*.scss --fix --write",
|
|
"stylelint": "stylelint sass/**/*.scss app/**/*.scss digitransit-component/**/*.scss",
|
|
"build": "NODE_OPTIONS=--openssl-legacy-provider && NODE_ENV=production && yarn prebuild && node --max_old_space_size=4096 node_modules/.bin/webpack --progress --color",
|
|
"build-workspaces": "yarn build-components && yarn build-search-utils && yarn build-store",
|
|
"win-build": "set NODE_ENV=production&& webpack --progress --color",
|
|
"start": "NODE_ENV=production node $NODE_OPTS server/server",
|
|
"start-test": "NODE_ENV=test node $NODE_OPTS server/server",
|
|
"win-start": "set NODE_ENV=production&& set CONFIG=hsl&& node server/server.js",
|
|
"add-theme": "node build/add-theme",
|
|
"relay": "relay-compiler",
|
|
"relay-watch": "relay-compiler --watch",
|
|
"digitransit-npm-publish": "lerna publish from-package --no-git-tag-version --no-push",
|
|
"digitransit-npm-autopublish": "lerna publish from-package --no-git-tag-version --no-push -y --no-verify-access",
|
|
"digitransit-search-util-docs": "node -r esm ./digitransit-search-util/scripts/generate-readmes",
|
|
"digitransit-search-util-new-module": "node -r esm ./digitransit-search-util/scripts/create-new-module",
|
|
"digitransit-search-util-tests": "lerna run test --scope '@digitransit-search-util/*'",
|
|
"digitransit-util-docs": "node -r esm ./digitransit-util/scripts/generate-readmes",
|
|
"digitransit-util-new-module": "node -r esm ./digitransit-util/scripts/create-new-module",
|
|
"digitransit-util-tests": "lerna run test --scope '@digitransit-util/*'",
|
|
"digitransit-component-docs": "node -r esm ./digitransit-component/scripts/generate-readmes",
|
|
"digitransit-component-new-module": "node -r esm ./digitransit-component/scripts/create-new-module",
|
|
"digitransit-component-tests": "lerna run test --scope '@digitransit-component/*'",
|
|
"digitransit-watch-components": "NODE_ENV=development SCOPE='@digitransit-component/*' rollup -w -c ./config/rollup.config.js",
|
|
"build-components": "lerna run clean --scope '@digitransit-component/*' && NODE_ENV=production SCOPE='@digitransit-component/*' rollup -c ./config/rollup.config.js",
|
|
"build-search-utils": "lerna run clean --scope @digitransit-search-util/digitransit-search-util-query-utils && lerna run relay --scope @digitransit-search-util/digitransit-search-util-query-utils && NODE_ENV=production SCOPE='@digitransit-search-util/digitransit-search-util-query-utils' rollup -c ./config/rollup.config.js",
|
|
"digitransit-store-docs": "node -r esm ./digitransit-store/scripts/generate-readmes",
|
|
"digitransit-store-new-module": "node -r esm ./digitransit-store/scripts/create-new-module",
|
|
"digitransit-store-tests": "lerna run build:test --scope '@digitransit-store/*' && lerna run test --scope '@digitransit-store/*'",
|
|
"build-store": "lerna run clean --scope '@digitransit-store/*' && NODE_ENV=production SCOPE='@digitransit-store/*' rollup -c ./config/rollup.config.js",
|
|
"node14-patch": "rm -f ./node_modules/react-leaflet/node_modules/@babel/runtime/helpers/esm/package.json ./node_modules/@babel/runtime/helpers/esm/package.json"
|
|
},
|
|
"main": "server.js",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/HSLdevcom/digitransit-ui"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/HSLdevcom/digitransit-ui/issues"
|
|
},
|
|
"engineStrict": true,
|
|
"engines": {
|
|
"node": ">=16.17",
|
|
"npm": ">=3.0"
|
|
},
|
|
"browserslist": [
|
|
"> 0.2% in FI",
|
|
"not op_mini all",
|
|
"not IE 11"
|
|
],
|
|
"prettier": {
|
|
"arrowParens": "avoid",
|
|
"endOfLine": "auto",
|
|
"singleQuote": true,
|
|
"trailingComma": "all"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx}": [
|
|
"eslint"
|
|
],
|
|
"*.scss": [
|
|
"prettier --check",
|
|
"stylelint"
|
|
]
|
|
},
|
|
"git-precommit-checks": {
|
|
"rules": [
|
|
{
|
|
"message": "You have unresolved conflict markers",
|
|
"regex": "/^[<>|=]{4,}/m"
|
|
},
|
|
{
|
|
"filter": "\\.js$",
|
|
"nonBlocking": "true",
|
|
"message": "You are using `console.log` in your JavaScripts",
|
|
"regex": "console\\.log"
|
|
}
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged && git-precommit-checks",
|
|
"pre-push": "yarn run test-unit"
|
|
}
|
|
},
|
|
"relay": {
|
|
"src": "./app",
|
|
"schema": "./build/schema.graphql",
|
|
"language": "javascript"
|
|
},
|
|
"dependencies": {
|
|
"@azure/cosmos": "^4.0.0",
|
|
"@babel/core": "7.26.10",
|
|
"@babel/preset-env": "7.26.9",
|
|
"@babel/preset-react": "7.26.3",
|
|
"@babel/register": "7.25.9",
|
|
"@hsl-fi/button": "^1.2.4",
|
|
"@hsl-fi/container-spinner": "0.3.2",
|
|
"@hsl-fi/hooks": "1.2.4",
|
|
"@hsl-fi/modal": " ^0.3.2",
|
|
"@hsl-fi/sass": " ^0.2.0",
|
|
"@hsl-fi/shimmer": "0.1.2",
|
|
"@hsl-fi/site-header": "4.5.2",
|
|
"@mapbox/sphericalmercator": "1.1.0",
|
|
"@mapbox/vector-tile": "1.3.1",
|
|
"axios": "1.9.0",
|
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
|
"babel-plugin-relay": "16.2.0",
|
|
"body-parser": "1.20.3",
|
|
"classnames": "2.5.1",
|
|
"connect-redis": "5.0.0",
|
|
"cookie-parser": "1.4.7",
|
|
"debug": "4.3.4",
|
|
"express": "4.21.2",
|
|
"express-http-proxy": "1.6.3",
|
|
"express-session": "1.18.1",
|
|
"express-static-gzip": "2.0.8",
|
|
"farce": "0.4.5",
|
|
"fast-xml-parser": "4.3.4",
|
|
"fluxible": "1.4.2",
|
|
"fluxible-addons-react": "0.2.17",
|
|
"found": "0.5.9",
|
|
"found-relay": "1.0.2",
|
|
"foundation-apps": "1.2.0",
|
|
"helmet": "4.1.0",
|
|
"hoist-non-react-statics": "2.5.5",
|
|
"i18next": "22.5.1",
|
|
"intl": "1.2.5",
|
|
"leaflet": "1.6.0",
|
|
"lodash": "4.17.21",
|
|
"lru-cache": "6.0.0",
|
|
"luxon": "^3.6.1",
|
|
"moment": "2.30.1",
|
|
"moment-timezone": "0.5.48",
|
|
"morgan": "1.10.0",
|
|
"mqtt": "4.3.8",
|
|
"node-fetch": "2.6.7",
|
|
"offline-plugin": "5.0.7",
|
|
"openid-client": "5.6.4",
|
|
"passport": "0.7.0",
|
|
"pbf": "3.2.1",
|
|
"point-in-polygon": "1.0.1",
|
|
"polyfill-library": "4.8.0",
|
|
"polyline-encoded": "0.0.9",
|
|
"prop-types": "15.8.1",
|
|
"react": "^16.13.0",
|
|
"react-autosuggest": "^10.0.0",
|
|
"react-autowhatever": "10.2.1",
|
|
"react-click-outside": "3.0.1",
|
|
"react-dom": "16.13.0",
|
|
"react-helmet": "6.1.0",
|
|
"react-intl": "2.8.0",
|
|
"react-leaflet": "2.7.0",
|
|
"react-relay": "16.2.0",
|
|
"react-relay-network-modern": "6.2.2",
|
|
"react-select": "4.3.1",
|
|
"react-sortablejs": "2.0.11",
|
|
"react-swipe": "6.0.4",
|
|
"react-truncate-markup": "5.1.2",
|
|
"recompose": "0.30.0",
|
|
"redis": "2.8.0",
|
|
"relay-runtime": "16.2.0",
|
|
"serialize-javascript": "6.0.2",
|
|
"suncalc": "1.8.0",
|
|
"supercluster": "^7.1.5",
|
|
"universal-cookie": "7.2.2",
|
|
"uuid": "8.3.2",
|
|
"zurb-foundation-5": "5.4.7"
|
|
},
|
|
"peerDependencies": {
|
|
"@octokit/core": ">=3",
|
|
"@types/node": "^17",
|
|
"sass": "^1.37.2",
|
|
"typescript": ">2.7"
|
|
},
|
|
"devDependencies": {
|
|
"@axe-core/react": "^4.10.1",
|
|
"@axe-core/webdriverjs": "^4.10.1",
|
|
"@azure/storage-blob": "^12.8.0",
|
|
"@babel/cli": "7.27.0",
|
|
"@babel/eslint-parser": "7.27.0",
|
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
"@babel/plugin-transform-runtime": "7.26.10",
|
|
"@babel/runtime": "7.27.0",
|
|
"@commitlint/cli": "9.1.2",
|
|
"@commitlint/config-conventional": "9.1.2",
|
|
"@graphql-eslint/eslint-plugin": "3.20.1",
|
|
"@lerna/batch-packages": "3.16.0",
|
|
"@lerna/filter-packages": "3.18.0",
|
|
"@lerna/project": "3.21.0",
|
|
"@rollup/plugin-babel": "5.2.2",
|
|
"@rollup/plugin-json": "4.1.0",
|
|
"@rollup/plugin-node-resolve": "11.0.1",
|
|
"@testing-library/react-hooks": "^8.0.1",
|
|
"async": "^3.2.6",
|
|
"autoprefixer": "9.8.6",
|
|
"axe-core": "^4.10.3",
|
|
"babel-loader": "8.2.5",
|
|
"babel-plugin-inline-react-svg": "2.0.2",
|
|
"babel-plugin-optimize-clsx": "2.6.2",
|
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
"base64-arraybuffer": "1.0.2",
|
|
"chai": "4.4.1",
|
|
"compression-webpack-plugin": "5.0.2",
|
|
"copy-webpack-plugin": "6.1.0",
|
|
"css-loader": "^5.2.7",
|
|
"documentation": "13.2.5",
|
|
"enzyme": "3.11.0",
|
|
"enzyme-adapter-react-16": "1.15.8",
|
|
"enzyme-wait": "1.0.9",
|
|
"eslint": "8.56.0",
|
|
"eslint-config-airbnb": "19.0.4",
|
|
"eslint-config-prettier": "9.1.0",
|
|
"eslint-import-resolver-webpack": "0.13.10",
|
|
"eslint-plugin-compat": "4.2.0",
|
|
"eslint-plugin-import": "2.29.1",
|
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
"eslint-plugin-prettier": "5.1.2",
|
|
"eslint-plugin-react": "7.33.2",
|
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
"favicons-webpack-plugin": "4.2.0",
|
|
"fetch-mock": "^12.0.2",
|
|
"file-loader": "5.0.2",
|
|
"git-precommit-checks": "3.0.0",
|
|
"graphql": "16.8.1",
|
|
"husky": "4.3.8",
|
|
"iso-morphic-style-loader": "2.0.1",
|
|
"jest": "29.7.0",
|
|
"jest-circus": "29.7.0",
|
|
"jest-environment-node": "29.7.0",
|
|
"jest-image-snapshot": "6.4.0",
|
|
"jest-playwright-preset": "4.0.0",
|
|
"jest-runner": "29.7.0",
|
|
"jsdom": "26.0.0",
|
|
"lerna": "3.20.2",
|
|
"lint-staged": "10.3.0",
|
|
"mini-css-extract-plugin": "0.11.3",
|
|
"mocha": "11.2.2",
|
|
"mock-local-storage": "1.1.24",
|
|
"mockdate": "3.0.5",
|
|
"node-sass": "^9.0.0",
|
|
"nodemon": "1.18.10",
|
|
"optimize-css-assets-webpack-plugin": "5.0.8",
|
|
"playwright": "1.16.2",
|
|
"postcss": "8.4.33",
|
|
"postcss-flexbugs-fixes": "5.0.2",
|
|
"postcss-loader": "^4",
|
|
"prettier": "3.1.1",
|
|
"relay-compiler": "16.2.0",
|
|
"rollup": "2.79.2",
|
|
"rollup-plugin-babel": "4.4.0",
|
|
"rollup-plugin-commonjs": "10.1.0",
|
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
"rollup-plugin-postcss": "4.0.2",
|
|
"rollup-plugin-terser": "7.0.2",
|
|
"sass-loader": "^10.5.2",
|
|
"selenium-webdriver": "4.0.0-alpha.1",
|
|
"sinon": "19.0.5",
|
|
"stats-webpack-plugin": "0.7.0",
|
|
"style-loader": "1.2.1",
|
|
"stylelint": "15.11.0",
|
|
"stylelint-config-standard-scss": "11.1.0",
|
|
"terser-webpack-plugin": "4.1.0",
|
|
"url-loader": "3.0.0",
|
|
"webpack": "^4.46.0",
|
|
"webpack-assets-manifest": "^4.0.6",
|
|
"webpack-bundle-analyzer": "4.10.2",
|
|
"webpack-cli": "4.10.0",
|
|
"webpack-dev-server": "4.15.2"
|
|
},
|
|
"resolutions": {
|
|
"html-webpack-plugin": "4.5.2",
|
|
"sharp": "0.33"
|
|
}
|
|
}
|