2016-10-30 09:29:51 +00:00
|
|
|
{
|
2017-01-15 08:13:34 +00:00
|
|
|
"name": "redash-client",
|
2021-10-21 20:27:55 +00:00
|
|
|
"version": "11.0.0-dev",
|
2016-10-30 09:29:51 +00:00
|
|
|
"description": "The frontend part of Redash.",
|
|
|
|
"main": "index.js",
|
|
|
|
"scripts": {
|
2020-05-06 07:49:15 +00:00
|
|
|
"start": "npm-run-all --parallel watch:viz webpack-dev-server",
|
2018-10-19 16:04:02 +00:00
|
|
|
"clean": "rm -rf ./client/dist/",
|
2021-08-02 10:16:33 +00:00
|
|
|
"build:viz": "(cd viz-lib && yarn build:babel)",
|
|
|
|
"build": "yarn clean && yarn build:viz && NODE_ENV=production webpack",
|
|
|
|
"build:old-node-version": "yarn clean && NODE_ENV=production node --max-old-space-size=4096 node_modules/.bin/webpack",
|
2020-05-06 07:49:15 +00:00
|
|
|
"watch:app": "webpack --watch --progress --colors -d",
|
2021-08-02 10:16:33 +00:00
|
|
|
"watch:viz": "(cd viz-lib && yarn watch:babel)",
|
2020-05-06 07:49:15 +00:00
|
|
|
"watch": "npm-run-all --parallel watch:*",
|
|
|
|
"webpack-dev-server": "webpack-dev-server",
|
2021-08-02 10:16:33 +00:00
|
|
|
"analyze": "yarn clean && BUNDLE_ANALYZER=on webpack",
|
|
|
|
"analyze:build": "yarn clean && NODE_ENV=production BUNDLE_ANALYZER=on webpack",
|
|
|
|
"lint": "yarn lint:base --ext .js --ext .jsx --ext .ts --ext .tsx ./client",
|
|
|
|
"lint:fix": "yarn lint:base --fix --ext .js --ext .jsx --ext .ts --ext .tsx ./client",
|
2019-03-25 20:14:51 +00:00
|
|
|
"lint:base": "eslint --config ./client/.eslintrc.js --ignore-path ./client/.eslintignore",
|
2021-08-02 10:16:33 +00:00
|
|
|
"lint:ci": "yarn lint --max-warnings 0 --format junit --output-file /tmp/test-results/eslint/results.xml",
|
2020-07-16 20:05:44 +00:00
|
|
|
"prettier": "prettier --write 'client/app/**/*.{js,jsx,ts,tsx}' 'client/cypress/**/*.{js,jsx,ts,tsx}'",
|
|
|
|
"type-check": "tsc --noEmit --project client/tsconfig.json",
|
2021-08-02 10:16:33 +00:00
|
|
|
"type-check:watch": "yarn type-check --watch",
|
2020-07-16 20:05:44 +00:00
|
|
|
"jest": "TZ=Africa/Khartoum jest",
|
|
|
|
"test": "run-s type-check jest",
|
2018-11-07 13:37:08 +00:00
|
|
|
"test:watch": "jest --watch",
|
2020-05-06 07:49:15 +00:00
|
|
|
"cypress": "node client/cypress/cypress.js",
|
2021-08-02 10:16:33 +00:00
|
|
|
"preinstall": "cd viz-lib && yarn link --link-folder ../.yarn",
|
|
|
|
"postinstall": "(cd viz-lib && yarn --frozen-lockfile && yarn build:babel) && yarn link --link-folder ./.yarn @redash/viz"
|
2016-10-30 09:29:51 +00:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "git+https://github.com/getredash/redash.git"
|
|
|
|
},
|
2017-10-03 17:21:36 +00:00
|
|
|
"engines": {
|
2023-03-24 21:36:58 +00:00
|
|
|
"node": ">14.16.0 <17.0.0",
|
2021-08-02 10:16:33 +00:00
|
|
|
"yarn": "^1.22.10"
|
2017-10-03 17:21:36 +00:00
|
|
|
},
|
2016-10-30 09:29:51 +00:00
|
|
|
"author": "Redash Contributors",
|
|
|
|
"license": "BSD-2-Clause",
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/getredash/redash/issues"
|
|
|
|
},
|
|
|
|
"homepage": "https://redash.io/",
|
|
|
|
"dependencies": {
|
2020-08-25 17:24:15 +00:00
|
|
|
"@ant-design/icons": "^4.2.1",
|
2020-05-06 07:49:15 +00:00
|
|
|
"@redash/viz": "file:viz-lib",
|
2020-07-14 13:02:33 +00:00
|
|
|
"ace-builds": "^1.4.12",
|
2020-08-25 17:24:15 +00:00
|
|
|
"antd": "^4.4.3",
|
2021-01-26 00:49:32 +00:00
|
|
|
"axios": "^0.21.1",
|
2020-09-21 20:21:14 +00:00
|
|
|
"axios-auth-refresh": "^3.0.0",
|
2017-11-20 15:46:37 +00:00
|
|
|
"bootstrap": "^3.3.7",
|
2019-01-30 18:21:22 +00:00
|
|
|
"classnames": "^2.2.6",
|
2016-11-06 12:40:05 +00:00
|
|
|
"d3": "^3.5.17",
|
2017-10-03 17:21:36 +00:00
|
|
|
"debug": "^3.1.0",
|
2020-01-08 08:56:11 +00:00
|
|
|
"dompurify": "^2.0.7",
|
2016-10-30 13:52:46 +00:00
|
|
|
"font-awesome": "^4.7.0",
|
2020-01-20 18:56:37 +00:00
|
|
|
"history": "^4.10.1",
|
2019-02-05 19:13:32 +00:00
|
|
|
"hoist-non-react-statics": "^3.3.0",
|
2017-09-22 18:08:07 +00:00
|
|
|
"markdown": "0.5.0",
|
2016-10-30 13:52:46 +00:00
|
|
|
"material-design-iconic-font": "^2.2.0",
|
2017-12-02 11:03:19 +00:00
|
|
|
"moment": "^2.19.3",
|
2017-10-03 17:21:36 +00:00
|
|
|
"mousetrap": "^1.6.1",
|
|
|
|
"mustache": "^2.3.0",
|
2017-11-30 22:02:37 +00:00
|
|
|
"numeral": "^2.0.6",
|
2020-07-03 18:11:39 +00:00
|
|
|
"path-to-regexp": "^3.1.0",
|
2018-04-30 23:02:06 +00:00
|
|
|
"prop-types": "^15.6.1",
|
2020-01-20 10:49:17 +00:00
|
|
|
"query-string": "^6.9.0",
|
2020-12-07 19:46:46 +00:00
|
|
|
"react": "^16.14.0",
|
2020-07-14 13:02:33 +00:00
|
|
|
"react-ace": "^9.1.1",
|
2020-12-07 19:46:46 +00:00
|
|
|
"react-dom": "^16.14.0",
|
2020-02-26 19:20:30 +00:00
|
|
|
"react-grid-layout": "^0.18.2",
|
|
|
|
"react-resizable": "^1.10.1",
|
2020-01-06 18:51:45 +00:00
|
|
|
"react-virtualized": "^9.21.2",
|
2020-11-10 12:59:15 +00:00
|
|
|
"sql-formatter": "git+https://github.com/getredash/sql-formatter.git",
|
2020-01-20 18:56:37 +00:00
|
|
|
"universal-router": "^8.3.0",
|
2020-01-06 18:51:45 +00:00
|
|
|
"use-debounce": "^3.1.0",
|
|
|
|
"use-media": "^1.4.0"
|
2016-10-30 09:29:51 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-07-16 20:05:44 +00:00
|
|
|
"@babel/cli": "^7.10.4",
|
|
|
|
"@babel/core": "^7.10.4",
|
|
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
2019-03-10 07:29:44 +00:00
|
|
|
"@babel/plugin-transform-object-assign": "^7.2.0",
|
2020-07-16 20:05:44 +00:00
|
|
|
"@babel/preset-env": "^7.10.4",
|
2019-03-10 07:29:44 +00:00
|
|
|
"@babel/preset-react": "^7.0.0",
|
2020-07-16 20:05:44 +00:00
|
|
|
"@babel/preset-typescript": "^7.10.4",
|
2020-09-29 06:51:28 +00:00
|
|
|
"@cypress/code-coverage": "^3.8.1",
|
2020-11-03 19:50:39 +00:00
|
|
|
"@percy/agent": "0.24.3",
|
|
|
|
"@percy/cypress": "^2.3.2",
|
2020-12-07 19:46:46 +00:00
|
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
2020-12-10 19:16:31 +00:00
|
|
|
"@testing-library/cypress": "^7.0.2",
|
2020-07-16 20:05:44 +00:00
|
|
|
"@types/classnames": "^2.2.10",
|
|
|
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
|
|
"@types/lodash": "^4.14.157",
|
|
|
|
"@types/prop-types": "^15.7.3",
|
2020-12-16 02:21:37 +00:00
|
|
|
"@types/react": "^16.14.2",
|
|
|
|
"@types/react-dom": "^16.9.10",
|
2020-11-10 12:59:15 +00:00
|
|
|
"@types/sql-formatter": "^2.3.0",
|
2019-12-11 10:00:46 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^2.10.0",
|
|
|
|
"@typescript-eslint/parser": "^2.10.0",
|
2020-09-29 06:51:28 +00:00
|
|
|
"atob": "^2.1.2",
|
2019-12-11 10:00:46 +00:00
|
|
|
"babel-eslint": "^10.0.3",
|
2019-03-10 07:29:44 +00:00
|
|
|
"babel-jest": "^24.1.0",
|
|
|
|
"babel-loader": "^8.0.5",
|
2020-09-29 00:43:04 +00:00
|
|
|
"babel-plugin-istanbul": "^6.0.0",
|
2018-01-03 12:00:34 +00:00
|
|
|
"babel-plugin-transform-builtin-extend": "^1.1.2",
|
2018-10-18 18:21:47 +00:00
|
|
|
"copy-webpack-plugin": "^4.5.3",
|
2017-10-03 17:21:36 +00:00
|
|
|
"css-loader": "^0.28.7",
|
2020-10-06 19:06:47 +00:00
|
|
|
"cypress": "^5.3.0",
|
2019-01-13 13:26:44 +00:00
|
|
|
"enzyme": "^3.8.0",
|
|
|
|
"enzyme-adapter-react-16": "^1.7.1",
|
|
|
|
"enzyme-to-json": "^3.3.5",
|
2019-12-11 10:00:46 +00:00
|
|
|
"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",
|
2018-11-07 13:37:08 +00:00
|
|
|
"eslint-plugin-cypress": "^2.0.1",
|
2019-12-11 10:00:46 +00:00
|
|
|
"eslint-plugin-flowtype": "^3.13.0",
|
|
|
|
"eslint-plugin-import": "^2.18.2",
|
2019-03-10 07:29:44 +00:00
|
|
|
"eslint-plugin-jest": "^22.2.2",
|
2021-03-24 21:50:21 +00:00
|
|
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
2019-12-11 10:00:46 +00:00
|
|
|
"eslint-plugin-no-only-tests": "^2.4.0",
|
|
|
|
"eslint-plugin-react": "^7.17.0",
|
|
|
|
"eslint-plugin-react-hooks": "^1.7.0",
|
2018-10-18 18:21:47 +00:00
|
|
|
"file-loader": "^2.0.0",
|
|
|
|
"html-webpack-plugin": "^3.2.0",
|
2019-01-13 13:26:44 +00:00
|
|
|
"identity-obj-proxy": "^3.0.0",
|
2019-03-10 07:29:44 +00:00
|
|
|
"jest": "^24.1.0",
|
2019-03-10 11:35:27 +00:00
|
|
|
"less": "^3.9.0",
|
2018-10-18 18:21:47 +00:00
|
|
|
"less-loader": "^4.1.0",
|
2017-11-07 08:41:29 +00:00
|
|
|
"less-plugin-autoprefix": "^1.5.1",
|
2020-09-29 06:51:28 +00:00
|
|
|
"lodash": "^4.17.20",
|
2018-10-18 18:21:47 +00:00
|
|
|
"mini-css-extract-plugin": "^0.4.4",
|
2019-01-13 13:26:44 +00:00
|
|
|
"mockdate": "^2.0.2",
|
2020-05-06 07:49:15 +00:00
|
|
|
"npm-run-all": "^4.1.5",
|
2019-12-11 10:00:46 +00:00
|
|
|
"prettier": "^1.19.1",
|
2017-01-24 07:54:28 +00:00
|
|
|
"raw-loader": "^0.5.1",
|
2020-12-07 19:46:46 +00:00
|
|
|
"react-refresh": "^0.9.0",
|
2018-10-19 16:04:02 +00:00
|
|
|
"react-test-renderer": "^16.5.2",
|
2018-11-07 13:37:08 +00:00
|
|
|
"request": "^2.88.0",
|
2020-08-09 12:47:00 +00:00
|
|
|
"request-cookies": "^1.1.0",
|
2020-12-07 19:46:46 +00:00
|
|
|
"style-loader": "^2.0.0",
|
2020-12-16 02:21:37 +00:00
|
|
|
"typescript": "^4.1.2",
|
2019-03-10 11:35:27 +00:00
|
|
|
"url-loader": "^1.1.2",
|
2020-12-07 19:46:46 +00:00
|
|
|
"webpack": "^4.44.2",
|
2018-12-30 17:37:42 +00:00
|
|
|
"webpack-build-notifier": "^0.1.30",
|
2018-03-22 15:23:49 +00:00
|
|
|
"webpack-bundle-analyzer": "^2.11.1",
|
2018-10-18 18:21:47 +00:00
|
|
|
"webpack-cli": "^3.1.2",
|
2020-12-07 19:46:46 +00:00
|
|
|
"webpack-dev-server": "^3.11.0",
|
2018-10-18 18:21:47 +00:00
|
|
|
"webpack-manifest-plugin": "^2.0.4"
|
2018-07-24 09:01:03 +00:00
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
2021-08-02 10:16:33 +00:00
|
|
|
"fsevents": "^2.3.2"
|
2019-01-13 13:26:44 +00:00
|
|
|
},
|
|
|
|
"jest": {
|
2020-05-06 07:49:15 +00:00
|
|
|
"rootDir": "./client",
|
2019-01-13 13:26:44 +00:00
|
|
|
"setupFiles": [
|
2020-05-06 07:49:15 +00:00
|
|
|
"./app/__tests__/enzyme_setup.js",
|
|
|
|
"./app/__tests__/mocks.js"
|
2019-01-13 13:26:44 +00:00
|
|
|
],
|
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
],
|
|
|
|
"moduleNameMapper": {
|
2020-05-06 07:49:15 +00:00
|
|
|
"^@/(.*)": "<rootDir>/app/$1",
|
2019-01-13 13:26:44 +00:00
|
|
|
"\\.(css|less)$": "identity-obj-proxy"
|
|
|
|
},
|
|
|
|
"testPathIgnorePatterns": [
|
2020-05-06 07:49:15 +00:00
|
|
|
"<rootDir>/app/__tests__/"
|
2019-01-13 13:26:44 +00:00
|
|
|
]
|
2019-02-05 14:16:49 +00:00
|
|
|
},
|
2020-09-29 00:43:04 +00:00
|
|
|
"nyc": {
|
|
|
|
"include": [
|
|
|
|
"client/app/**",
|
|
|
|
"viz-lib/**"
|
|
|
|
]
|
|
|
|
},
|
2019-03-27 15:47:12 +00:00
|
|
|
"//": "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"
|
|
|
|
]
|
2016-10-30 09:29:51 +00:00
|
|
|
}
|