From e2308f501be8c3b8deed9377fada9b22a7b5eba2 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 24 Mar 2022 09:55:39 +0100 Subject: [PATCH] renamed package dbgate to dbgate-serve --- .github/workflows/build-npm.yaml | 9 ++++-- packages/dbgate/README.md | 27 +--------------- packages/dbgate/package.json | 17 +--------- packages/serve/README.md | 27 ++++++++++++++++ .../{dbgate => serve}/bin/dbgate-serve.js | 0 packages/serve/package.json | 32 +++++++++++++++++++ 6 files changed, 68 insertions(+), 44 deletions(-) create mode 100644 packages/serve/README.md rename packages/{dbgate => serve}/bin/dbgate-serve.js (100%) create mode 100644 packages/serve/package.json diff --git a/.github/workflows/build-npm.yaml b/.github/workflows/build-npm.yaml index 929dc5ab..d78684ba 100644 --- a/.github/workflows/build-npm.yaml +++ b/.github/workflows/build-npm.yaml @@ -88,12 +88,17 @@ jobs: working-directory: packages/web run: | npm publish - - - name: Publish dbgate + + - name: Publish dbgate (obsolete) working-directory: packages/dbgate run: | npm publish + - name: Publish dbgate-serve + working-directory: packages/serve + run: | + npm publish + - name: Publish dbgate-plugin-csv working-directory: plugins/dbgate-plugin-csv run: | diff --git a/packages/dbgate/README.md b/packages/dbgate/README.md index dab3776b..cbd76c9d 100644 --- a/packages/dbgate/README.md +++ b/packages/dbgate/README.md @@ -1,27 +1,2 @@ -[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) -[![NPM version](https://img.shields.io/npm/v/dbgate.svg)](https://www.npmjs.com/package/dbgate) - # DbGate - database administration tool -DbGate is fast and easy to use database administration tool for MySQL, PostgreSQL, SQL Server. - -## Install using npm -```sh -npm install -g dbgate -``` - -After installing, you can run dbgate with command: -```sh -dbgate-serve -``` - -Then open http://localhost:5000 in your browser - -## Download electron app -You can also download binary packages from https://dbgate.org . Or run from source code, as described on [github](https://github.com/dbgate/dbgate) - -## Other dbgate packages -You can use some functionality of dbgate from your JavaScript code. See [dbgate-api](https://npmjs.com/dbgate-api) package. - -## Screenshot - -![Screenshot](https://raw.githubusercontent.com/dbgate/dbgate/master/screenshot.png) +This package is obsolete, please use [dbgate-serve](https://www.npmjs.com/package/dbgate-serve) package instead diff --git a/packages/dbgate/package.json b/packages/dbgate/package.json index b1afa4d6..027b4340 100644 --- a/packages/dbgate/package.json +++ b/packages/dbgate/package.json @@ -9,24 +9,9 @@ "description": "Opensource database administration tool - web interface", "author": "Jan Prochazka", "license": "MIT", - "bin": { - "dbgate-serve": "./bin/dbgate-serve.js" - }, "keywords": [ "sql", "dbgate", "web" - ], - "dependencies": { - "dbgate-api": "^4.1.1", - "dbgate-plugin-csv": "^4.1.1", - "dbgate-plugin-excel": "^4.1.1", - "dbgate-plugin-mongo": "^4.1.1", - "dbgate-plugin-mssql": "^4.1.1", - "dbgate-plugin-mysql": "^4.1.1", - "dbgate-plugin-postgres": "^4.1.1", - "dbgate-plugin-xml": "^4.1.1", - "dbgate-web": "^4.1.1", - "dotenv": "^16.0.0" - } + ] } diff --git a/packages/serve/README.md b/packages/serve/README.md new file mode 100644 index 00000000..49226754 --- /dev/null +++ b/packages/serve/README.md @@ -0,0 +1,27 @@ +[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) +[![NPM version](https://img.shields.io/npm/v/dbgate.svg)](https://www.npmjs.com/package/dbgate) + +# DbGate - database administration tool +DbGate is fast and easy to use database administration tool for MySQL, PostgreSQL, SQL Server. + +## Install using npm +```sh +npm install -g dbgate-servee +``` + +After installing, you can run dbgate with command: +```sh +dbgate-serve +``` + +Then open http://localhost:5000 in your browser + +## Download electron app +You can also download binary packages from https://dbgate.org . Or run from source code, as described on [github](https://github.com/dbgate/dbgate) + +## Other dbgate packages +You can use some functionality of dbgate from your JavaScript code. See [dbgate-api](https://npmjs.com/dbgate-api) package. + +## Screenshot + +![Screenshot](https://raw.githubusercontent.com/dbgate/dbgate/master/screenshot.png) diff --git a/packages/dbgate/bin/dbgate-serve.js b/packages/serve/bin/dbgate-serve.js similarity index 100% rename from packages/dbgate/bin/dbgate-serve.js rename to packages/serve/bin/dbgate-serve.js diff --git a/packages/serve/package.json b/packages/serve/package.json new file mode 100644 index 00000000..510a58cd --- /dev/null +++ b/packages/serve/package.json @@ -0,0 +1,32 @@ +{ + "name": "dbgate-serve", + "version": "4.1.1", + "homepage": "https://dbgate.org/", + "repository": { + "type": "git", + "url": "https://github.com/dbgate/dbgate.git" + }, + "description": "Opensource database administration tool - web interface", + "author": "Jan Prochazka", + "license": "MIT", + "bin": { + "dbgate-serve": "./bin/dbgate-serve.js" + }, + "keywords": [ + "sql", + "dbgate", + "web" + ], + "dependencies": { + "dbgate-api": "^4.1.1", + "dbgate-plugin-csv": "^4.1.1", + "dbgate-plugin-excel": "^4.1.1", + "dbgate-plugin-mongo": "^4.1.1", + "dbgate-plugin-mssql": "^4.1.1", + "dbgate-plugin-mysql": "^4.1.1", + "dbgate-plugin-postgres": "^4.1.1", + "dbgate-plugin-xml": "^4.1.1", + "dbgate-web": "^4.1.1", + "dotenv": "^16.0.0" + } +}