2021-07-11 21:08:38 +08:00
|
|
|
{
|
2021-07-11 22:26:08 +08:00
|
|
|
"name": "@logto/ui",
|
2021-07-11 21:08:38 +08:00
|
|
|
"version": "0.1.0",
|
|
|
|
"license": "UNLICENSED",
|
2021-07-25 22:36:22 +08:00
|
|
|
"private": true,
|
2021-07-11 21:08:38 +08:00
|
|
|
"scripts": {
|
2021-07-25 22:27:51 +08:00
|
|
|
"precommit": "lint-staged",
|
2021-07-13 23:37:58 +08:00
|
|
|
"dev:tsc": "tsc -b -w --preserveWatchOutput",
|
|
|
|
"dev:razzle": "razzle start",
|
2021-07-26 22:04:32 +08:00
|
|
|
"dev": "PORT=5000 concurrently -c \"blue,cyan\" \"yarn:dev:tsc\" -k \"yarn:dev:razzle\"",
|
|
|
|
"start": "NODE_ENV=production node build/server.js",
|
2021-07-26 10:54:13 +08:00
|
|
|
"build": "tsc -b && razzle build --noninteractive",
|
2021-07-11 21:08:38 +08:00
|
|
|
"lint": "eslint --format pretty --ext .ts --ext .tsx src",
|
|
|
|
"stylelint": "stylelint \"src/**/*.scss\"",
|
2021-07-25 21:58:27 +08:00
|
|
|
"test": "razzle test --env=jsdom"
|
2021-07-11 21:08:38 +08:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2021-07-13 23:03:02 +08:00
|
|
|
"classnames": "^2.3.1",
|
2021-07-18 17:22:17 +08:00
|
|
|
"i18next": "^20.3.3",
|
|
|
|
"i18next-browser-languagedetector": "^6.1.2",
|
2021-07-25 17:16:59 +08:00
|
|
|
"ky": "^0.28.5",
|
2021-07-11 21:08:38 +08:00
|
|
|
"react": "^17.0.2",
|
|
|
|
"react-dom": "^17.0.2",
|
2021-07-18 17:22:17 +08:00
|
|
|
"react-i18next": "^11.11.3",
|
2021-07-11 21:08:38 +08:00
|
|
|
"react-router-dom": "^5.2.0"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@babel/core": "^7.14.6",
|
2021-07-26 00:18:45 +08:00
|
|
|
"@logto/eslint-config": "^0.1.0-rc.14",
|
|
|
|
"@logto/eslint-config-react": "^0.1.0-rc.14",
|
|
|
|
"@logto/ts-config": "^0.1.0-rc.14",
|
|
|
|
"@logto/ts-config-react": "^0.1.0-rc.14",
|
2021-07-11 21:08:38 +08:00
|
|
|
"@types/jest": "^26.0.24",
|
|
|
|
"@types/react": "^17.0.14",
|
|
|
|
"@types/react-dom": "^17.0.9",
|
|
|
|
"@types/react-router-dom": "^5.1.8",
|
2021-07-13 23:03:02 +08:00
|
|
|
"@types/webpack": "^5.28.0",
|
2021-07-11 21:08:38 +08:00
|
|
|
"@types/webpack-env": "^1.16.2",
|
|
|
|
"babel-preset-razzle": "4.0.5",
|
2021-07-13 23:37:58 +08:00
|
|
|
"concurrently": "^6.2.0",
|
2021-07-11 21:08:38 +08:00
|
|
|
"eslint": "^7.30.0",
|
|
|
|
"eslint-formatter-pretty": "^4.1.0",
|
|
|
|
"html-webpack-plugin": "^4.5.2",
|
2021-07-25 22:27:51 +08:00
|
|
|
"lint-staged": "^11.1.1",
|
2021-07-11 21:08:38 +08:00
|
|
|
"mini-css-extract-plugin": "^0.9.0",
|
|
|
|
"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": {
|
2021-07-14 00:44:37 +08:00
|
|
|
"extends": "@logto/react"
|
2021-07-11 21:08:38 +08:00
|
|
|
},
|
|
|
|
"stylelint": {
|
|
|
|
"extends": "@logto/eslint-config-react/.stylelintrc"
|
|
|
|
},
|
2021-07-25 22:39:45 +08:00
|
|
|
"prettier": "@logto/eslint-config/.prettierrc"
|
2021-07-11 21:08:38 +08:00
|
|
|
}
|