@adbayb/stack 3.4.0-next.1790510648211.1f8a8d0 → 3.4.0-next.1790579434342.e3bb6cb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -790,7 +790,7 @@ const createWatchCommand = (program) => {
790
790
 
791
791
  //#endregion
792
792
  //#region package.json
793
- var version = "3.4.0-next.1790510648211.1f8a8d0";
793
+ var version = "3.4.0-next.1790579434342.e3bb6cb";
794
794
 
795
795
  //#endregion
796
796
  //#region src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adbayb/stack",
3
- "version": "3.4.0-next.1790510648211.1f8a8d0",
3
+ "version": "3.4.0-next.1790579434342.e3bb6cb",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "development",
@@ -3,7 +3,7 @@
3
3
  This repo is `{{projectName}}` — {{projectDescription}}.
4
4
  Scaffolded with `@adbayb/stack`. All workflow scripts delegate to the `stack` binary.
5
5
 
6
- > Extend `Layout` and `Conventions` as packages are added and project-specific rules emerge.
6
+ > Extend `Structure` and `Conventions` as packages are added and project-specific rules emerge.
7
7
 
8
8
  ## Project
9
9
 
@@ -12,15 +12,17 @@ Scaffolded with `@adbayb/stack`. All workflow scripts delegate to the `stack` bi
12
12
  - Public packages live in `libraries/*` (entry `src/index.ts`, built to `dist/**` with `quickbundle`); runnable apps live in `applications/*`.
13
13
  - Playground: `examples/*` (private, excluded from `build`/`check` orchestration).
14
14
 
15
- ## Bootstrap (order matters)
15
+ ## Bootstrap
16
+
17
+ Follow this order:
16
18
 
17
19
  - Requires Node `{{nodeVersion}}` and pnpm `{{pnpmVersion}}` (`devEngines` in root `package.json`).
18
20
  - After `stack create`: `pnpm install --frozen-lockfile`, then `stack install`.
19
21
  - `stack install` writes `.git/hooks/pre-commit` (`stack fix <changed-files> && git add -A`) and `commit-msg` (`stack check --filter commit`). Re-run it if hooks are missing.
20
22
 
21
- ## Commands — always use these, not raw tools
23
+ ## Commands
22
24
 
23
- Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turbo / oxlint / oxfmt / commitlint / changesets / quickbundle:
25
+ Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turbo / oxlint / oxfmt / commitlint / changesets / quickbundle. Always use these, not raw tools:
24
26
 
25
27
  - `pnpm build` (`stack build` → `turbo run build`, cached, outputs `dist/**`, builder is `quickbundle build`)
26
28
  - `pnpm check` (`stack check`: builds first excluding examples, then dependency + formatting + code + commit checks)
@@ -31,7 +33,7 @@ Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turb
31
33
 
32
34
  Focused verification: `stack check --filter <code|formatting|dependency|commit> [files...]` and `stack fix [files...]`. CI order (`.github/workflows/workflow.yml`) is `install --frozen-lockfile` → `build` → `check` → `test`.
33
35
 
34
- ## Layout
36
+ ## Structure
35
37
 
36
38
  - `libraries/*/`: publishable packages (`src/index.ts` entry, `src/*.test.ts` colocated tests via `vitest`, `package.json` `exports` point to `dist/**`). The initial one is `libraries/{{projectName}}/`.
37
39
  - `applications/*/`: runnable apps depending on `libraries/*` via `workspace:`.
@@ -39,11 +41,24 @@ Focused verification: `stack check --filter <code|formatting|dependency|commit>
39
41
  - `tools/*/`: private local tooling packages.
40
42
  - Root configs (`oxlint.config.ts`, `oxfmt.config.ts`, `tsconfig.json`, `turbo.json`) just re-export `@adbayb/stack` shared presets — extend, don't replace.
41
43
  - pnpm workspace members: `applications/*`, `libraries/*`, `examples/*`, `tools/*` (`pnpm-workspace.yaml`, `saveExact: true`).
44
+ - If a package needs tailored guidance, add a nested `AGENTS.md` inside it — agents read the nearest file, so it takes precedence over this root one.
45
+
46
+ ## Code style
47
+
48
+ Formatting is enforced by the shared `@adbayb/stack` presets (re-exported by root `oxlint.config.ts`/`oxfmt.config.ts`) — comply via `stack fix`, never hand-format.
49
+ For new code, use the `software-design` skill when available (install via `npx skills add adbayb/stack --skill software-design -g` if missing); otherwise follow these defaults:
50
+
51
+ - Minimal API surface (YAGNI — You Aren't Gonna Need It): expose only what requirements need now; small explicit functions, narrow interfaces.
52
+ - One purpose per unit (SRP — Single Responsibility Principle); composition over inheritance.
53
+ - KISS (Keep It Simple, Stupid) over cleverness; DRY (Don't Repeat Yourself) at knowledge level (rule of three before abstracting).
54
+ - High cohesion, low coupling: things that change together live together; slices talk through narrow contracts.
55
+ - POLA (Principle of Least Astonishment): names and behavior as expected; fail fast at boundaries, no surprise side effects.
56
+ - Testable: pure domain logic separated from I/O, dependencies injected.
42
57
 
43
58
  ## Conventions / gotchas
44
59
 
45
60
  - No direct `oxlint`/`oxfmt`/`turbo`/`tsc` calls — go through `stack check|fix|test` so shared presets and turbo orchestration apply.
46
61
  - Conventional Commits enforced (commitlint + `commit-msg` hook); `stack check` without `--filter commit` also triggers a build.
47
62
  - `stack clean` is git-aware: untracked-but-ignored files are removed, `node_modules` is kept. Don't hand-delete `dist/` per package; use it.
48
- - `saveExact: true` — pin versions, no `^` in new deps (except `workspace:` ranges).
49
63
  - Cross-package imports only via workspace package names — no relative imports across `applications`/`libraries` boundaries.
64
+ - Never commit secrets (tokens, credentials) — use environment variables and keep `.env*` git-ignored.
@@ -3,7 +3,7 @@
3
3
  This repo is `{{projectName}}` — {{projectDescription}}.
4
4
  Scaffolded with `@adbayb/stack`. All workflow scripts delegate to the `stack` binary.
5
5
 
6
- > Extend `Layout` and `Conventions` as packages are added and project-specific rules emerge.
6
+ > Extend `Structure` and `Conventions` as packages are added and project-specific rules emerge.
7
7
 
8
8
  ## Project
9
9
 
@@ -12,15 +12,17 @@ Scaffolded with `@adbayb/stack`. All workflow scripts delegate to the `stack` bi
12
12
  - Public package: `{{projectName}}` (`./{{projectName}}/src/index.ts` is the entry point, built to `dist/**` with `quickbundle`).
13
13
  - Playground: `examples/*` (private, excluded from `build`/`check` orchestration).
14
14
 
15
- ## Bootstrap (order matters)
15
+ ## Bootstrap
16
+
17
+ Follow this order:
16
18
 
17
19
  - Requires Node `{{nodeVersion}}` and pnpm `{{pnpmVersion}}` (`devEngines` in root `package.json`).
18
20
  - After `stack create`: `pnpm install --frozen-lockfile`, then `stack install`.
19
21
  - `stack install` writes `.git/hooks/pre-commit` (`stack fix <changed-files> && git add -A`) and `commit-msg` (`stack check --filter commit`). Re-run it if hooks are missing.
20
22
 
21
- ## Commands — always use these, not raw tools
23
+ ## Commands
22
24
 
23
- Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turbo / oxlint / oxfmt / commitlint / changesets / quickbundle:
25
+ Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turbo / oxlint / oxfmt / commitlint / changesets / quickbundle. Always use these, not raw tools:
24
26
 
25
27
  - `pnpm build` (`stack build` → `turbo run build`, cached, outputs `dist/**`, builder is `quickbundle build`)
26
28
  - `pnpm check` (`stack check`: builds first excluding examples, then dependency + formatting + code + commit checks)
@@ -31,7 +33,7 @@ Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turb
31
33
 
32
34
  Focused verification: `stack check --filter <code|formatting|dependency|commit> [files...]` and `stack fix [files...]`. CI order (`.github/workflows/workflow.yml`) is `install --frozen-lockfile` → `build` → `check` → `test`.
33
35
 
34
- ## Layout
36
+ ## Structure
35
37
 
36
38
  - `{{projectName}}/`: the publishable package (`src/index.ts` entry, `src/*.test.ts` colocated tests via `vitest`, `package.json` `exports` point to `dist/**`).
37
39
  - `examples/*/`: private playground apps consuming `{{projectName}}` via `workspace:` (excluded from build/check orchestration).
@@ -39,9 +41,22 @@ Focused verification: `stack check --filter <code|formatting|dependency|commit>
39
41
  - Root configs (`oxlint.config.ts`, `oxfmt.config.ts`, `tsconfig.json`, `turbo.json`) just re-export `@adbayb/stack` shared presets — extend, don't replace.
40
42
  - pnpm workspace members: `{{projectName}}`, `examples/*`, `tools/*` (`pnpm-workspace.yaml`, `saveExact: true`).
41
43
 
44
+ ## Code style
45
+
46
+ Formatting is enforced by the shared `@adbayb/stack` presets (re-exported by root `oxlint.config.ts`/`oxfmt.config.ts`) — comply via `stack fix`, never hand-format.
47
+ For new code, use the `software-design` skill when available (install via `npx skills add adbayb/stack --skill software-design -g` if missing); otherwise follow these defaults:
48
+
49
+ - Minimal API surface (YAGNI — You Aren't Gonna Need It): expose only what requirements need now; small explicit functions, narrow interfaces.
50
+ - One purpose per unit (SRP — Single Responsibility Principle); composition over inheritance.
51
+ - KISS (Keep It Simple, Stupid) over cleverness; DRY (Don't Repeat Yourself) at knowledge level (rule of three before abstracting).
52
+ - High cohesion, low coupling: things that change together live together; slices talk through narrow contracts.
53
+ - POLA (Principle of Least Astonishment): names and behavior as expected; fail fast at boundaries, no surprise side effects.
54
+ - Testable: pure domain logic separated from I/O, dependencies injected.
55
+
42
56
  ## Conventions / gotchas
43
57
 
44
58
  - No direct `oxlint`/`oxfmt`/`turbo`/`tsc` calls — go through `stack check|fix|test` so shared presets and turbo orchestration apply.
45
59
  - Conventional Commits enforced (commitlint + `commit-msg` hook); `stack check` without `--filter commit` also triggers a build.
46
60
  - `stack clean` is git-aware: untracked-but-ignored files are removed, `node_modules` is kept. Don't hand-delete `dist/` per package; use it.
47
61
  - `saveExact: true` — pin versions, no `^` in new deps (except `workspace:` ranges).
62
+ - Never commit secrets (tokens, credentials) — use environment variables and keep `.env*` git-ignored.