Skip to content

Commit 57af319

Browse files
committed
switch to vite, fix sass syntax, update radix packages, remove unused packages, remove serve-dist
1 parent 6d1acdc commit 57af319

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1288
-4025
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = {
6666
"react/jsx-indent": ["error", 2],
6767
"react/jsx-indent-props": ["error", 2],
6868
"react/jsx-pascal-case": "error",
69-
"react/jsx-sort-props": "error",
69+
"react/jsx-sort-props": "off",
7070
"react/jsx-sort-default-props": "error",
7171
"react/jsx-wrap-multilines": "error",
7272
"react/jsx-tag-spacing": [

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: yarn test:unit
5353

5454
- name: Run e2e tests - auth
55-
run: node scripts/serve-dist.js & yarn test:e2e:auth
55+
run: yarn preview & yarn test:e2e:auth
5656

5757
- name: Stop QuestDB
5858
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop

.github/workflows/tests_with_context_path.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: yarn test:unit
5656

5757
- name: Run e2e tests - auth
58-
run: node scripts/serve-dist.js & yarn test:e2e:auth
58+
run: yarn preview & yarn test:e2e:auth
5959

6060
- name: Stop QuestDB
6161
run: ./tmp/questdb-*-rt-linux-x86-64/bin/questdb.sh stop

index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<link rel="icon" href="/assets/favicon.ico">
7+
<link rel="icon" href="/assets/favicon.svg" type="image/svg+xml">
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9+
<meta name="description"
10+
content="QuestDB live demo. Query three large datasets and more than 2 billion rows in milliseconds with SQL" />
11+
<title>QuestDB · Console</title>
12+
</head>
13+
14+
<body class="mini-navbar pace-done">
15+
<div id="root"></div>
16+
<div id="sideMenu"></div>
17+
<script type="module" src="/src/index.tsx"></script>
18+
</body>
19+
20+
</html>

monaco.config.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

package.json

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"node": ">=16.13.1"
2020
},
2121
"scripts": {
22-
"build": "cross-env NODE_ENV=production COMMIT_HASH=$(git rev-parse --short HEAD) webpack",
23-
"postbuild": "node scripts/post-build.js",
24-
"start": "COMMIT_HASH=$(git rev-parse --short HEAD) webpack-dev-server --progress",
22+
"build": "cross-env COMMIT_HASH=$(git rev-parse --short HEAD) vite build",
23+
"start": "COMMIT_HASH=$(git rev-parse --short HEAD) vite",
24+
"preview": "vite preview",
2525
"test:unit": "TZ=UTC && jest --ci --runInBand",
2626
"test:e2e": "cypress run --spec 'e2e/tests/console/*.spec.js'",
2727
"test:e2e:auth": "cypress run --spec 'e2e/tests/auth/*.spec.js'",
@@ -38,12 +38,12 @@
3838
"@monaco-editor/react": "^4.6.0",
3939
"@popperjs/core": "2.4.2",
4040
"@questdb/sql-grammar": "1.3.0",
41-
"@radix-ui/react-alert-dialog": "^1.0.3",
42-
"@radix-ui/react-context-menu": "2.1.5",
43-
"@radix-ui/react-dialog": "^1.0.3",
44-
"@radix-ui/react-dropdown-menu": "^2.1.15",
45-
"@radix-ui/react-popover": "0.1.6",
46-
"@radix-ui/react-switch": "^1.0.2",
41+
"@radix-ui/react-alert-dialog": "^1.1.15",
42+
"@radix-ui/react-context-menu": "^2.2.16",
43+
"@radix-ui/react-dialog": "^1.1.15",
44+
"@radix-ui/react-dropdown-menu": "^2.1.16",
45+
"@radix-ui/react-popover": "^1.1.0",
46+
"@radix-ui/react-switch": "^1.2.6",
4747
"@styled-icons/bootstrap": "10.47.0",
4848
"@styled-icons/boxicons-logos": "10.47.0",
4949
"@styled-icons/boxicons-regular": "10.47.0",
@@ -103,13 +103,12 @@
103103
},
104104
"devDependencies": {
105105
"@4tw/cypress-drag-drop": "^2.2.5",
106-
"@babel/cli": "^7.17.10",
107-
"@babel/core": "^7.20.12",
106+
"@babel/core": "^7.28.5",
108107
"@babel/preset-env": "^7.20.2",
109108
"@babel/preset-react": "^7.17.12",
110109
"@babel/preset-typescript": "^7.18.6",
111-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
112110
"@styled-icons/styled-icon": "^10.7.0",
111+
"@types/babel__core": "^7",
113112
"@types/draggabilly": "^2.1.6",
114113
"@types/echarts": "^4.9.22",
115114
"@types/jest": "^29.5.14",
@@ -126,14 +125,12 @@
126125
"@types/throttle-debounce": "2.1.0",
127126
"@typescript-eslint/eslint-plugin": "^7.7.0",
128127
"@typescript-eslint/parser": "^7.7.0",
128+
"@vitejs/plugin-react": "^5.1.0",
129129
"babel-jest": "^29.4.2",
130-
"babel-loader": "^8.2.5",
131130
"babel-plugin-import": "^1.13.8",
132131
"babel-plugin-styled-components": "^2.0.7",
133132
"bundlewatch": "^0.3.3",
134-
"copy-webpack-plugin": "^11.0.0",
135133
"cross-env": "7.0.2",
136-
"css-loader": "3.5.3",
137134
"cypress": "^10.11.0",
138135
"cypress-real-events": "^1.13.0",
139136
"eslint": "^8.56.0",
@@ -147,29 +144,20 @@
147144
"eslint-plugin-react": "7.34.1",
148145
"eslint-plugin-react-hooks": "4.6.0",
149146
"eslint-plugin-standard": "5.0.0",
150-
"file-loader": "6.0.0",
151-
"fork-ts-checker-webpack-plugin": "^9.0.0",
152-
"html-webpack-plugin": "^5.5.0",
153147
"jest": "^29.7.0",
154148
"jest-util": "29.7.0",
155-
"mini-css-extract-plugin": "^2.6.0",
156149
"prettier": "^2.5.1",
157-
"react-refresh": "^0.14.0",
158-
"sass": "1.26.8",
159-
"sass-loader": "8.0.2",
160-
"style-loader": "1.2.1",
150+
"sass": "^1.93.2",
161151
"stylelint": "^13.13.1",
162152
"stylelint-config-prettier": "8.0.1",
163153
"stylelint-config-recommended": "3.0.0",
164154
"stylelint-config-styled-components": "0.1.1",
165-
"stylelint-custom-processor-loader": "0.6.0",
166155
"stylelint-processor-styled-components": "1.10.0",
167156
"ts-jest": "^29.2.5",
168157
"typescript": "^5.7.0",
169-
"webpack": "^5",
170-
"webpack-bundle-analyzer": "^4.9.1",
171-
"webpack-cli": "^4.9.2",
172-
"webpack-dev-server": "^4.15.1"
158+
"vite": "^7.1.12",
159+
"vite-plugin-checker": "^0.11.0",
160+
"vite-plugin-static-copy": "^3.1.4"
173161
},
174162
"resolutions": {
175163
"webpack": "^5",
@@ -181,22 +169,17 @@
181169
"bundlewatch": {
182170
"files": [
183171
{
184-
"path": "dist/vendor.*.js",
185-
"maxSize": "3MB",
186-
"compression": "none"
187-
},
188-
{
189-
"path": "dist/qdb.*.js",
172+
"path": "dist/assets/vendor-*.js",
190173
"maxSize": "500KB",
191174
"compression": "none"
192175
},
193176
{
194-
"path": "dist/qdb.*.css",
195-
"maxSize": "100KB",
177+
"path": "dist/assets/index-*.js",
178+
"maxSize": "2.5MB",
196179
"compression": "none"
197180
},
198181
{
199-
"path": "dist/vendor.*.css",
182+
"path": "dist/assets/index-*.css",
200183
"maxSize": "100KB",
201184
"compression": "none"
202185
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)