@itrocks/handbook 0.0.9 → 0.0.11

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.
@@ -17,6 +17,9 @@ Name the facade after the package unless `index.ts` is the intended public entry
17
17
  Use `build.ts` for browser registration and `transformers.ts` for transformer registration.
18
18
  Use separate CJS/ESM builds only when consumers require both; reference `route`.
19
19
 
20
+ When creating a package, check the current project's `.idea/vcs.xml`. If it exists and lists `@itrocks` package
21
+ repositories, add a Git mapping for the new package, following the existing path format and ordering.
22
+
20
23
  ## Compiler and publication
21
24
 
22
25
  Start from the closest reference package and remove unused options.
@@ -27,6 +30,8 @@ Exclude `src/front` from the backend build. Mixed browser builds extend the base
27
30
  Use `@itrocks/prepare-module` where compiled browser subpaths must be copied to the root.
28
31
 
29
32
  Package metadata includes author, description, keywords, homepage, license, scoped name, repository and version.
33
+ For every new `@itrocks/*` package, set the
34
+ [mandatory framework and scope keywords](../documentation/package-metadata.md#keywords) according to its scope.
30
35
  Start an unreleased package at `0.0.1`; follow [package versioning](../README.md#package-versioning) for existing packages.
31
36
  Use `itrocks-ts/<package>` for the repository and keep the license consistent with `LICENSE`.
32
37
 
@@ -6,8 +6,8 @@ Follow [documentation conventions](markdown.md).
6
6
  Cover:
7
7
 
8
8
  - Defaults and behaviour for each dependency.
9
- - Framework-independent configuration showing how a consumer supplies it.
10
9
  - The functions or values supplied by it.rocks, with links to their owning package's documentation headings.
10
+ - Configuration showing how a consumer supplies it outside it.rocks.
11
11
 
12
12
  Use `bind()` in [framework/src/dependencies.ts](../../../../framework/src/dependencies.ts) as the source of truth.
13
13
  `src/framework.ts` calls it but does not define the bindings.
@@ -8,6 +8,17 @@ Write in UK English. These rules apply to all Markdown; content requirements are
8
8
  Document the current state only. When updating or moving documentation, remove obsolete content and redirect stubs;
9
9
  do not retain migration notices, previous behaviour or comparisons with earlier versions.
10
10
 
11
+ Organise package READMEs and supporting documentation in this order, including only applicable sections:
12
+
13
+ 1. Normal usage and capabilities shared by it.rocks and other contexts.
14
+ 2. Configuration, conventions and behaviour specific to integration with the it.rocks framework.
15
+ 3. Usage outside the it.rocks framework: both standalone applications and integration with other frameworks,
16
+ including manual setup and capabilities specific to those contexts.
17
+
18
+ Name context-specific sections explicitly. Keep manual setup and adapter wiring out of shared usage when it.rocks
19
+ already supplies them. Put dependency binding details in [dependency documentation](dependencies.md), linked from
20
+ the relevant context section.
21
+
11
22
  ## Formatting
12
23
 
13
24
  - Limit source lines to 120 columns, including Markdown syntax. Only indivisible content such as URLs may exceed it.
@@ -15,8 +15,15 @@ Avoid the package name, version claims, marketing adjectives and secondary featu
15
15
  ## Keywords
16
16
 
17
17
  Use unique, relevant search terms drawn from the package's capability, operations, platform and technologies.
18
- Include `it.rocks` for framework packages. Prefer 7–15 terms; relevance takes precedence over the count.
18
+ Every `@itrocks/*` package must include `it.rocks` and at least one scope keyword in `package.json.keywords`:
19
+
20
+ - `backend` for backend packages.
21
+ - `front-end` for browser or user interface packages, including CSS-only packages.
22
+ - Both `backend` and `front-end` for packages covering both scopes.
23
+
24
+ Apply this rule systematically when creating a package or updating its scope.
25
+ Prefer 7–15 terms; relevance takes precedence over the count.
19
26
  Use lowercase except established acronyms; sort alphabetically, ignoring case.
20
27
  Do not add vague terms, dependency inventories or spelling variants merely to increase the count.
21
28
 
22
- Parse the JSON and check description agreement, keyword uniqueness and ordering after editing.
29
+ Parse the JSON and check description agreement, mandatory keywords, keyword uniqueness and ordering after editing.
@@ -22,7 +22,8 @@ Use the unscoped package name as the title, followed by the canonical descriptio
22
22
 
23
23
  ## Content selection
24
24
 
25
- Include only useful sections, in usage order:
25
+ Follow the context order in [documentation conventions](markdown.md#content).
26
+ Within each applicable context, include only useful sections, in usage order:
26
27
 
27
28
  - Actual prerequisites and installation: `npm i @itrocks/<package>`; use `--save-dev` for development tools.
28
29
  - Required concepts or initialisation order, then the smallest complete usage example and observable result.
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.9"
28
+ "version": "0.0.11"
29
29
  }