220 lines
6.8 KiB
JSON
220 lines
6.8 KiB
JSON
{
|
|
"name": "keycloak-demo-frontend",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@babel/core": "7.13.8",
|
|
"@date-io/dayjs": "^1.3.13",
|
|
"@material-ui/core": "^4.11.3",
|
|
"@material-ui/icons": "^4.11.2",
|
|
"@material-ui/lab": "^4.0.0-alpha.57",
|
|
"@material-ui/pickers": "^3.2.10",
|
|
"@types/jest": "^26.0.20",
|
|
"@types/node": "^12.19.9",
|
|
"@types/react": "^16.14.2",
|
|
"@types/react-dom": "^16.9.10",
|
|
"@types/react-redux": "^7.1.16",
|
|
"@types/react-router-dom": "^5.1.7",
|
|
"axios": "^0.21.1",
|
|
"classnames": "^2.2.6",
|
|
"cross-env": "^7.0.3",
|
|
"dayjs": "^1.10.4",
|
|
"immer": "^8.0.1",
|
|
"js-base64": "^3.6.0",
|
|
"jsonwebtoken": "^8.5.1",
|
|
"lodash": "^4.17.21",
|
|
"qs": "^6.5.2",
|
|
"react": "16.13.1",
|
|
"react-color": "^2.19.3",
|
|
"react-dom": "16.13.1",
|
|
"react-redux": "^7.2.2",
|
|
"react-refresh": "^0.8.3",
|
|
"react-router": "^5.2.0",
|
|
"react-router-dom": "^5.2.0",
|
|
"redux": "^4.0.5",
|
|
"redux-thunk": "^2.3.0",
|
|
"uuid": "^8.3.2"
|
|
},
|
|
"scripts": {
|
|
"start": "node scripts/start.js --progress",
|
|
"build": "npm run clean && node scripts/build.js --progress",
|
|
"test": "node scripts/test.js",
|
|
"test:simple": "npm run test -- --watchAll=false",
|
|
"test:coverage": "npm run test -- --coverage --watchAll=false",
|
|
"dev": "cross-env NODE_ENV=development APP_ENV=dev npm run start",
|
|
"stage": "cross-env NODE_ENV=development APP_ENV=stage npm run start",
|
|
"production": "cross-env NODE_ENV=production APP_ENV=production npm run start",
|
|
"renew:dev": "rm -rf node_modules && npm i && npm audit fix && npm run dev",
|
|
"renew:stage": "rm -rf node_modules && npm i && npm audit fix && npm run stage",
|
|
"renew:prod": "rm -rf node_modules && npm i && npm audit fix && npm run production",
|
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./src",
|
|
"lintFix": "eslint --ext .js,.jsx,.ts,.tsx ./src --fix",
|
|
"clean": "rimraf ./build",
|
|
"createTemplate": "node scripts/TemplateTool/index.js"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app",
|
|
"react-app/jest"
|
|
]
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all",
|
|
"ie 11"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version",
|
|
"ie 11"
|
|
]
|
|
},
|
|
"jest": {
|
|
"roots": [
|
|
"<rootDir>/src"
|
|
],
|
|
"collectCoverageFrom": [
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"!src/**/*.d.ts"
|
|
],
|
|
"coveragePathIgnorePatterns": [
|
|
"node_modules"
|
|
],
|
|
"setupFiles": [
|
|
"react-app-polyfill/jsdom"
|
|
],
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/src/services/Scripts/setupTests.ts"
|
|
],
|
|
"testMatch": [
|
|
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
],
|
|
"testEnvironment": "jsdom",
|
|
"transform": {
|
|
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
|
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
"^.+\\.module\\.(css|sass|scss)$"
|
|
],
|
|
"modulePaths": [],
|
|
"moduleNameMapper": {
|
|
"^react-native$": "react-native-web",
|
|
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
|
|
"^@Base(.*)$": "<rootDir>/src/base/$1",
|
|
"^@Components(.*)$": "<rootDir>/src/components/$1",
|
|
"^@Reducers(.*)$": "<rootDir>/src/reducers/$1",
|
|
"^@API(.*)$": "<rootDir>/src/api/$1",
|
|
"^@Hooks(.*)$": "<rootDir>/src/hooks/$1",
|
|
"^@Models(.*)$": "<rootDir>/src/models/$1",
|
|
"^@CSS(.*)$": "<rootDir>/src/css/$1",
|
|
"^@Services(.*)$": "<rootDir>/src/services/$1",
|
|
"^@Providers(.*)$": "<rootDir>/src/providers/$1",
|
|
"^@Env(.*)$": "<rootDir>/src/env/$1",
|
|
"^@Langs(.*)$": "<rootDir>/src/langs/$1",
|
|
"^@Mocks(.*)$": "<rootDir>/src/mocks/$1",
|
|
"^@Tools(.*)$": "<rootDir>/src/tools/$1",
|
|
"^@Plugin(.*)$": "<rootDir>/src/plugin/$1"
|
|
},
|
|
"moduleFileExtensions": [
|
|
"web.js",
|
|
"js",
|
|
"web.ts",
|
|
"ts",
|
|
"web.tsx",
|
|
"tsx",
|
|
"json",
|
|
"web.jsx",
|
|
"jsx",
|
|
"node"
|
|
],
|
|
"watchPlugins": [
|
|
"jest-watch-typeahead/filename",
|
|
"jest-watch-typeahead/testname"
|
|
],
|
|
"resetMocks": true
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"react-app"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@pmmmwh/react-refresh-webpack-plugin": "0.4.3",
|
|
"@svgr/webpack": "5.5.0",
|
|
"@testing-library/jest-dom": "^5.11.9",
|
|
"@testing-library/react": "^11.2.5",
|
|
"@testing-library/user-event": "^12.8.1",
|
|
"@types/classnames": "^2.2.11",
|
|
"@types/lodash": "^4.14.168",
|
|
"@types/react-color": "^3.0.4",
|
|
"@typescript-eslint/eslint-plugin": "^4.16.1",
|
|
"@typescript-eslint/parser": "^4.16.1",
|
|
"babel-eslint": "^10.1.0",
|
|
"babel-jest": "^26.6.3",
|
|
"babel-loader": "8.2.2",
|
|
"babel-plugin-named-asset-import": "^0.3.7",
|
|
"babel-preset-react-app": "^10.0.0",
|
|
"bfj": "^7.0.2",
|
|
"camelcase": "^6.2.0",
|
|
"case-sensitive-paths-webpack-plugin": "2.4.0",
|
|
"css-loader": "4.3.0",
|
|
"dotenv": "8.2.0",
|
|
"dotenv-expand": "5.1.0",
|
|
"eslint": "^7.21.0",
|
|
"eslint-config-airbnb": "^18.2.1",
|
|
"eslint-config-prettier": "^7.1.0",
|
|
"eslint-config-react-app": "^6.0.0",
|
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
"eslint-import-resolver-typescript": "^2.4.0",
|
|
"eslint-plugin-flowtype": "^5.3.1",
|
|
"eslint-plugin-import": "^2.22.1",
|
|
"eslint-plugin-jest": "^24.1.8",
|
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
"eslint-plugin-prettier": "^3.3.1",
|
|
"eslint-plugin-react": "^7.22.0",
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
"eslint-plugin-testing-library": "^3.10.1",
|
|
"eslint-webpack-plugin": "^2.5.2",
|
|
"file-loader": "6.2.0",
|
|
"fs-extra": "^9.1.0",
|
|
"html-webpack-plugin": "4.5.0",
|
|
"identity-obj-proxy": "3.0.0",
|
|
"jest": "26.6.3",
|
|
"jest-circus": "26.6.3",
|
|
"jest-resolve": "26.6.2",
|
|
"jest-watch-typeahead": "0.6.1",
|
|
"mini-css-extract-plugin": "0.11.3",
|
|
"optimize-css-assets-webpack-plugin": "5.0.4",
|
|
"pnp-webpack-plugin": "1.6.4",
|
|
"postcss-flexbugs-fixes": "4.2.1",
|
|
"postcss-loader": "3.0.0",
|
|
"postcss-normalize": "8.0.1",
|
|
"postcss-preset-env": "6.7.0",
|
|
"postcss-safe-parser": "5.0.2",
|
|
"prettier": "^2.2.1",
|
|
"prompts": "2.4.0",
|
|
"react-app-polyfill": "^2.0.0",
|
|
"react-dev-utils": "^11.0.3",
|
|
"resolve": "1.20.0",
|
|
"resolve-url-loader": "^3.1.2",
|
|
"sass-loader": "8.0.2",
|
|
"semver": "7.3.4",
|
|
"style-loader": "1.3.0",
|
|
"terser-webpack-plugin": "4.2.3",
|
|
"ts-pnp": "1.2.0",
|
|
"typescript": "^4.2.3",
|
|
"url-loader": "4.1.1",
|
|
"webpack": "4.44.2",
|
|
"webpack-dev-server": "3.11.2",
|
|
"webpack-manifest-plugin": "2.2.0",
|
|
"workbox-webpack-plugin": "5.1.4"
|
|
}
|
|
}
|