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