From 5ccdd7633b81ee80ebda373db36582743800e0b4 Mon Sep 17 00:00:00 2001 From: "SPRINX0\\prochazka" Date: Wed, 13 Nov 2024 15:27:12 +0100 Subject: [PATCH] readme --- .github/workflows/build-npm-pro.yaml | 173 +++++++++++++++++++++++++++ packages/web/README.md | 106 +--------------- 2 files changed, 175 insertions(+), 104 deletions(-) create mode 100644 .github/workflows/build-npm-pro.yaml diff --git a/.github/workflows/build-npm-pro.yaml b/.github/workflows/build-npm-pro.yaml new file mode 100644 index 000000000..17fb61288 --- /dev/null +++ b/.github/workflows/build-npm-pro.yaml @@ -0,0 +1,173 @@ +name: NPM packages PREMIUM + +# on: [push] + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+' + +# on: +# push: +# branches: +# - production + +jobs: + build: + + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-22.04] + + steps: + - name: Context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT" + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + - name: Use Node.js 18.x + uses: actions/setup-node@v1 + with: + node-version: 18.x + + - name: Checkout dbgate/dbgate-pro + uses: actions/checkout@v2 + with: + repository: dbgate/dbgate-pro + token: ${{ secrets.GH_TOKEN }} + path: dbgate-pro + + - name: Merge dbgate/dbgate-pro + run: | + mkdir ../dbgate-pro + mv dbgate-pro/* ../dbgate-pro/ + cd .. + mkdir dbgate-merged + cd dbgate-pro + cd sync + yarn + node sync.js --nowatch + cd .. + + - name: Configure NPM token + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + cd .. + cd dbgate-merged + npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" + + - name: yarn install + run: | + cd .. + cd dbgate-merged + yarn install + + - name: setCurrentVersion + run: | + cd .. + cd dbgate-merged + yarn setCurrentVersion + + - name: printSecrets + run: | + cd .. + cd dbgate-merged + yarn printSecrets + env: + GIST_UPLOAD_SECRET : ${{secrets.GIST_UPLOAD_SECRET}} + + - name: Publish api + working-directory: packages/api + run: | + npm publish + + - name: Publish datalib + working-directory: packages/datalib + run: | + npm publish + + - name: Publish filterparser + working-directory: packages/filterparser + run: | + npm publish + + - name: Publish web + working-directory: packages/web + run: | + npm publish + + - name: Publish dbgate (obsolete) + working-directory: packages/dbgate + run: | + npm publish + + - name: Publish dbgate-serve + working-directory: packages/serve + run: | + npm publish + + - name: Publish dbmodel + working-directory: packages/dbmodel + run: | + npm publish + + - name: Publish dbgate-plugin-csv + working-directory: plugins/dbgate-plugin-csv + run: | + npm publish + + - name: Publish dbgate-plugin-xml + working-directory: plugins/dbgate-plugin-xml + run: | + npm publish + + - name: Publish dbgate-plugin-excel + working-directory: plugins/dbgate-plugin-excel + run: | + npm publish + + - name: Publish dbgate-plugin-mssql + working-directory: plugins/dbgate-plugin-mssql + run: | + npm publish + + - name: Publish dbgate-plugin-mysql + working-directory: plugins/dbgate-plugin-mysql + run: | + npm publish + + - name: Publish dbgate-plugin-mongo + working-directory: plugins/dbgate-plugin-mongo + run: | + npm publish + + - name: Publish dbgate-plugin-postgres + working-directory: plugins/dbgate-plugin-postgres + run: | + npm publish + + - name: Publish dbgate-plugin-sqlite + working-directory: plugins/dbgate-plugin-sqlite + run: | + npm publish + + - name: Publish dbgate-plugin-redis + working-directory: plugins/dbgate-plugin-redis + run: | + npm publish + + - name: Publish dbgate-plugin-oracle + working-directory: plugins/dbgate-plugin-oracle + run: | + npm publish + + - name: Publish dbgate-plugin-clickhouse + working-directory: plugins/dbgate-plugin-clickhouse + run: | + npm publish diff --git a/packages/web/README.md b/packages/web/README.md index 7b1ba8363..41f1d6bbe 100644 --- a/packages/web/README.md +++ b/packages/web/README.md @@ -1,105 +1,3 @@ -*Looking for a shareable component template? Go here --> [sveltejs/component-template](https://github.com/sveltejs/component-template)* +# dbgate-web ---- - -# svelte app - -This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template. - -To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit): - -```bash -npx degit sveltejs/template svelte-app -cd svelte-app -``` - -*Note that you will need to have [Node.js](https://nodejs.org) installed.* - - -## Get started - -Install the dependencies... - -```bash -cd svelte-app -npm install -``` - -...then start [Rollup](https://rollupjs.org): - -```bash -npm run dev -``` - -Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes. - -By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`. - -If you're using [Visual Studio Code](https://code.visualstudio.com/) we recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense. - -## Building and running in production mode - -To create an optimised version of the app: - -```bash -npm run build -``` - -You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com). - - -## Single-page app mode - -By default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere. - -If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for *any* path. You can make it so by editing the `"start"` command in package.json: - -```js -"start": "sirv public --single" -``` - -## Using TypeScript - -This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with: - -```bash -node scripts/setupTypeScript.js -``` - -Or remove the script via: - -```bash -rm scripts/setupTypeScript.js -``` - -## Deploying to the web - -### With [Vercel](https://vercel.com) - -Install `vercel` if you haven't already: - -```bash -npm install -g vercel -``` - -Then, from within your project folder: - -```bash -cd public -vercel deploy --name my-project -``` - -### With [surge](https://surge.sh/) - -Install `surge` if you haven't already: - -```bash -npm install -g surge -``` - -Then, from within your project folder: - -```bash -npm run build -surge public my-project.surge.sh -``` +This package is used internally by [DbGate](https://dbgate.org)