@vode-app/example-client (0.1.0-pre.29)

Published 2026-06-10 11:58:18 +02:00 by temir

Installation

@vode-app:registry=
npm install @vode-app/example-client@0.1.0-pre.29
"@vode-app/example-client": "0.1.0-pre.29"

About this package

Introduction

<INTRO TEXT>

Table of Contents

  1. Quick Start
  2. Documentation
  3. DevOps
    1. Change Management
    2. Publish

Quick Start

<QUICK START INSTRUCTIONS>

Documentation

<DOCUMENTATION>

DevOps

npm install
npm update

npm run clean
npm run build
npm run tests

nginx as a Static File Server

Location directives for serving the SPA and static files:

server {
    # ...

    # placeholder:
        # <VODE_APP_PATH: /examples/vode-app/example-client-static
        # <VODE_APP_SPA_PATH: spa
        # <DIST_PATH: /var/www/html/vode-app-example-client-static
    location /examples/vode-app/example-client-static/spa {
        root /var/www/html/vode-app-example-client-static;
        rewrite ^ /index.html break;
        gzip off;
        sub_filter '<base href="" />' '<base href="/examples/vode-app/example-client-static/" />';
        sub_filter_once on;
        add_header Cache-Control "no-store";
    }
    location /examples/vode-app/example-client-static {
        root /var/www/html/vode-app-example-client-static;
        rewrite ^/examples/vode-app/example-client-static/(.*)$ /$1 break;
        try_files $uri =404;
        add_header Cache-Control "no-store";
    }


    # placeholder:
        # <VODE_APP_PATH: /examples/vode-app/dev
        # <VODE_APP_SPA_PATH: spa
        # <DIST_PATH: /var/www/html/vode-app-dev
    location /examples/vode-app/dev/spa {
        root /var/www/html/vode-app-dev;
        rewrite ^ /index.html break;
        gzip off;
        sub_filter '<base href="" />' '<base href="/examples/vode-app/dev/" />';
        sub_filter_once on;
        add_header Cache-Control "no-store";
    }
    location /examples/vode-app/dev {
        root /var/www/html/vode-app-dev;
        rewrite ^/examples/vode-app/dev/(.*)$ /$1 break;
        try_files $uri =404;
        add_header Cache-Control "no-store";
    }

    # ...
}

Copy dist/ to the server:

# placeholder:
    # <DIST_PATH: <DIST_PATH>
    # <STATIC_FILES_SERVER: trs_dockerhost_hostman

ssh trs_dockerhost_hostman "rm -Rf /var/www/html/vode-app-example-client-static/*"
scp -rp dist/* trs_dockerhost_hostman:/var/www/html/vode-app-example-client-static
ssh trs_dockerhost_hostman "find /var/www/html/vode-app-example-client-static -type d -exec chmod 755 {} +"
ssh trs_dockerhost_hostman "find /var/www/html/vode-app-example-client-static -type f -exec chmod 644 {} +"

ssh trs_dockerhost_hostman "rm -Rf /var/www/html/vode-app-dev/*"
scp -rp dist/* trs_dockerhost_hostman:/var/www/html/vode-app-dev
# or
# scp dist/index.bundle.js trs_dockerhost_hostman:/var/www/html/vode-app-dev/index.bundle.js
ssh trs_dockerhost_hostman "find /var/www/html/vode-app-dev -type d -exec chmod 755 {} +"
ssh trs_dockerhost_hostman "find /var/www/html/vode-app-dev -type f -exec chmod 644 {} +"

Change Management

  1. Create a new branch for the change.
  2. Make the changes and commit.
  3. Bump the version in package.json.
  4. Add an entry for the new version in CHANGELOG.md.
  5. Pull-request the branch.
  6. Ensure package artifacts are current.
  7. Publish.

Publish

~/.npmrc or .npmrc:

@vode-app:registry=https://git.chimps.quest/api/packages/vode-app/npm/
//git.chimps.quest/api/packages/vode-app/npm/:_authToken=${VODE_APP_REGISTRY_AUTH_TOKEN}

~/.bunfig.toml or bunfig.toml:

[install.scopes]
"vode-app" = { url = "https://git.chimps.quest/api/packages/vode-app/npm/", token = "$VODE_APP_REGISTRY_AUTH_TOKEN" }
# git.chimps.quest/api/packages/vode-app/npm/
export VODE_APP_REGISTRY_AUTH_TOKEN=<AUTH_TOKEN>
# or
$env:VODE_APP_REGISTRY_AUTH_TOKEN = "<AUTH_TOKEN>"
npm publish

Dependencies

Development dependencies

ID Version
@ryupold/vode latest
@types/node latest
@vode-app/common latest
@vode-app/common-client-side latest
esbuild latest
tsx latest
typescript ^6.0.3

Keywords

typescript spa vode-app example
Details
npm
2026-06-10 11:58:18 +02:00
5
50 KiB
Assets (1)
Versions (10) View all
0.1.0-pre.36 2026-07-05
0.1.0-pre.32 2026-06-23
0.1.0-pre.31 2026-06-19
0.1.0-pre.30 2026-06-19
0.1.0-pre.29 2026-06-10