@itrocks/handbook 0.0.1 → 0.0.2

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/README.md CHANGED
@@ -26,6 +26,9 @@ This package contains documentation only and has no runtime API or build step.
26
26
  Conventions live in this package. Framework usage and reference implementations link to the installed `@itrocks`
27
27
  packages.
28
28
 
29
+ For package setup, builds, dependency checks and releases, use the
30
+ [development tools guide](docs/framework-changes/development-tools.md).
31
+
29
32
  ## Documentation layout
30
33
 
31
34
  ```text
@@ -35,6 +38,7 @@ docs/
35
38
  │ └── coding-conventions.md
36
39
  ├── framework-changes/
37
40
  │ ├── README.md
41
+ │ ├── development-tools.md
38
42
  │ ├── architecture/
39
43
  │ │ ├── README.md
40
44
  │ │ └── topic-specific guides
@@ -14,3 +14,6 @@ For a new package, read [structure and build](architecture/package-structure-and
14
14
  README content and package metadata. Read coding conventions only if adding source.
15
15
 
16
16
  A local implementation change preserving existing contracts does not require architecture reading.
17
+
18
+ For setup, rebuilds, dependency reviews and releases, see [development tools](development-tools.md).
19
+ The full dependency audit is optional: consider it before a major release or run it at the developer's request.
@@ -0,0 +1,44 @@
1
+ # Development tools
2
+
3
+ Use [`@itrocks/dev`](../../../dev/README.md) from the application root to work on the framework packages installed
4
+ under `node_modules/@itrocks/`. Install it with `npm i --save-dev @itrocks/dev`.
5
+ The package owns the commands and operational procedures; this guide explains when to use them.
6
+
7
+ ## Choose an operation
8
+
9
+ - **Start editing framework sources, or refresh local checkouts:** use `npx vcs-modules`. It replaces npm distributions
10
+ with Git checkouts, updates existing repositories, builds packages in dependency order and configures WebStorm.
11
+ It can install dependencies and replace package directories; inspect its output for skipped repositories or builds.
12
+ It skips pulling repositories with pending work. Use it when setting up or refreshing the environment.
13
+ - **Rebuild while editing:** use `npx wsbuild`. Keep it running while changing package TypeScript, styles or assets.
14
+ For a single build, run the affected package's `npm run build`; run its applicable tests separately.
15
+ - **Understand package order, missing installed packages or cycles:** use `npx dependency-levels`. It reads internal
16
+ declarations across all dependency sections and prints levels and blocked packages. This checks the declared graph;
17
+ use the source audit below to check whether declarations match actual use.
18
+ - **Review available dependency upgrades:** use `npx check-majors`. It queries npm and reports major/minor upgrades.
19
+ Use `npx check-majors upgrade` when choosing to update package manifests; this does not install the new dependencies.
20
+ Review the resulting changes, then install, build and test as appropriate for the update.
21
+ - **Review packages ready to publish:** use `npx it-publish --dry`. It compares local and registry versions without
22
+ publishing. After completing the intended builds, tests and version changes, use `npx it-publish` when publication
23
+ is requested. It publishes packages whose local version is ahead; it does not build them or change their manifests.
24
+ - **Review dependency correctness:** ask an agent to run the [dependency audit](../../../dev/docs/dependency-audit.md).
25
+ The procedure uses scripts for inventory and comparisons, then targeted review for ambiguous cases, assets and
26
+ typings. Scripts, temporary configurations and reports belong in `<application-root>/tmp/`.
27
+
28
+ All commands accept `--help`. Check the [command documentation](../../../dev/README.md#commands) for detailed behaviour.
29
+
30
+ ## Before a major release
31
+
32
+ Consider a full dependency audit before a major release, particularly after changes spanning several packages.
33
+ The developer decides when to run it; a full audit is not required for every framework package edit.
34
+ Between releases, it can also help investigate dependency failures or check a deliberate dependency cleanup.
35
+
36
+ Review audit findings, apply the intended corrections, then repeat the relevant comparisons and type checks.
37
+ Build and test the release packages, review `npx it-publish --dry`, and publish when requested.
38
+ Keep dependency upgrades separate when they are not part of the release scope.
39
+
40
+ ## Guidance for agents
41
+
42
+ Select the operation matching the developer's request and existing authorisation. For a routine source change,
43
+ build and test the affected packages; run the full dependency audit when requested or recommend it for a major release.
44
+ Follow the procedure in `@itrocks/dev` rather than maintaining a separate audit implementation in this handbook.
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  "type": "git",
26
26
  "url": "git+https://github.com/itrocks-ts/handbook.git"
27
27
  },
28
- "version": "0.0.1"
28
+ "version": "0.0.2"
29
29
  }