0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/ui/package.json
simeng-li b1bf5eccf0
feat: (ui) Read and show error from API response (#84)
Implemet useApi hooks to handle client side request
read loading & error status from the useApi hook
2021-08-23 21:29:58 +08:00

68 lines
2.1 KiB
JSON

{
"name": "@logto/ui",
"version": "0.1.0",
"license": "MPL-2.0",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"precommit": "lint-staged",
"dev:tsc": "tsc -b -w --preserveWatchOutput",
"dev:razzle": "razzle start",
"dev": "PORT=5000 concurrently -c \"blue,cyan\" \"pnpm:dev:tsc\" -k \"pnpm:dev:razzle\"",
"start": "NODE_ENV=production node build/server.js",
"build": "tsc -b && razzle build --noninteractive",
"lint": "eslint --ext .ts --ext .tsx src",
"stylelint": "stylelint \"src/**/*.scss\"",
"test": "pnpm -- test:watch --no-watch",
"test:watch": "razzle test --env=jsdom"
},
"dependencies": {
"@logto/phrases": "^0.1.0",
"@logto/schemas": "^0.1.0",
"classnames": "^2.3.1",
"i18next": "^20.3.3",
"i18next-browser-languagedetector": "^6.1.2",
"ky": "^0.28.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^11.11.3",
"react-router-dom": "^5.2.0"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@jest/types": "^27.0.6",
"@logto/eslint-config": "^0.1.0-rc.18",
"@logto/eslint-config-react": "^0.1.0-rc.18",
"@logto/ts-config": "^0.1.0-rc.18",
"@logto/ts-config-react": "^0.1.0-rc.18",
"@testing-library/react": "^12.0.0",
"@types/jest": "^26.0.24",
"@types/react": "^17.0.14",
"@types/react-dom": "^17.0.9",
"@types/react-router-dom": "^5.1.8",
"@types/webpack": "^4",
"@types/webpack-env": "^1.16.2",
"babel-preset-razzle": "4.0.5",
"concurrently": "^6.2.0",
"eslint": "^7.30.0",
"html-webpack-plugin": "^4.5.2",
"lint-staged": "^11.1.1",
"mini-css-extract-plugin": "^0.9.0",
"postcss": "^8.3.6",
"prettier": "^2.3.2",
"razzle": "^4.0.5",
"razzle-dev-utils": "^4.0.5",
"razzle-plugin-scss": "^4.0.5",
"stylelint": "^13.13.1",
"typescript": "^4.3.5",
"webpack": "^4.44.1",
"webpack-dev-server": "^3.11.2"
},
"eslintConfig": {
"extends": "@logto/react"
},
"stylelint": {
"extends": "@logto/eslint-config-react/.stylelintrc"
},
"prettier": "@logto/eslint-config/.prettierrc"
}