authelia/web/package.json
Amir Zarrinkafsh 3494353641
refactor(web): use absolute imports with aliases (#2100)
* refactor(web): use absolute imports with aliases

Refactors all of the TS/JS frontend to utilise absolute imports along with import aliases.
Each of the paths within `src` are represented with their own alias:

* @assets
* @components
* @constants (new)
* @hooks
* @layouts
* @models
* @services
* @themes
* @utils
* @views

`Routes.ts` and `constant.ts` have been relocated to the constants directory for consistency.
2021-06-19 10:20:43 +02:00

79 lines
2.1 KiB
JSON

{
"name": "web",
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "1.2.35",
"@fortawesome/free-regular-svg-icons": "5.15.3",
"@fortawesome/free-solid-svg-icons": "5.15.3",
"@fortawesome/react-fontawesome": "0.1.14",
"@material-ui/core": "4.11.4",
"@material-ui/icons": "4.11.2",
"@types/chai": "4.2.18",
"@types/classnames": "2.3.0",
"@types/enzyme": "3.10.8",
"@types/jest": "26.0.23",
"@types/node": "15.6.0",
"@types/qrcode.react": "1.0.1",
"@types/query-string": "6.3.0",
"@types/react": "17.0.11",
"@types/react-dom": "17.0.8",
"@types/react-ga": "2.3.0",
"@types/react-router-dom": "5.1.7",
"axios": "0.21.1",
"babel-preset-react-app": "10.0.0",
"chai": "4.3.4",
"classnames": "2.3.1",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.6",
"eslint-config-prettier": "8.3.0",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-prettier": "3.4.0",
"prettier": "2.3.1",
"qrcode.react": "1.0.1",
"query-string": "7.0.0",
"react": "16.14.0",
"react-dom": "16.14.0",
"react-ga": "3.3.0",
"react-loading": "2.0.3",
"react-otp-input": "2.3.1",
"react-router-dom": "5.2.0",
"react-scripts": "4.0.3",
"react-test-renderer": "16.14.0",
"typescript": "4.3.4",
"u2f-api": "1.2.1"
},
"scripts": {
"start": "craco start",
"build": "craco build",
"lint": "eslint '*/**/*.{js,ts,tsx}' --fix",
"coverage": "COVERAGE=true craco build",
"test": "craco test --coverage --no-cache",
"report": "nyc report -r clover -r json -r lcov -r text",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"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": {
"@craco/craco": "^6.1.2",
"craco-alias": "^3.0.1",
"eslint-formatter-rdjson": "1.0.5"
}
}