@adbayb/stack 3.3.0 → 3.4.0-next.1790578232855.a8161d8

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.3.0";
793
+ var version = "3.4.0-next.1790578232855.a8161d8";
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.3.0",
3
+ "version": "3.4.0-next.1790578232855.a8161d8",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "development",
@@ -0,0 +1,51 @@
1
+ # AGENTS.md
2
+
3
+ This repo is `{{projectName}}` — {{projectDescription}}.
4
+ Scaffolded with `@adbayb/stack`. All workflow scripts delegate to the `stack` binary.
5
+
6
+ > Extend `Structure` and `Conventions` as packages are added and project-specific rules emerge.
7
+
8
+ ## Project
9
+
10
+ - `{{projectName}}` — {{projectDescription}}.
11
+ - Repository: `{{projectUrl}}` (`{{repoId}}`).
12
+ - Public packages live in `libraries/*` (entry `src/index.ts`, built to `dist/**` with `quickbundle`); runnable apps live in `applications/*`.
13
+ - Playground: `examples/*` (private, excluded from `build`/`check` orchestration).
14
+
15
+ ## Bootstrap
16
+
17
+ Follow this order:
18
+
19
+ - Requires Node `{{nodeVersion}}` and pnpm `{{pnpmVersion}}` (`devEngines` in root `package.json`).
20
+ - After `stack create`: `pnpm install --frozen-lockfile`, then `stack install`.
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.
22
+
23
+ ## Commands
24
+
25
+ Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turbo / oxlint / oxfmt / commitlint / changesets / quickbundle. Always use these, not raw tools:
26
+
27
+ - `pnpm build` (`stack build` → `turbo run build`, cached, outputs `dist/**`, builder is `quickbundle build`)
28
+ - `pnpm check` (`stack check`: builds first excluding examples, then dependency + formatting + code + commit checks)
29
+ - `pnpm fix` (`stack fix`: auto-fixable oxlint `--fix-dangerously` + oxfmt `--write`)
30
+ - `pnpm test` (`stack test` → `turbo run test`, `dependsOn: build`, so build runs first)
31
+ - `pnpm clean` (`stack clean`: deletes `git clean -fdXn` output, preserves `node_modules`, plus `node_modules/.cache`)
32
+ - Release via changesets: `pnpm release:changelog` (`--changelog`), `release:version` (`--bump`), `release:snapshot` (`--snapshot`), `release:publish` (`--publish`)
33
+
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`.
35
+
36
+ ## Structure
37
+
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}}/`.
39
+ - `applications/*/`: runnable apps depending on `libraries/*` via `workspace:`.
40
+ - `examples/*/`: private playground apps (excluded from build/check orchestration).
41
+ - `tools/*/`: private local tooling packages.
42
+ - Root configs (`oxlint.config.ts`, `oxfmt.config.ts`, `tsconfig.json`, `turbo.json`) just re-export `@adbayb/stack` shared presets — extend, don't replace.
43
+ - pnpm workspace members: `applications/*`, `libraries/*`, `examples/*`, `tools/*` (`pnpm-workspace.yaml`, `saveExact: true`).
44
+
45
+ ## Conventions / gotchas
46
+
47
+ - No direct `oxlint`/`oxfmt`/`turbo`/`tsc` calls — go through `stack check|fix|test` so shared presets and turbo orchestration apply.
48
+ - Conventional Commits enforced (commitlint + `commit-msg` hook); `stack check` without `--filter commit` also triggers a build.
49
+ - `stack clean` is git-aware: untracked-but-ignored files are removed, `node_modules` is kept. Don't hand-delete `dist/` per package; use it.
50
+ - Cross-package imports only via workspace package names — no relative imports across `applications`/`libraries` boundaries.
51
+ - When adding new code, use the `software-design` agent skill if available; otherwise propose installing it via `npx skills add adbayb/stack --skill software-design -g` and use it.
@@ -0,0 +1,49 @@
1
+ # AGENTS.md
2
+
3
+ This repo is `{{projectName}}` — {{projectDescription}}.
4
+ Scaffolded with `@adbayb/stack`. All workflow scripts delegate to the `stack` binary.
5
+
6
+ > Extend `Structure` and `Conventions` as packages are added and project-specific rules emerge.
7
+
8
+ ## Project
9
+
10
+ - `{{projectName}}` — {{projectDescription}}.
11
+ - Repository: `{{projectUrl}}` (`{{repoId}}`).
12
+ - Public package: `{{projectName}}` (`./{{projectName}}/src/index.ts` is the entry point, built to `dist/**` with `quickbundle`).
13
+ - Playground: `examples/*` (private, excluded from `build`/`check` orchestration).
14
+
15
+ ## Bootstrap
16
+
17
+ Follow this order:
18
+
19
+ - Requires Node `{{nodeVersion}}` and pnpm `{{pnpmVersion}}` (`devEngines` in root `package.json`).
20
+ - After `stack create`: `pnpm install --frozen-lockfile`, then `stack install`.
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.
22
+
23
+ ## Commands
24
+
25
+ Root scripts (`package.json`) are thin wrappers around `stack`, which wraps turbo / oxlint / oxfmt / commitlint / changesets / quickbundle. Always use these, not raw tools:
26
+
27
+ - `pnpm build` (`stack build` → `turbo run build`, cached, outputs `dist/**`, builder is `quickbundle build`)
28
+ - `pnpm check` (`stack check`: builds first excluding examples, then dependency + formatting + code + commit checks)
29
+ - `pnpm fix` (`stack fix`: auto-fixable oxlint `--fix-dangerously` + oxfmt `--write`)
30
+ - `pnpm test` (`stack test` → `turbo run test`, `dependsOn: build`, so build runs first)
31
+ - `pnpm clean` (`stack clean`: deletes `git clean -fdXn` output, preserves `node_modules`, plus `node_modules/.cache`)
32
+ - Release via changesets: `pnpm release:changelog` (`--changelog`), `release:version` (`--bump`), `release:snapshot` (`--snapshot`), `release:publish` (`--publish`)
33
+
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`.
35
+
36
+ ## Structure
37
+
38
+ - `{{projectName}}/`: the publishable package (`src/index.ts` entry, `src/*.test.ts` colocated tests via `vitest`, `package.json` `exports` point to `dist/**`).
39
+ - `examples/*/`: private playground apps consuming `{{projectName}}` via `workspace:` (excluded from build/check orchestration).
40
+ - `tools/*/`: private local tooling packages.
41
+ - Root configs (`oxlint.config.ts`, `oxfmt.config.ts`, `tsconfig.json`, `turbo.json`) just re-export `@adbayb/stack` shared presets — extend, don't replace.
42
+ - pnpm workspace members: `{{projectName}}`, `examples/*`, `tools/*` (`pnpm-workspace.yaml`, `saveExact: true`).
43
+
44
+ ## Conventions / gotchas
45
+
46
+ - No direct `oxlint`/`oxfmt`/`turbo`/`tsc` calls — go through `stack check|fix|test` so shared presets and turbo orchestration apply.
47
+ - Conventional Commits enforced (commitlint + `commit-msg` hook); `stack check` without `--filter commit` also triggers a build.
48
+ - `stack clean` is git-aware: untracked-but-ignored files are removed, `node_modules` is kept. Don't hand-delete `dist/` per package; use it.
49
+ - When adding new code, use the `software-design` agent skill if available; otherwise propose installing it via `npx skills add adbayb/stack --skill software-design -g` and use it.