mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
c8df7a1c8a
* build: install eslint jsx/a11y * chore: add ESlint rules for jsx/a11y * bug: add exceptions
198 lines
6.5 KiB
JSON
198 lines
6.5 KiB
JSON
{
|
|
"name": "redash-client",
|
|
"version": "9.0.0-beta",
|
|
"description": "The frontend part of Redash.",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"start": "npm-run-all --parallel watch:viz webpack-dev-server",
|
|
"bundle": "bin/bundle-extensions",
|
|
"clean": "rm -rf ./client/dist/",
|
|
"build:viz": "(cd viz-lib && npm run build:babel)",
|
|
"build": "npm run clean && npm run build:viz && NODE_ENV=production webpack",
|
|
"build:old-node-version": "npm run clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack",
|
|
"watch:app": "webpack --watch --progress --colors -d",
|
|
"watch:viz": "(cd viz-lib && npm run watch:babel)",
|
|
"watch": "npm-run-all --parallel watch:*",
|
|
"webpack-dev-server": "webpack-dev-server",
|
|
"analyze": "npm run clean && BUNDLE_ANALYZER=on webpack",
|
|
"analyze:build": "npm run clean && NODE_ENV=production BUNDLE_ANALYZER=on webpack",
|
|
"lint": "npm run lint:base -- --ext .js --ext .jsx --ext .ts --ext .tsx ./client",
|
|
"lint:fix": "npm run lint:base -- --fix --ext .js --ext .jsx --ext .ts --ext .tsx ./client",
|
|
"lint:base": "eslint --config ./client/.eslintrc.js --ignore-path ./client/.eslintignore",
|
|
"lint:ci": "npm run lint -- --max-warnings 0 --format junit --output-file /tmp/test-results/eslint/results.xml",
|
|
"prettier": "prettier --write 'client/app/**/*.{js,jsx,ts,tsx}' 'client/cypress/**/*.{js,jsx,ts,tsx}'",
|
|
"type-check": "tsc --noEmit --project client/tsconfig.json",
|
|
"type-check:watch": "npm run type-check -- --watch",
|
|
"jest": "TZ=Africa/Khartoum jest",
|
|
"test": "run-s type-check jest",
|
|
"test:watch": "jest --watch",
|
|
"cypress": "node client/cypress/cypress.js",
|
|
"postinstall": "(cd viz-lib && npm ci && npm run build:babel)"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/getredash/redash.git"
|
|
},
|
|
"engines": {
|
|
"node": "^12.0.0",
|
|
"npm": "^6.0.0"
|
|
},
|
|
"author": "Redash Contributors",
|
|
"license": "BSD-2-Clause",
|
|
"bugs": {
|
|
"url": "https://github.com/getredash/redash/issues"
|
|
},
|
|
"homepage": "https://redash.io/",
|
|
"dependencies": {
|
|
"@ant-design/icons": "^4.2.1",
|
|
"@redash/viz": "file:viz-lib",
|
|
"ace-builds": "^1.4.12",
|
|
"antd": "^4.4.3",
|
|
"axios": "^0.21.1",
|
|
"axios-auth-refresh": "^3.0.0",
|
|
"bootstrap": "^3.3.7",
|
|
"classnames": "^2.2.6",
|
|
"d3": "^3.5.17",
|
|
"debug": "^3.1.0",
|
|
"dompurify": "^2.0.7",
|
|
"font-awesome": "^4.7.0",
|
|
"history": "^4.10.1",
|
|
"hoist-non-react-statics": "^3.3.0",
|
|
"markdown": "0.5.0",
|
|
"material-design-iconic-font": "^2.2.0",
|
|
"moment": "^2.19.3",
|
|
"mousetrap": "^1.6.1",
|
|
"mustache": "^2.3.0",
|
|
"numeral": "^2.0.6",
|
|
"path-to-regexp": "^3.1.0",
|
|
"prop-types": "^15.6.1",
|
|
"query-string": "^6.9.0",
|
|
"react": "^16.14.0",
|
|
"react-ace": "^9.1.1",
|
|
"react-dom": "^16.14.0",
|
|
"react-grid-layout": "^0.18.2",
|
|
"react-resizable": "^1.10.1",
|
|
"react-virtualized": "^9.21.2",
|
|
"sql-formatter": "git+https://github.com/getredash/sql-formatter.git",
|
|
"universal-router": "^8.3.0",
|
|
"use-debounce": "^3.1.0",
|
|
"use-media": "^1.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.10.4",
|
|
"@babel/core": "^7.10.4",
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
"@babel/plugin-transform-object-assign": "^7.2.0",
|
|
"@babel/preset-env": "^7.10.4",
|
|
"@babel/preset-react": "^7.0.0",
|
|
"@babel/preset-typescript": "^7.10.4",
|
|
"@cypress/code-coverage": "^3.8.1",
|
|
"@percy/agent": "0.24.3",
|
|
"@percy/cypress": "^2.3.2",
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
|
"@testing-library/cypress": "^7.0.2",
|
|
"@types/classnames": "^2.2.10",
|
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
"@types/lodash": "^4.14.157",
|
|
"@types/prop-types": "^15.7.3",
|
|
"@types/react": "^16.14.2",
|
|
"@types/react-dom": "^16.9.10",
|
|
"@types/sql-formatter": "^2.3.0",
|
|
"@typescript-eslint/eslint-plugin": "^2.10.0",
|
|
"@typescript-eslint/parser": "^2.10.0",
|
|
"atob": "^2.1.2",
|
|
"babel-eslint": "^10.0.3",
|
|
"babel-jest": "^24.1.0",
|
|
"babel-loader": "^8.0.5",
|
|
"babel-plugin-istanbul": "^6.0.0",
|
|
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
|
"copy-webpack-plugin": "^4.5.3",
|
|
"css-loader": "^0.28.7",
|
|
"cypress": "^5.3.0",
|
|
"enzyme": "^3.8.0",
|
|
"enzyme-adapter-react-16": "^1.7.1",
|
|
"enzyme-to-json": "^3.3.5",
|
|
"eslint": "^6.7.2",
|
|
"eslint-config-prettier": "^6.7.0",
|
|
"eslint-config-react-app": "^5.1.0",
|
|
"eslint-loader": "^3.0.3",
|
|
"eslint-plugin-chai-friendly": "^0.5.0",
|
|
"eslint-plugin-compat": "^3.3.0",
|
|
"eslint-plugin-cypress": "^2.0.1",
|
|
"eslint-plugin-flowtype": "^3.13.0",
|
|
"eslint-plugin-import": "^2.18.2",
|
|
"eslint-plugin-jest": "^22.2.2",
|
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
"eslint-plugin-no-only-tests": "^2.4.0",
|
|
"eslint-plugin-react": "^7.17.0",
|
|
"eslint-plugin-react-hooks": "^1.7.0",
|
|
"file-loader": "^2.0.0",
|
|
"html-webpack-plugin": "^3.2.0",
|
|
"identity-obj-proxy": "^3.0.0",
|
|
"jest": "^24.1.0",
|
|
"less": "^3.9.0",
|
|
"less-loader": "^4.1.0",
|
|
"less-plugin-autoprefix": "^1.5.1",
|
|
"lodash": "^4.17.20",
|
|
"mini-css-extract-plugin": "^0.4.4",
|
|
"mockdate": "^2.0.2",
|
|
"npm-run-all": "^4.1.5",
|
|
"prettier": "^1.19.1",
|
|
"raw-loader": "^0.5.1",
|
|
"react-refresh": "^0.9.0",
|
|
"react-test-renderer": "^16.5.2",
|
|
"request": "^2.88.0",
|
|
"request-cookies": "^1.1.0",
|
|
"style-loader": "^2.0.0",
|
|
"typescript": "^4.1.2",
|
|
"url-loader": "^1.1.2",
|
|
"webpack": "^4.44.2",
|
|
"webpack-build-notifier": "^0.1.30",
|
|
"webpack-bundle-analyzer": "^2.11.1",
|
|
"webpack-cli": "^3.1.2",
|
|
"webpack-dev-server": "^3.11.0",
|
|
"webpack-manifest-plugin": "^2.0.4"
|
|
},
|
|
"optionalDependencies": {
|
|
"fsevents": "^1.2.9"
|
|
},
|
|
"jest": {
|
|
"rootDir": "./client",
|
|
"setupFiles": [
|
|
"./app/__tests__/enzyme_setup.js",
|
|
"./app/__tests__/mocks.js"
|
|
],
|
|
"snapshotSerializers": [
|
|
"enzyme-to-json/serializer"
|
|
],
|
|
"moduleNameMapper": {
|
|
"^@/(.*)": "<rootDir>/app/$1",
|
|
"\\.(css|less)$": "identity-obj-proxy"
|
|
},
|
|
"testPathIgnorePatterns": [
|
|
"<rootDir>/app/__tests__/"
|
|
]
|
|
},
|
|
"nyc": {
|
|
"include": [
|
|
"client/app/**",
|
|
"viz-lib/**"
|
|
]
|
|
},
|
|
"//": "browserslist set to 'Async functions' compatibility",
|
|
"browserslist": [
|
|
"Edge >= 15",
|
|
"Firefox >= 52",
|
|
"Chrome >= 55",
|
|
"Safari >= 10.1",
|
|
"iOS >= 10.3",
|
|
"Opera >= 42",
|
|
"op_mob >= 46",
|
|
"android >= 67",
|
|
"and_chr >= 71",
|
|
"and_ff >= 64",
|
|
"and_uc >= 11.8",
|
|
"samsung >= 6.2"
|
|
]
|
|
}
|