authelia/web/package.json

186 lines
4.8 KiB
JSON
Raw Normal View History

{
"name": "authelia",
2022-10-28 10:11:46 +00:00
"version": "4.37.2",
"private": true,
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"@types/react": "18",
"react": "18",
"react-dom": "18"
},
"ignoreMissing": [
"@babel/core",
"@babel/plugin-syntax-flow",
"@babel/plugin-transform-react-jsx",
"prop-types"
]
}
},
"dependencies": {
"@emotion/cache": "11.10.5",
"@emotion/react": "11.10.5",
"@emotion/styled": "11.10.5",
"@fortawesome/fontawesome-svg-core": "6.2.0",
"@fortawesome/free-regular-svg-icons": "6.2.0",
"@fortawesome/free-solid-svg-icons": "6.2.0",
"@fortawesome/react-fontawesome": "0.2.0",
"@mui/icons-material": "5.10.9",
"@mui/material": "5.10.13",
"@mui/styles": "5.10.10",
"axios": "1.1.3",
"broadcast-channel": "4.18.1",
"classnames": "2.3.2",
"i18next": "22.0.4",
"i18next-browser-languagedetector": "7.0.1",
"i18next-http-backend": "2.0.1",
"qrcode.react": "3.1.0",
"query-string": "7.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
2022-10-20 21:59:58 +00:00
"react-i18next": "12.0.0",
"react-loading": "2.0.3",
"react-otp-input": "2.4.0",
"react-router-dom": "6.4.3",
"zxcvbn": "4.4.2"
},
"scripts": {
"prepare": "cd .. && husky install .github",
"start": "vite --host",
"build": "vite build",
"coverage": "VITE_COVERAGE=true vite build",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix",
"test": "jest --coverage --no-cache",
"report": "nyc report -r clover -r json -r lcov -r text"
},
"eslintConfig": {
"extends": "react-app"
},
"jest": {
"roots": [
"<rootDir>/src"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
],
"testMatch": [
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
"testEnvironment": "jsdom",
"transform": {
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": [
"esbuild-jest",
{
"sourcemap": true
}
],
"^.+\\.(css|png|svg)$": "jest-transform-stub"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$"
],
"moduleNameMapper": {
"^@root/(.*)$": [
"<rootDir>/src/$1"
],
"^@assets/(.*)$": [
"<rootDir>/src/assets/$1"
],
"^@components/(.*)$": [
"<rootDir>/src/components/$1"
],
"^@constants/(.*)$": [
"<rootDir>/src/constants/$1"
],
"^@hooks/(.*)$": [
"<rootDir>/src/hooks/$1"
],
"^@i18n/(.*)$": [
"<rootDir>/src/i18n/$1"
],
"^@layouts/(.*)$": [
"<rootDir>/src/layouts/$1"
],
"^@models/(.*)$": [
"<rootDir>/src/models/$1"
],
"^@services/(.*)$": [
"<rootDir>/src/services/$1"
],
"^@themes/(.*)$": [
"<rootDir>/src/themes/$1"
],
"^@utils/(.*)$": [
"<rootDir>/src/utils/$1"
],
"^@views/(.*)$": [
"<rootDir>/src/views/$1"
]
},
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
],
"resetMocks": true
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
fix(web): fix compilation and running in development mode (#1821) During a `yarn start` the react frontend would throw the following errors during compilation: ``` Starting the development server... Compiled with warnings. ./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Warning Greetings, time traveller. We are in the golden age of prefix-less CSS, where Autoprefixer is no longer needed for your stylesheet. ./node_modules/@fortawesome/fontawesome-svg-core/styles.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./node_modules/@fortawesome/fontawesome-svg-core/styles.css) Warning Greetings, time traveller. We are in the golden age of prefix-less CSS, where Autoprefixer is no longer needed for your stylesheet. ./src/components/FingerTouchIcon.module.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./src/components/FingerTouchIcon.module.css) Warning Greetings, time traveller. We are in the golden age of prefix-less CSS, where Autoprefixer is no longer needed for your stylesheet. ./src/components/PushNotificationIcon.module.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./src/components/PushNotificationIcon.module.css) Warning Greetings, time traveller. We are in the golden age of prefix-less CSS, where Autoprefixer is no longer needed for your stylesheet. Search for the keywords to learn more about each warning. To ignore, add // eslint-disable-next-line to the line before. ``` This in turn would mean that the server would never finish loading. This change will allow the code to compile and run appropriately both in production and development modes.
2021-03-13 03:09:51 +00:00
">0.2%",
"not dead",
"not op_mini all",
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@commitlint/cli": "17.2.0",
"@commitlint/config-conventional": "17.2.0",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.4.0",
"@types/jest": "29.2.2",
"@types/node": "18.11.9",
"@types/qrcode.react": "1.0.2",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.8",
"@types/zxcvbn": "4.4.1",
"@typescript-eslint/eslint-plugin": "5.42.1",
"@typescript-eslint/parser": "5.42.1",
"@vitejs/plugin-react": "2.2.0",
"esbuild": "0.15.13",
"esbuild-jest": "0.5.0",
"eslint": "8.27.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-react-app": "7.0.1",
"eslint-formatter-rdjson": "1.0.5",
2022-10-20 21:59:58 +00:00
"eslint-import-resolver-typescript": "3.5.2",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.31.10",
"eslint-plugin-react-hooks": "4.6.0",
"husky": "8.0.2",
"jest": "29.3.1",
"jest-environment-jsdom": "29.3.1",
"jest-transform-stub": "2.0.0",
"jest-watch-typeahead": "2.2.0",
"prettier": "2.7.1",
"react-test-renderer": "18.2.0",
"typescript": "4.8.4",
"vite": "3.2.3",
"vite-plugin-eslint": "1.8.1",
"vite-plugin-istanbul": "3.0.2",
"vite-plugin-svgr": "2.2.2",
2022-10-20 21:59:58 +00:00
"vite-tsconfig-paths": "3.5.2"
}
}