Compare commits
7 Commits
master
...
check-2025
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cbc4537b06 | ||
|
|
179fdfca92 | ||
|
|
76e834b09c | ||
|
|
1b55eba24b | ||
|
|
7ba7ebfe52 | ||
|
|
9f28d947d3 | ||
|
|
6d6a8526cc |
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var webpack = require('webpack');
|
||||
const rspack = require('@rspack/core');
|
||||
var path = require('path');
|
||||
var getBundleExternals = require('../../common/getBundleExternals');
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var webpack = require('webpack');
|
||||
const { rspack } = require('@rspack/core');
|
||||
var path = require('path');
|
||||
|
||||
const packageJson = require('./package.json');
|
||||
28
plugins/dbgate-plugin-cassandra/rspack-frontend.config.js
Normal file
28
plugins/dbgate-plugin-cassandra/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var webpack = require('webpack');
|
||||
const { rspack } = require('@rspack/core');
|
||||
var path = require('path');
|
||||
|
||||
const packageJson = require('./package.json');
|
||||
28
plugins/dbgate-plugin-clickhouse/rspack-frontend.config.js
Normal file
28
plugins/dbgate-plugin-clickhouse/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var webpack = require('webpack');
|
||||
const { rspack } = require('@rspack/core');
|
||||
var path = require('path');
|
||||
|
||||
const packageJson = require('./package.json');
|
||||
@@ -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',
|
||||
}),
|
||||
],
|
||||
@@ -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;
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var webpack = require('webpack');
|
||||
const { rspack } = require('@rspack/core');
|
||||
var path = require('path');
|
||||
|
||||
const packageJson = require('./package.json');
|
||||
@@ -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',
|
||||
}),
|
||||
],
|
||||
@@ -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;
|
||||
@@ -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"
|
||||
|
||||
28
plugins/dbgate-plugin-duckdb/rspack-backend.config.js
Normal file
28
plugins/dbgate-plugin-duckdb/rspack-backend.config.js
Normal 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;
|
||||
@@ -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',
|
||||
}),
|
||||
],
|
||||
@@ -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;
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
29
plugins/dbgate-plugin-excel/rspack-backend.config.js
Normal file
29
plugins/dbgate-plugin-excel/rspack-backend.config.js
Normal 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;
|
||||
@@ -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',
|
||||
}),
|
||||
],
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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",
|
||||
|
||||
29
plugins/dbgate-plugin-mongo/rspack-backend.config.js
Normal file
29
plugins/dbgate-plugin-mongo/rspack-backend.config.js
Normal 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;
|
||||
37
plugins/dbgate-plugin-mongo/rspack-frontend.config.js
Normal file
37
plugins/dbgate-plugin-mongo/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
var webpack = require('webpack');
|
||||
const { rspack } = require('@rspack/core');
|
||||
var path = require('path');
|
||||
|
||||
const packageJson = require('./package.json');
|
||||
33
plugins/dbgate-plugin-mssql/rspack-frontend.config.js
Normal file
33
plugins/dbgate-plugin-mssql/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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",
|
||||
|
||||
@@ -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');
|
||||
38
plugins/dbgate-plugin-mysql/rspack-frontend.config.js
Normal file
38
plugins/dbgate-plugin-mysql/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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",
|
||||
|
||||
@@ -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)) {
|
||||
34
plugins/dbgate-plugin-oracle/rspack-frontend.config.js
Normal file
34
plugins/dbgate-plugin-oracle/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)) {
|
||||
34
plugins/dbgate-plugin-postgres/rspack-frontend.config.js
Normal file
34
plugins/dbgate-plugin-postgres/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
28
plugins/dbgate-plugin-redis/rspack-backend.config.js
Normal file
28
plugins/dbgate-plugin-redis/rspack-backend.config.js
Normal 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;
|
||||
28
plugins/dbgate-plugin-redis/rspack-frontend.config.js
Normal file
28
plugins/dbgate-plugin-redis/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
28
plugins/dbgate-plugin-sqlite/rspack-backend.config.js
Normal file
28
plugins/dbgate-plugin-sqlite/rspack-backend.config.js
Normal 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;
|
||||
34
plugins/dbgate-plugin-sqlite/rspack-frontend.config.js
Normal file
34
plugins/dbgate-plugin-sqlite/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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"
|
||||
|
||||
28
plugins/dbgate-plugin-xml/rspack-backend.config.js
Normal file
28
plugins/dbgate-plugin-xml/rspack-backend.config.js
Normal 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;
|
||||
28
plugins/dbgate-plugin-xml/rspack-frontend.config.js
Normal file
28
plugins/dbgate-plugin-xml/rspack-frontend.config.js
Normal 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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user