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",
|
2021-08-11 22:12:36 +08:00
|
|
|
"license": "MPL-2.0",
|
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",
|
2022-02-20 14:12:07 +08:00
|
|
|
"start": "parcel src/index.html",
|
2022-05-14 14:50:37 +08:00
|
|
|
"dev": "cross-env PORT=5001 parcel src/index.html --no-cache --hmr-port 6001",
|
2022-02-20 14:12:07 +08:00
|
|
|
"check": "tsc --noEmit",
|
2022-04-15 16:31:49 +08:00
|
|
|
"build": "pnpm check && rm -rf dist && parcel build src/index.html --no-autoinstall --no-cache",
|
2021-08-20 18:16:00 +08:00
|
|
|
"lint": "eslint --ext .ts --ext .tsx src",
|
2022-05-05 18:26:30 +08:00
|
|
|
"lint:report": "pnpm lint --format json --output-file report.json",
|
2021-07-11 21:08:38 +08:00
|
|
|
"stylelint": "stylelint \"src/**/*.scss\"",
|
2022-05-30 09:42:59 +08:00
|
|
|
"test:coverage": "jest --coverage --silent",
|
2022-02-20 14:12:07 +08:00
|
|
|
"test": "jest"
|
2021-07-11 21:08:38 +08:00
|
|
|
},
|
2022-04-22 18:02:54 +08:00
|
|
|
"devDependencies": {
|
2021-07-28 01:13:51 +08:00
|
|
|
"@logto/phrases": "^0.1.0",
|
2021-08-23 21:29:58 +08:00
|
|
|
"@logto/schemas": "^0.1.0",
|
2022-05-29 14:19:09 +08:00
|
|
|
"@parcel/core": "2.5.0",
|
|
|
|
"@parcel/transformer-sass": "2.5.0",
|
|
|
|
"@parcel/transformer-svg-react": "2.5.0",
|
2022-04-12 15:03:38 +08:00
|
|
|
"@peculiar/webcrypto": "^1.3.3",
|
2022-05-17 10:42:15 +00:00
|
|
|
"@silverhand/eslint-config": "^0.14.0",
|
2022-05-17 13:20:17 +00:00
|
|
|
"@silverhand/eslint-config-react": "^0.14.0",
|
2022-04-24 18:02:18 +08:00
|
|
|
"@silverhand/essentials": "^1.1.7",
|
2022-05-17 13:33:53 +00:00
|
|
|
"@silverhand/jest-config": "^0.14.0",
|
2022-05-17 11:04:12 +00:00
|
|
|
"@silverhand/ts-config": "^0.14.0",
|
2022-05-17 10:48:33 +00:00
|
|
|
"@silverhand/ts-config-react": "^0.14.0",
|
2022-04-24 18:02:18 +08:00
|
|
|
"@testing-library/react": "^12.0.0",
|
2022-05-25 09:58:54 +08:00
|
|
|
"@types/color": "^3.0.3",
|
2022-04-24 18:02:18 +08:00
|
|
|
"@types/jest": "^27.4.1",
|
2021-07-11 21:08:38 +08:00
|
|
|
"@types/react": "^17.0.14",
|
|
|
|
"@types/react-dom": "^17.0.9",
|
2022-03-28 09:36:39 +08:00
|
|
|
"@types/react-modal": "^3.13.1",
|
2022-02-20 14:12:07 +08:00
|
|
|
"@types/react-router-dom": "^5.3.2",
|
2022-05-27 15:43:42 +08:00
|
|
|
"camelcase-keys": "^7.0.2",
|
2022-04-24 18:02:18 +08:00
|
|
|
"classnames": "^2.3.1",
|
2022-05-25 09:58:54 +08:00
|
|
|
"color": "^4.2.3",
|
2022-05-14 14:50:37 +08:00
|
|
|
"cross-env": "^7.0.3",
|
2022-02-28 15:21:48 +08:00
|
|
|
"eslint": "^8.10.0",
|
2022-04-29 20:28:08 +08:00
|
|
|
"i18next": "^21.6.12",
|
2022-04-24 18:02:18 +08:00
|
|
|
"i18next-browser-languagedetector": "^6.1.3",
|
2022-02-20 14:12:07 +08:00
|
|
|
"jest": "^27.5.1",
|
2022-05-17 16:32:02 +08:00
|
|
|
"jest-transformer-svg": "^1.0.2",
|
2022-04-24 18:02:18 +08:00
|
|
|
"js-base64": "^3.7.2",
|
|
|
|
"ky": "^0.30.0",
|
|
|
|
"libphonenumber-js": "^1.9.49",
|
2022-06-02 13:19:09 +08:00
|
|
|
"lint-staged": "^13.0.0",
|
2022-05-29 14:19:09 +08:00
|
|
|
"parcel": "2.5.0",
|
2022-02-20 14:12:07 +08:00
|
|
|
"postcss": "^8.4.6",
|
|
|
|
"postcss-modules": "^4.3.0",
|
2021-07-11 21:08:38 +08:00
|
|
|
"prettier": "^2.3.2",
|
2022-04-24 18:02:18 +08:00
|
|
|
"react": "^17.0.2",
|
2022-05-17 16:32:02 +08:00
|
|
|
"react-device-detect": "^2.2.2",
|
2022-04-24 18:02:18 +08:00
|
|
|
"react-dom": "^17.0.2",
|
|
|
|
"react-i18next": "^11.15.4",
|
|
|
|
"react-modal": "^3.14.4",
|
2022-05-20 09:59:40 +08:00
|
|
|
"react-modal-promise": "^1.0.2",
|
2022-04-24 18:02:18 +08:00
|
|
|
"react-phone-number-input": "^3.1.46",
|
|
|
|
"react-router-dom": "^6.2.2",
|
|
|
|
"react-string-replace": "^1.0.0",
|
|
|
|
"react-timer-hook": "^3.0.5",
|
2022-05-17 13:20:17 +00:00
|
|
|
"stylelint": "^14.8.2",
|
2022-05-17 10:26:55 +08:00
|
|
|
"typescript": "^4.6.2",
|
|
|
|
"use-debounced-loader": "^0.1.1"
|
2022-02-20 14:12:07 +08:00
|
|
|
},
|
|
|
|
"alias": {
|
|
|
|
"@/*": "./src/$1"
|
2021-07-11 21:08:38 +08:00
|
|
|
},
|
|
|
|
"eslintConfig": {
|
2022-05-11 06:32:03 +00:00
|
|
|
"extends": "@silverhand/react",
|
|
|
|
"rules": {
|
|
|
|
"complexity": "off"
|
|
|
|
}
|
2021-07-11 21:08:38 +08:00
|
|
|
},
|
|
|
|
"stylelint": {
|
2022-05-11 11:30:35 +08:00
|
|
|
"extends": "@silverhand/eslint-config-react/.stylelintrc",
|
|
|
|
"rules": {
|
|
|
|
"selector-pseudo-class-no-unknown": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"ignorePseudoClasses": [
|
|
|
|
"global"
|
|
|
|
]
|
|
|
|
}
|
2022-05-17 13:20:17 +00:00
|
|
|
],
|
|
|
|
"scss/function-no-unknown": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"ignoreFunctions": [
|
|
|
|
"/^_./"
|
|
|
|
]
|
|
|
|
}
|
2022-05-11 11:30:35 +08:00
|
|
|
]
|
|
|
|
}
|
2021-07-11 21:08:38 +08:00
|
|
|
},
|
2022-05-17 10:26:55 +08:00
|
|
|
"prettier": "@silverhand/eslint-config/.prettierrc"
|
2021-07-11 21:08:38 +08:00
|
|
|
}
|