setup
/setup
Przygotowuje świeży checkout repozytorium clickhouse-js do uruchamiania testów, lintów, sprawdzania typów, budowania i przykładów, wraz z wymaganiami Node.js i instalacją zależności.
- Autor
- clickhouse ↗
- Repozytorium
- clickhouse-js ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Przygotowuje świeży checkout repozytorium clickhouse-js do uruchamiania testów, lintów, sprawdzania typów, budowania i przykładów, wraz z wymaganiami Node.js i instalacją zależności.
Oryginalny opis (EN)
Set up the `clickhouse-js` repository in a fresh checkout so the agent can run tests, lints, type checks, builds, or examples. Use this skill before invoking any `npm run test:*`, `npm run lint`, `npm run typecheck`, `npm run build`, or `npm run run-examples` script — or after pulling changes that touch any `package.json` (root, `examples/node`, or `examples/web`). Covers Node.js version requirements, installing dependencies across the npm workspaces and the two independent example packages, building the workspace packages so inter-package imports resolve, and starting ClickHouse via Docker Co
Jak działa
- Prerequisites
- 1. Install dependencies
- 2. Build the workspace packages
- 3. Start ClickHouse (only for integration tests / examples)
- 4. Verify
Podgląd SKILL.md
---
name: setup
description: >
Set up the `clickhouse-js` repository in a fresh checkout so the agent can run
tests, lints, type checks, builds, or examples. Use this skill before invoking
any `npm run test:*`, `npm run lint`, `npm run typecheck`, `npm run build`, or
`npm run run-examples` script — or after pulling changes that touch any
`package.json` (root, `examples/node`, or `examples/web`). Covers Node.js
version requirements, installing dependencies across the npm workspaces and
the two independent example packages, building the workspace packages so
inter-package imports resolve, and starting ClickHouse via Docker Compose for
integration tests. Do NOT use this skill for downstream user projects that
merely depend on `@clickhouse/client` or `@clickhouse/client-web`; it is
specific to contributing to the `ClickHouse/clickhouse-js` repo itself.
---
# clickhouse-js Repository Setup
Use this skill before running any of the `npm run test:*`, `npm run lint`, `npm run typecheck`, or `npm run build` scripts in a fresh checkout (or after pulling changes that touch `package.json` files).
## Prerequisites
- **Node.js 22 recommended** (matches `.nvmrc`). The root `package.json` declares `"engines": { "node": ">=20.19.0" }`, and CI tests Node 20, 22, 24, and 26.
- **Docker** with the Compose plugin (`docker compose ...`). Required only for integration tests and any example that talks to a real server.
## 1. Install dependencies
This is an npm workspaces repo (`packages/*`), with two additional independent example packages (`examples/node`, `examples/web`) that have their own `package.json` and are **not** part of the workspaces.
Install all three:
```bash
npm install
npm --prefix examples/node install
npm --prefix examples/web install
```
The root `postinstall` script patches `node_modules/parquet-wasm/package.json`; it runs automatically as part of `npm install`.
## 2. Build the workspace packages
The workspace packages (`@clickhouse/client-common`, `@clickhouse/client`, `@clickhouse/client-web`) must be built before some tests, examples, and typechecks can resolve their inter-package imports:
```bash
npm run build
```
This runs `build` in every workspace package.
## 3. Start ClickHouse (only for integration tests / examples)
Unit tests do **not** need a server. Integration tests (`npm run test:*:integration*`) and the example runners do.
From the repo root:
```bash
docker compose up -d
```
This starts both the single-node setup (`clickhouse` on 8123/9000, `clickhouse_tls` on 8443/9440) and the two-node cluster (`clickhouse1`, `clickhouse2`, plus the `nginx` round-robin entrypoint on 8127). All services use non-overlapping ports so a single `up -d` covers every integration test mode.
To override the server version, set `CLICKHOUSE_VERSION` when starting Compose; for example: `CLICKHOUSE_VERSION=head docker compose up -d`, `CLICKHOUSE_VERSION=latest docker compose up -d`, or `CLICKHOUSE_VERSION=24.8 docker compose up -d` to use an explicit version tag.
## 4. Verify
After the steps above you can run, for example:
- `npm run lint` — lint every workspace package
- `npm run typecheck` — typecheck every workspace package
- `npm run test:node:unit` / `npm run test:web:unit` — unit tests, no server required
- `npm run test:node:integration` / `npm run test:web:integration` — integration tests, server required
- From `examples/node` or `examples/web`: `npm run lint`, `npm run typecheck`, `npm run run-examples`
See `npm run` from the repo root for the full list of test scripts.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · clickhouse/clickhouse-js | 100 | Apache-2.0 |
| HwangSlater/harness-fit | 100 | MIT |
| nesquikm/dev-process-toolkit | 100 | MIT |
| userKael/rastro | 100 | MIT |
| als-apg/osprey | 100 | BSD-3-Clause |
| dedujeong/gemba | 100 | Apache-2.0 |
| eigenwise/eigenwise-toolshed | 100 | MIT |
| awrshift/agent-memory-kit | 100 | MIT |
| lifecycle-innovations-limited/claude-ops | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 0881db374840 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100npm
Pomaga zarządzać zależnościami JavaScript i Node.js: package.json, pliki lock, workspaces w monorepo, skrypty, audyty bezpieczeństwa i publikowanie pakietów. - 90building
Instaluje zależności i uruchamia bramkę testów, lintów i sprawdzania typów dla zmiany w sandboxie, z dyscypliną TDD. - 100clickhouse-local-dev-loop
Uruchamia ClickHouse lokalnie w Dockerze i Docker Compose, konfiguruje dane testowe i testy integracyjne, by szybko iterować. - 100typescript-lsp
Używa serwera języka TypeScript do precyzyjnej analizy kodu w repozytorium clickhouse-js: definicje, referencje, hover z typami i JSDoc, wyszukiwanie symboli, uzupełnianie i diagnostyka typów. - 90npm-workspaces # prettier-ignore
Pomaga zarządzać monorepo npm workspaces: zależności pakietów, kolejność buildów, rozwój między pakietami i publikacja. - 87release
Prowadzi wydanie pakietu ClickHouse/clickhouse-js od początku do końca: podniesienie wersji, synchronizacja chronionej gałęzi release z main, publikacja w npm po ręcznej akceptacji i GitHub Release z CHANGELOG.