2019-01-31 20:26:41 -05:00
|
|
|
{
|
|
|
|
"name": "web-console",
|
2021-09-08 18:56:04 -04:00
|
|
|
"version": "0.23.0",
|
2019-01-31 20:26:41 -05:00
|
|
|
"description": "A web console for Apache Druid",
|
2020-07-12 21:51:08 -04:00
|
|
|
"author": "Apache Druid Developers <dev@druid.apache.org>",
|
2019-01-31 20:26:41 -05:00
|
|
|
"license": "Apache-2.0",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2020-10-13 16:19:39 -04:00
|
|
|
"url": "https://github.com/apache/druid"
|
2019-01-31 20:26:41 -05:00
|
|
|
},
|
2019-05-03 20:14:57 -04:00
|
|
|
"jest": {
|
|
|
|
"preset": "ts-jest",
|
|
|
|
"testEnvironment": "jsdom",
|
|
|
|
"moduleNameMapper": {
|
2019-05-22 23:36:51 -04:00
|
|
|
"\\.s?css$": "identity-obj-proxy"
|
2019-05-03 20:14:57 -04:00
|
|
|
},
|
|
|
|
"testMatch": [
|
|
|
|
"**/?(*.)+(spec).ts?(x)"
|
2019-05-22 23:36:51 -04:00
|
|
|
],
|
|
|
|
"snapshotSerializers": [
|
|
|
|
"enzyme-to-json/serializer"
|
|
|
|
],
|
|
|
|
"setupFilesAfterEnv": [
|
|
|
|
"<rootDir>src/setup-tests.ts"
|
2019-05-03 20:14:57 -04:00
|
|
|
]
|
|
|
|
},
|
2021-04-22 22:33:03 -04:00
|
|
|
"prettier": "@awesome-code-style/prettier-config",
|
2019-01-31 20:26:41 -05:00
|
|
|
"scripts": {
|
|
|
|
"compile": "./script/build",
|
|
|
|
"pretest": "./script/build",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"jest": "jest --config jest.unit.config.js src",
|
2021-04-22 22:33:03 -04:00
|
|
|
"test-base": "npm run eslint && npm run sasslint && npm run prettify-check && npm run jest",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"test": "npm run test-base -- --silent 2>&1",
|
|
|
|
"test-ci": "npm run test-base -- --coverage",
|
2020-10-01 18:14:41 -04:00
|
|
|
"test-e2e": "jest --config jest.e2e.config.js e2e-tests",
|
2019-08-28 11:49:30 -04:00
|
|
|
"codecov": "codecov --disable=gcov -p ..",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"coverage": "jest --coverage src",
|
2021-06-26 21:54:41 -04:00
|
|
|
"update-snapshots": "jest -u --config jest.unit.config.js",
|
2021-04-22 22:33:03 -04:00
|
|
|
"autofix": "npm run eslint-fix && npm run sasslint-fix && npm run prettify",
|
|
|
|
"eslint": "eslint '{src,e2e-tests}/**/*.ts?(x)'",
|
|
|
|
"eslint-fix": "npm run eslint -- --fix",
|
|
|
|
"eslint-changed-only": "git diff --diff-filter=ACMR --cached --name-only | grep -E \\.tsx\\?$ | xargs ./node_modules/.bin/eslint",
|
|
|
|
"eslint-fix-changed-only": "npm run eslint-changed-only -- --fix",
|
|
|
|
"sasslint": "./node_modules/.bin/stylelint 'src/**/*.scss'",
|
2019-07-29 17:41:27 -04:00
|
|
|
"sasslint-fix": "npm run sasslint -- --fix",
|
2021-04-22 22:33:03 -04:00
|
|
|
"sasslint-changed-only": "git diff --diff-filter=ACMR --name-only | grep -E \\.scss$ | xargs ./node_modules/.bin/stylelint",
|
2019-07-29 17:41:27 -04:00
|
|
|
"sasslint-fix-changed-only": "npm run sasslint-changed-only -- --fix",
|
2021-04-22 22:33:03 -04:00
|
|
|
"prettify": "prettier --write '{src,e2e-tests}/**/*.{ts,tsx,scss}' './*.js'",
|
|
|
|
"prettify-check": "prettier --check '{src,e2e-tests}/**/*.{ts,tsx,scss}' './*.js'",
|
2019-03-02 15:22:54 -05:00
|
|
|
"generate-licenses-file": "license-checker --production --json --out licenses.json",
|
2020-10-21 01:11:29 -04:00
|
|
|
"check-licenses": "license-checker --production --onlyAllow 'Apache-1.1;Apache-2.0;BSD-2-Clause;BSD-3-Clause;0BSD;MIT;CC0-1.0' --summary",
|
2021-04-16 23:15:19 -04:00
|
|
|
"start": "webpack serve --hot --open"
|
2019-01-31 20:26:41 -05:00
|
|
|
},
|
2021-06-04 12:29:00 -04:00
|
|
|
"engines": {
|
|
|
|
"node": ">=14"
|
|
|
|
},
|
|
|
|
"volta": {
|
|
|
|
"node": "14.16.1",
|
|
|
|
"npm": "6.14.12"
|
|
|
|
},
|
2021-06-10 22:05:40 -04:00
|
|
|
"browserslist": [
|
|
|
|
"> 1% and supports es6",
|
|
|
|
"last 3 versions and supports es6",
|
|
|
|
"Firefox ESR",
|
|
|
|
"not dead",
|
|
|
|
"not ie 11"
|
|
|
|
],
|
2019-01-31 20:26:41 -05:00
|
|
|
"dependencies": {
|
2021-06-10 22:05:40 -04:00
|
|
|
"@blueprintjs/core": "^3.45.0",
|
|
|
|
"@blueprintjs/datetime": "^3.23.4",
|
|
|
|
"@blueprintjs/icons": "^3.26.1",
|
2021-06-17 21:24:29 -04:00
|
|
|
"@blueprintjs/popover2": "^0.10.1",
|
2021-10-09 02:02:58 -04:00
|
|
|
"axios": "^0.21.4",
|
2019-02-25 23:54:56 -05:00
|
|
|
"brace": "^0.11.1",
|
2019-01-31 20:26:41 -05:00
|
|
|
"classnames": "^2.2.6",
|
2019-06-01 20:37:54 -04:00
|
|
|
"copy-to-clipboard": "^3.2.0",
|
2021-04-16 23:15:19 -04:00
|
|
|
"core-js": "^3.10.1",
|
2019-10-25 20:53:06 -04:00
|
|
|
"d3-array": "^2.3.3",
|
2019-11-15 22:45:14 -05:00
|
|
|
"d3-axis": "^1.0.12",
|
|
|
|
"d3-scale": "^3.2.0",
|
|
|
|
"d3-selection": "^1.4.0",
|
2021-07-10 10:56:50 -04:00
|
|
|
"druid-query-toolkit": "^0.11.10",
|
2019-05-29 11:50:06 -04:00
|
|
|
"file-saver": "^2.0.2",
|
2020-10-21 01:11:29 -04:00
|
|
|
"fontsource-open-sans": "^3.0.9",
|
2019-06-19 15:48:31 -04:00
|
|
|
"has-own-prop": "^2.0.0",
|
2019-10-25 20:53:06 -04:00
|
|
|
"hjson": "^3.2.1",
|
2021-01-12 19:32:23 -05:00
|
|
|
"json-bigint-native": "^1.1.0",
|
2019-01-31 20:26:41 -05:00
|
|
|
"lodash.debounce": "^4.0.8",
|
2019-07-27 04:46:37 -04:00
|
|
|
"lodash.escape": "^4.0.1",
|
2019-10-25 20:53:06 -04:00
|
|
|
"memoize-one": "^5.1.1",
|
2019-01-31 20:26:41 -05:00
|
|
|
"numeral": "^2.0.6",
|
2021-04-16 23:15:19 -04:00
|
|
|
"react": "^16.14.0",
|
2019-07-16 12:22:12 -04:00
|
|
|
"react-ace": "^7.0.2",
|
2021-04-16 23:15:19 -04:00
|
|
|
"react-dom": "^16.14.0",
|
2019-10-25 20:53:06 -04:00
|
|
|
"react-router": "^5.1.2",
|
|
|
|
"react-router-dom": "^5.1.2",
|
2019-05-24 18:01:45 -04:00
|
|
|
"react-splitter-layout": "^4.0.0",
|
2019-10-25 20:53:06 -04:00
|
|
|
"react-table": "~6.10.3",
|
2021-04-16 23:15:19 -04:00
|
|
|
"regenerator-runtime": "^0.13.7",
|
|
|
|
"tslib": "^2.2.0"
|
2019-01-31 20:26:41 -05:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2021-07-28 12:25:18 -04:00
|
|
|
"@awesome-code-style/eslint-config": "^3.2.0",
|
2021-04-22 22:33:03 -04:00
|
|
|
"@awesome-code-style/prettier-config": "^3.0.0",
|
|
|
|
"@awesome-code-style/stylelint-config": "^3.0.0",
|
2021-06-10 22:05:40 -04:00
|
|
|
"@babel/core": "^7.14.3",
|
|
|
|
"@babel/preset-env": "^7.14.4",
|
2019-10-25 20:53:06 -04:00
|
|
|
"@testing-library/react": "^8.0.9",
|
2019-07-16 12:22:12 -04:00
|
|
|
"@types/classnames": "^2.2.9",
|
2019-04-07 23:19:08 -04:00
|
|
|
"@types/d3-array": "^2.0.0",
|
2019-11-15 22:45:14 -05:00
|
|
|
"@types/d3-axis": "^1.0.12",
|
|
|
|
"@types/d3-scale": "^2.1.1",
|
|
|
|
"@types/d3-selection": "^1.4.1",
|
2019-07-30 20:54:39 -04:00
|
|
|
"@types/enzyme": "^3.10.3",
|
2019-05-22 23:36:51 -04:00
|
|
|
"@types/enzyme-adapter-react-16": "^1.0.5",
|
2019-05-29 11:50:06 -04:00
|
|
|
"@types/file-saver": "^2.0.1",
|
2019-04-07 23:19:08 -04:00
|
|
|
"@types/hjson": "^2.4.1",
|
2021-04-16 23:15:19 -04:00
|
|
|
"@types/jest": "^26.0.22",
|
2019-04-07 23:19:08 -04:00
|
|
|
"@types/lodash.debounce": "^4.0.6",
|
2019-07-27 04:46:37 -04:00
|
|
|
"@types/lodash.escape": "^4.0.6",
|
2019-07-16 12:22:12 -04:00
|
|
|
"@types/memoize-one": "^4.1.1",
|
2019-10-25 20:53:06 -04:00
|
|
|
"@types/node": "^12.11.7",
|
2019-08-21 16:52:48 -04:00
|
|
|
"@types/numeral": "^0.0.26",
|
2021-04-16 23:15:19 -04:00
|
|
|
"@types/react": "^16.14.5",
|
|
|
|
"@types/react-dom": "^16.9.12",
|
2019-10-25 20:53:06 -04:00
|
|
|
"@types/react-router-dom": "^5.1.0",
|
2019-05-24 18:01:45 -04:00
|
|
|
"@types/react-splitter-layout": "^3.0.0",
|
2019-07-30 20:54:39 -04:00
|
|
|
"@types/react-table": "6.8.5",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"@types/uuid": "^7.0.2",
|
2021-04-22 22:33:03 -04:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
2021-06-10 22:05:40 -04:00
|
|
|
"autoprefixer": "^10.2.6",
|
2021-04-16 23:15:19 -04:00
|
|
|
"babel-loader": "^8.2.2",
|
2021-06-10 22:05:40 -04:00
|
|
|
"browserslist": "^4.16.6",
|
2019-10-25 20:53:06 -04:00
|
|
|
"codecov": "^3.6.1",
|
2021-04-16 23:15:19 -04:00
|
|
|
"css-loader": "^5.2.1",
|
2019-07-16 12:22:12 -04:00
|
|
|
"enzyme": "^3.10.0",
|
2019-10-25 20:53:06 -04:00
|
|
|
"enzyme-adapter-react-16": "^1.15.1",
|
|
|
|
"enzyme-to-json": "^3.4.3",
|
2021-04-22 22:33:03 -04:00
|
|
|
"eslint": "^7.24.0",
|
|
|
|
"eslint-config-prettier": "^8.2.0",
|
|
|
|
"eslint-plugin-header": "^3.1.1",
|
|
|
|
"eslint-plugin-import": "^2.22.1",
|
|
|
|
"eslint-plugin-react": "^7.23.2",
|
|
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
|
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
|
|
"eslint-plugin-unicorn": "^30.0.0",
|
2021-07-28 12:25:18 -04:00
|
|
|
"eslint-plugin-unused-imports": "^1.1.2",
|
2021-04-16 23:15:19 -04:00
|
|
|
"file-loader": "^6.2.0",
|
2019-07-16 12:22:12 -04:00
|
|
|
"fs-extra": "^8.1.0",
|
2019-01-31 20:26:41 -05:00
|
|
|
"identity-obj-proxy": "^3.0.0",
|
2021-04-16 23:15:19 -04:00
|
|
|
"jest": "^26.6.3",
|
2019-03-02 15:22:54 -05:00
|
|
|
"license-checker": "^25.0.1",
|
2021-04-16 23:15:19 -04:00
|
|
|
"node-sass": "^5.0.0",
|
|
|
|
"playwright-chromium": "^1.10.0",
|
2021-06-10 22:05:40 -04:00
|
|
|
"postcss": "^8.3.0",
|
|
|
|
"postcss-loader": "^5.3.0",
|
2019-07-16 12:22:12 -04:00
|
|
|
"postcss-preset-env": "^6.7.0",
|
2021-04-16 23:15:19 -04:00
|
|
|
"prettier": "^2.2.1",
|
|
|
|
"sass-loader": "^11.0.1",
|
|
|
|
"style-loader": "^2.0.0",
|
|
|
|
"stylelint": "^13.12.0",
|
2019-10-25 20:53:06 -04:00
|
|
|
"stylus": "^0.54.7",
|
2021-04-16 23:15:19 -04:00
|
|
|
"ts-jest": "^26.5.5",
|
|
|
|
"ts-loader": "^8.1.0",
|
2019-10-25 20:53:06 -04:00
|
|
|
"ts-node": "^8.4.1",
|
2021-04-16 23:15:19 -04:00
|
|
|
"typescript": "^4.2.4",
|
Web console basic end-to-end-test (#9595)
Load data and query (i.e., automate
https://druid.apache.org/docs/latest/tutorials/tutorial-batch.html) to
have some basic checks ensuring the web console is wired up to druid
correctly.
The new end-to-end tests (tutorial-batch.spec.ts) are added to
`web-console/e2e-tests`. Within that directory:
- `components` represent the various tabs of the web console. Currently,
abstractions for `load data`, `ingestion`, `datasources`, and `query`
are implemented.
- `components/load-data/data-connector` contains abstractions for the
different data source options available to the data loader's `Connect`
step. Currently, only the `Local file` data source connector is
implemented.
- `components/load-data/config` contains abstractions for the different
configuration options available for each step of the data loader flow.
Currently, the `Configure Schema`, `Partition`, and `Publish` steps
have initial implementation of their configuration options.
- `util` contains various helper methods for the tests and does not
contain abstractions of the web console.
Changes to add the new tests to CI:
- `.travis.yml`: New "web console end-to-end tests" job
- `web-console/jest.*.js`: Refactor jest configurations to have
different flavors for unit tests and for end-to-end tests. In
particular, the latter adds a jest setup configuration to wait for the
web console to be ready (`web-console/e2e-tests/util/setup.ts`).
- `web-console/package.json`: Refactor run scripts to add new script for
running end-to-end tests.
- `web-console/script/druid`: Utility scripts for building, starting,
and stopping druid.
Other changes:
- `pom.xml`: Refactor various settings disable java static checks and to
disable java tests into two new maven profiles. Since the same
settings are used in several places (e.g., .travis.yml, Dockerfiles,
etc.), having them in maven profiles makes it more maintainable.
- `web-console/src/console-application.tsx`: Fix typo ("the the").
2020-04-09 15:38:09 -04:00
|
|
|
"uuid": "^7.0.2",
|
2021-04-16 23:15:19 -04:00
|
|
|
"webpack": "^5.33.2",
|
|
|
|
"webpack-bundle-analyzer": "^4.4.1",
|
|
|
|
"webpack-cli": "^4.6.0",
|
|
|
|
"webpack-dev-server": "^3.11.2"
|
2019-01-31 20:26:41 -05:00
|
|
|
}
|
|
|
|
}
|