mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 12:53:58 +00:00
npm dist plugins
This commit is contained in:
@@ -50,7 +50,7 @@ function packagedPluginsDir() {
|
|||||||
}
|
}
|
||||||
if (process.argv[2] == 'startNodeWeb') {
|
if (process.argv[2] == 'startNodeWeb') {
|
||||||
// node_modules
|
// node_modules
|
||||||
return path.resolve(__dirname, '../../..');
|
return global['dbgateApiPackagedPluginsPath'];
|
||||||
}
|
}
|
||||||
return path.resolve(__dirname, '../../plugins');
|
return path.resolve(__dirname, '../../plugins');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const path = require('path');
|
||||||
const dbgateApi = require('dbgate-api');
|
const dbgateApi = require('dbgate-api');
|
||||||
|
|
||||||
global.dbgateApiModulePath = require.resolve('dbgate-api');
|
global.dbgateApiModulePath = require.resolve('dbgate-api');
|
||||||
|
global.dbgateApiPackagedPluginsPath = path.dirname(global.dbgateApiModulePath);
|
||||||
|
|
||||||
dbgateApi.getMainModule().start('startNodeWeb');
|
dbgateApi.getMainModule().start('startNodeWeb');
|
||||||
|
|||||||
@@ -20,6 +20,12 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dbgate-api": "^4.0.0",
|
"dbgate-api": "^4.0.0",
|
||||||
"dbgate-web": "^4.0.0"
|
"dbgate-web": "^4.0.0",
|
||||||
|
"dbgate-plugin-csv": "^4.1.1",
|
||||||
|
"dbgate-plugin-excel": "^4.1.1",
|
||||||
|
"dbgate-plugin-mongo": "^4.1.1",
|
||||||
|
"dbgate-plugin-mysql": "^4.1.1",
|
||||||
|
"dbgate-plugin-mssql": "^4.1.1",
|
||||||
|
"dbgate-plugin-postgres": "^4.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user