Compare commits

...

7 Commits

Author SHA1 Message Date
SPRINX0\prochazka
cbc4537b06 Merge branch 'master' into feature/rspack 2025-05-29 14:06:27 +02:00
SPRINX0\prochazka
179fdfca92 Merge branch 'master' into feature/rspack 2025-05-29 14:02:41 +02:00
SPRINX0\prochazka
76e834b09c fix 2025-05-29 13:30:19 +02:00
SPRINX0\prochazka
1b55eba24b v6.4.3-beta.2 2025-05-29 13:19:13 +02:00
Jan Prochazka
7ba7ebfe52 Merge pull request #1129 from ProjectInfinity/rspack
WIP - Migrate webpack to rspack
2025-05-29 13:16:27 +02:00
ProjectInfinity
9f28d947d3 build(api): migrate webpack to rspack 2025-05-26 18:53:52 +02:00
ProjectInfinity
6d6a8526cc build(plugins): introduce rspack as replacement for webpack 2025-05-26 18:47:59 +02:00
61 changed files with 1804 additions and 1046 deletions

View File

@@ -79,10 +79,12 @@
"start:azure": "env-cmd -f env/azure/.env node src/index.js --listen-api",
"start:e2e:team": "cross-env DEVWEB=1 DEVMODE=1 env-cmd -f ../../e2e-tests/env/team/.env node src/index.js --listen-api",
"ts": "tsc",
"build": "webpack",
"build": "rspack",
"build:doc": "jsdoc2md --template doctpl.hbs ./src/shell/* > ../../../dbgate.github.io/_docs/apidoc.md"
},
"devDependencies": {
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"@types/fs-extra": "^9.0.11",
"@types/lodash": "^4.14.149",
"dbgate-types": "^6.0.0-alpha.1",
@@ -90,8 +92,6 @@
"jsdoc-to-markdown": "^9.0.5",
"node-loader": "^1.0.2",
"nodemon": "^2.0.2",
"typescript": "^4.4.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"typescript": "^4.4.3"
}
}

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const rspack = require('@rspack/core');
var path = require('path');
var getBundleExternals = require('../../common/getBundleExternals');

View File

@@ -15,9 +15,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-cassandra",
"plugout": "dbgate-plugout dbgate-plugin-cassandra",
@@ -25,14 +25,14 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.8",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.8"
},
"dependencies": {
"cassandra-driver": "^4.7.2",
"dbgate-tools": "^6.0.0-alpha.1",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.17.21",
"cassandra-driver": "^4.7.2"
"lodash": "^4.17.21"
}
}

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,24 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -15,9 +15,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-clickhouse",
"plugout": "dbgate-plugout dbgate-plugin-clickhouse",
@@ -25,9 +25,9 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.8",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.8"
},
"dependencies": {
"@clickhouse/client": "^1.5.0",

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,24 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -22,9 +22,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-csv",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-csv",
@@ -32,13 +32,13 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"csv": "^6.3.10",
"line-reader": "^0.4.0",
"lodash": "^4.17.21"
}
}
}

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
@@ -11,12 +11,16 @@ var config = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
libraryTarget: 'var',
library: 'plugin',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new webpack.DefinePlugin({
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],

View File

@@ -1,30 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -22,9 +22,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-dbf",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-dbf",
@@ -32,12 +32,12 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"dbffile": "^1.12.0",
"lodash": "^4.17.21"
}
}
}

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
@@ -11,12 +11,16 @@ var config = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
libraryTarget: 'var',
library: 'plugin',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new webpack.DefinePlugin({
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],

View File

@@ -1,30 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -20,9 +20,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-duckdb",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-duckdb",
@@ -30,14 +30,14 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.4",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.4"
},
"dependencies": {
"dbgate-query-splitter": "^4.11.5",
"dbgate-tools": "^6.0.0-alpha.1",
"lodash": "^4.17.21",
"dbgate-query-splitter": "^4.11.5"
"lodash": "^4.17.21"
},
"optionalDependencies": {
"@duckdb/node-api": "^1.2.1-alpha.16"

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
@@ -11,12 +11,16 @@ var config = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
libraryTarget: 'var',
library: 'plugin',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new webpack.DefinePlugin({
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],

View File

@@ -1,28 +0,0 @@
var webpack = require('webpack');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -22,9 +22,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && dbgate-plugin dbgate-plugin-excel",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-excel",
@@ -32,12 +32,12 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"lodash": "^4.17.21",
"xlsx": "0.16.9"
}
}
}

View File

@@ -0,0 +1,29 @@
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
@@ -11,12 +11,16 @@ var config = {
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
libraryTarget: 'var',
library: 'plugin',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new webpack.DefinePlugin({
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],

View File

@@ -1,29 +0,0 @@
var webpack = require('webpack');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -1,30 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -21,9 +21,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-mongo",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-mongo",
@@ -31,9 +31,9 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"bson": "^6.8.0",

View File

@@ -0,0 +1,29 @@
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -0,0 +1,37 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
experiments: {
outputModule: true,
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,29 +0,0 @@
var webpack = require('webpack');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -1,30 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -21,9 +21,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"prepublishOnly": "yarn build",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-mssql",
@@ -31,9 +31,9 @@
"plugout": "dbgate-plugout dbgate-plugin-mssql"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"@azure/identity": "^4.6.0",

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');

View File

@@ -0,0 +1,33 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,29 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -21,9 +21,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-mysql",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-mysql",
@@ -31,9 +31,9 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"dbgate-query-splitter": "^4.11.5",

View File

@@ -1,5 +1,5 @@
var webpack = require('webpack');
var path = require('path');
const { rspack } = require('@rspack/core');
const path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');

View File

@@ -0,0 +1,38 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
experiments: {
outputModule: true,
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,30 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -20,9 +20,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-oracle",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-oracle",
@@ -30,9 +30,9 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.8",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.8"
},
"dependencies": {
"dbgate-query-splitter": "^4.11.5",

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
@@ -24,7 +24,7 @@ var config = {
// },
plugins: [
new webpack.IgnorePlugin({
new rspack.IgnorePlugin({
checkResource(resource) {
const lazyImports = ['uws'];
if (!lazyImports.includes(resource)) {

View File

@@ -0,0 +1,34 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -20,9 +20,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-postgres",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-postgres",
@@ -30,16 +30,16 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"wkx": "^0.5.0",
"pg-copy-streams": "^6.0.6",
"dbgate-query-splitter": "^4.11.5",
"dbgate-tools": "^6.0.0-alpha.1",
"lodash": "^4.17.21",
"pg": "^8.11.5"
"pg": "^8.11.5",
"pg-copy-streams": "^6.0.6",
"wkx": "^0.5.0"
}
}

View File

@@ -1,4 +1,4 @@
var webpack = require('webpack');
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
@@ -24,7 +24,7 @@ var config = {
// },
plugins: [
new webpack.IgnorePlugin({
new rspack.IgnorePlugin({
checkResource(resource) {
const lazyImports = ['pg-native', 'uws'];
if (!lazyImports.includes(resource)) {

View File

@@ -0,0 +1,34 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -19,9 +19,9 @@
"dist"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-redis",
"plugout": "dbgate-plugout dbgate-plugin-redis",
@@ -29,16 +29,16 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"async": "^3.2.3",
"dbgate-query-splitter": "^4.11.5",
"dbgate-tools": "^6.0.0-alpha.1",
"lodash": "^4.17.21",
"async": "^3.2.3",
"ioredis": "^5.4.1",
"lodash": "^4.17.21",
"node-redis-dump2": "^0.5.0"
}
}

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,28 +0,0 @@
var webpack = require('webpack');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -1,24 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -20,9 +20,9 @@
"icon.svg"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-sqlite",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-sqlite",
@@ -30,17 +30,17 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.4",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.4"
},
"dependencies": {
"dbgate-query-splitter": "^4.11.5",
"dbgate-tools": "^6.0.0-alpha.1",
"lodash": "^4.17.21",
"dbgate-query-splitter": "^4.11.5"
"lodash": "^4.17.21"
},
"optionalDependencies": {
"libsql": "0.5.0-pre.6",
"better-sqlite3": "11.8.1"
"better-sqlite3": "11.8.1",
"libsql": "0.5.0-pre.6"
}
}

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -0,0 +1,34 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
plugins: [
new rspack.DefinePlugin({
'global.DBGATE_PACKAGES': 'window.DBGATE_PACKAGES',
}),
],
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,28 +0,0 @@
var webpack = require('webpack');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -21,9 +21,9 @@
"dist"
],
"scripts": {
"build:frontend": "webpack --config webpack-frontend.config",
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
"build:backend": "webpack --config webpack-backend.config.js",
"build:frontend": "rspack --config rspack-frontend.config.js",
"build:frontend:watch": "rspack --watch --config rspack-frontend.config.js",
"build:backend": "rspack --config rspack-backend.config.js",
"build": "yarn build:frontend && yarn build:backend",
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-xml",
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-xml",
@@ -31,9 +31,9 @@
"prepublishOnly": "yarn build"
},
"devDependencies": {
"dbgate-plugin-tools": "^1.0.7",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
"@rspack/cli": "^1.3.11",
"@rspack/core": "^1.3.11",
"dbgate-plugin-tools": "^1.0.7"
},
"dependencies": {
"node-xml-stream-parser": "^1.0.12"

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -0,0 +1,28 @@
const { rspack } = require('@rspack/core');
var path = require('path');
var config = {
context: __dirname + '/src/frontend',
entry: {
app: './index.js',
},
target: 'web',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'frontend.js',
library: {
name: 'plugin',
type: 'var',
export: 'default',
},
module: true,
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

View File

@@ -1,28 +0,0 @@
var webpack = require('webpack');
var path = require('path');
const packageJson = require('./package.json');
const buildPluginExternals = require('../../common/buildPluginExternals');
const externals = buildPluginExternals(packageJson);
var config = {
context: __dirname + '/src/backend',
entry: {
app: './index.js',
},
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'backend.js',
libraryTarget: 'commonjs2',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
externals,
};
module.exports = config;

View File

@@ -1,24 +0,0 @@
var webpack = require("webpack");
var path = require("path");
var config = {
context: __dirname + "/src/frontend",
entry: {
app: "./index.js",
},
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
filename: "frontend.js",
libraryTarget: "var",
library: 'plugin',
},
// uncomment for disable minimalization
// optimization: {
// minimize: false,
// },
};
module.exports = config;

1633
yarn.lock

File diff suppressed because it is too large Load Diff