186 lines
4.8 KiB
JSON
186 lines
4.8 KiB
JSON
{
|
|
"name": "authelia",
|
|
"version": "4.37.5",
|
|
"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.6",
|
|
"@emotion/styled": "11.10.6",
|
|
"@fortawesome/fontawesome-svg-core": "6.3.0",
|
|
"@fortawesome/free-regular-svg-icons": "6.3.0",
|
|
"@fortawesome/free-solid-svg-icons": "6.3.0",
|
|
"@fortawesome/react-fontawesome": "0.2.0",
|
|
"@mui/icons-material": "5.11.11",
|
|
"@mui/material": "5.11.13",
|
|
"@mui/styles": "5.11.13",
|
|
"axios": "1.3.4",
|
|
"broadcast-channel": "4.20.2",
|
|
"classnames": "2.3.2",
|
|
"i18next": "22.4.12",
|
|
"i18next-browser-languagedetector": "7.0.1",
|
|
"i18next-http-backend": "2.2.0",
|
|
"qrcode.react": "3.1.0",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"react-i18next": "12.2.0",
|
|
"react-loading": "2.0.3",
|
|
"react-router-dom": "6.9.0",
|
|
"react18-input-otp": "1.1.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": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all",
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "17.4.4",
|
|
"@commitlint/config-conventional": "17.4.4",
|
|
"@limegrass/eslint-plugin-import-alias": "1.0.6",
|
|
"@testing-library/jest-dom": "5.16.5",
|
|
"@testing-library/react": "14.0.0",
|
|
"@types/jest": "29.5.0",
|
|
"@types/node": "18.15.3",
|
|
"@types/qrcode.react": "1.0.2",
|
|
"@types/react": "18.0.28",
|
|
"@types/react-dom": "18.0.11",
|
|
"@types/zxcvbn": "4.4.1",
|
|
"@typescript-eslint/eslint-plugin": "5.55.0",
|
|
"@typescript-eslint/parser": "5.55.0",
|
|
"@vitejs/plugin-react": "3.1.0",
|
|
"esbuild": "0.17.12",
|
|
"esbuild-jest": "0.5.0",
|
|
"eslint": "8.36.0",
|
|
"eslint-config-prettier": "8.7.0",
|
|
"eslint-config-react-app": "7.0.1",
|
|
"eslint-formatter-rdjson": "1.0.5",
|
|
"eslint-import-resolver-typescript": "3.5.3",
|
|
"eslint-plugin-import": "2.27.5",
|
|
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
"eslint-plugin-prettier": "4.2.1",
|
|
"eslint-plugin-react": "7.32.2",
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
"husky": "8.0.3",
|
|
"jest": "29.5.0",
|
|
"jest-environment-jsdom": "29.5.0",
|
|
"jest-transform-stub": "2.0.0",
|
|
"jest-watch-typeahead": "2.2.2",
|
|
"prettier": "2.8.4",
|
|
"react-test-renderer": "18.2.0",
|
|
"typescript": "5.0.2",
|
|
"vite": "4.2.0",
|
|
"vite-plugin-eslint": "1.8.1",
|
|
"vite-plugin-istanbul": "4.0.1",
|
|
"vite-plugin-svgr": "2.4.0",
|
|
"vite-tsconfig-paths": "4.0.7"
|
|
}
|
|
}
|