mirror of https://github.com/artifacthub/hub.git
70 lines
2.4 KiB
JSON
70 lines
2.4 KiB
JSON
{
|
|
"name": "widget",
|
|
"version": "1.20.0",
|
|
"private": true,
|
|
"dependencies": {
|
|
"lodash": "^4.17.21",
|
|
"moment": "^2.30.1",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-shadow": "^20.5.0",
|
|
"styled-components": "^6.1.13",
|
|
"stylis": "^4.3.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
"@craco/craco": "^7.1.0",
|
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
"@eslint/js": "^9.14.0",
|
|
"@testing-library/dom": "^10.4.0",
|
|
"@testing-library/jest-dom": "^6.6.3",
|
|
"@testing-library/react": "^16.0.1",
|
|
"@testing-library/react-hooks": "^8.0.0",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/lodash": "^4.17.13",
|
|
"@types/node": "^22.8.7",
|
|
"@types/react": "^18.3.12",
|
|
"@types/react-dom": "^18.3.1",
|
|
"babel-plugin-styled-components": "^2.1.4",
|
|
"eslint": "^9.14.0",
|
|
"eslint-config-prettier": "^9.1.0",
|
|
"eslint-plugin-prettier": "^5.2.1",
|
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
"globals": "^15.12.0",
|
|
"jest-fetch-mock": "^3.0.3",
|
|
"jest-mock": "^29.7.0",
|
|
"prettier": "^3.3.3",
|
|
"react-scripts": "^5.0.1",
|
|
"typescript": "^5.6.3",
|
|
"typescript-eslint": "^8.12.2",
|
|
"webpack-cli": "^5.1.4"
|
|
},
|
|
"scripts": {
|
|
"start": "REACT_APP_HUB_BASE_URL=http://localhost:8000 craco start",
|
|
"build": "craco build",
|
|
"build:cra": "DISABLE_ESLINT_PLUGIN=true react-scripts build",
|
|
"test": "sed -i -e 's/const FORCE_EXIT_DELAY = 500;/const FORCE_EXIT_DELAY = 1000;/g' ./node_modules/jest-worker/build/base/BaseWorkerPool.js && TZ=UTC react-scripts test # See https://github.com/facebook/jest/issues/11354",
|
|
"test:coverage": "TZ=UTC react-scripts test --coverage --watchAll=false",
|
|
"eject": "react-scripts eject",
|
|
"lint": "eslint src --max-warnings 0",
|
|
"lint:fix": "eslint src --max-warnings 0 --fix",
|
|
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"",
|
|
"format:diff": "prettier --list-different \"src/**/*.{js,jsx,ts,tsx}\"",
|
|
"isready": "yarn format && yarn lint && yarn test --watchAll=false --passWithNoTests --verbose && yarn build"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
}
|
|
}
|