@roomi-fields/grillhouse 0.49.0 → 0.50.0
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +38 -0
- package/bin/grillhouse.mjs +2 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +5 -0
- package/cadre/templates/projet/.github/workflows/nuit.yml +6 -4
- package/cadre/templates/projet/CLAUDE.md +13 -96
- package/cadre/templates/projet/docs/agents/issue-tracker.md +5 -5
- package/charte.md +88 -96
- package/dist/temporal/acte.d.ts +9 -0
- package/dist/temporal/acte.js +45 -21
- package/dist/temporal/acte.js.map +1 -1
- package/dist/temporal/circuit/activites.js +2 -1
- package/dist/temporal/circuit/activites.js.map +1 -1
- package/dist/temporal/circuit/appel.js +2 -2
- package/dist/temporal/circuit/appel.js.map +1 -1
- package/dist/temporal/circuit/client.d.ts +2 -4
- package/dist/temporal/circuit/client.js +5 -8
- package/dist/temporal/circuit/client.js.map +1 -1
- package/dist/temporal/circuit/commande.js +5 -4
- package/dist/temporal/circuit/commande.js.map +1 -1
- package/dist/temporal/circuit/contrat.d.ts +3 -3
- package/dist/temporal/circuit/contrat.js +2 -2
- package/dist/temporal/circuit/contrat.js.map +1 -1
- package/dist/temporal/circuit/deroule.js +4 -4
- package/dist/temporal/circuit/deroule.js.map +1 -1
- package/dist/temporal/commande.js +1 -1
- package/dist/temporal/commande.js.map +1 -1
- package/dist/temporal/deroules.js +3 -4
- package/dist/temporal/deroules.js.map +1 -1
- package/dist/temporal/etat.js +1 -1
- package/dist/temporal/etat.js.map +1 -1
- package/dist/temporal/file/activites.js +2 -1
- package/dist/temporal/file/activites.js.map +1 -1
- package/dist/temporal/file/client.js.map +1 -1
- package/dist/temporal/file/contrat.js +3 -2
- package/dist/temporal/file/contrat.js.map +1 -1
- package/dist/temporal/file/deroule.js +2 -1
- package/dist/temporal/file/deroule.js.map +1 -1
- package/dist/temporal/installation.js +2 -0
- package/dist/temporal/installation.js.map +1 -1
- package/dist/temporal/nuits/activites.js +4 -3
- package/dist/temporal/nuits/activites.js.map +1 -1
- package/dist/temporal/nuits/appel.js +2 -1
- package/dist/temporal/nuits/appel.js.map +1 -1
- package/dist/temporal/nuits/choix.js +2 -1
- package/dist/temporal/nuits/choix.js.map +1 -1
- package/dist/temporal/nuits/client.js +2 -1
- package/dist/temporal/nuits/client.js.map +1 -1
- package/dist/temporal/nuits/commande.js +2 -1
- package/dist/temporal/nuits/commande.js.map +1 -1
- package/dist/temporal/nuits/contrat.js +2 -1
- package/dist/temporal/nuits/contrat.js.map +1 -1
- package/dist/temporal/nuits/deroule.js +2 -1
- package/dist/temporal/nuits/deroule.js.map +1 -1
- package/dist/temporal/places/activites.js +2 -1
- package/dist/temporal/places/activites.js.map +1 -1
- package/dist/temporal/places/client.js +1 -0
- package/dist/temporal/places/client.js.map +1 -1
- package/dist/temporal/places/deroule.js +4 -5
- package/dist/temporal/places/deroule.js.map +1 -1
- package/dist/temporal/tickets/activites.js +1 -1
- package/dist/temporal/tickets/activites.js.map +1 -1
- package/dist/temporal/tickets/deroule.js +4 -4
- package/dist/temporal/tickets/deroule.js.map +1 -1
- package/docs/ARCHITECTURE.md +35 -13
- package/docs/CADRE.md +10 -68
- package/docs/INTERFACE.md +59 -179
- package/docs/architecture/circuit.md +440 -0
- package/docs/architecture/entree.md +281 -0
- package/docs/architecture/greffon.md +284 -0
- package/docs/architecture/installation.md +306 -0
- package/docs/architecture/machine.md +383 -0
- package/docs/architecture/tests.md +337 -0
- package/package.json +1 -1
- package/scripts/abi-des-dependances.mjs +2 -1
- package/scripts/activites.mjs +8 -8
- package/scripts/aiguillage.mjs +4 -4
- package/scripts/arbitrages.mjs +1 -1
- package/scripts/arbres-juges.mjs +2 -1
- package/scripts/attente-de-la-machine.mjs +10 -16
- package/scripts/avancement.mjs +2 -0
- package/scripts/base-des-workflows.mjs +2 -1
- package/scripts/binaires.mjs +2 -1
- package/scripts/branche-de-nuit.mjs +2 -1
- package/scripts/cadre.mjs +12 -3
- package/scripts/ci-de-main.mjs +2 -1
- package/scripts/circuit.mjs +101 -618
- package/scripts/circuits-cles.mjs +4 -6
- package/scripts/circuits-du-serveur.mjs +1 -1
- package/scripts/codes-de-sortie.mjs +1 -1
- package/scripts/coeurs-dedies.mjs +2 -4
- package/scripts/commande-du-langage.mjs +2 -0
- package/scripts/commandes-composees.mjs +3 -3
- package/scripts/commandes-du-path.mjs +1 -1
- package/scripts/composants-affectes.mjs +3 -1
- package/scripts/composition-des-langages.mjs +2 -0
- package/scripts/conformite.d.ts +2 -1
- package/scripts/conformite.mjs +2 -0
- package/scripts/consommation-des-passes.mjs +5 -4
- package/scripts/consommation.mjs +1 -0
- package/scripts/copies-finies.mjs +9 -10
- package/scripts/crochets.mjs +2 -1
- package/scripts/depart-du-ticket.mjs +2 -2
- package/scripts/dependances-internes.mjs +4 -2
- package/scripts/dernier-vert.mjs +3 -3
- package/scripts/dette.d.ts +2 -1
- package/scripts/dette.mjs +2 -0
- package/scripts/direct.mjs +2 -1
- package/scripts/disque-des-copies.mjs +1 -1
- package/scripts/donnees-cles.mjs +2 -0
- package/scripts/droits.mjs +12 -10
- package/scripts/echantillonneur-de-la-passe.mjs +1 -1
- package/scripts/effets.mjs +3 -3
- package/scripts/engendres.mjs +1 -1
- package/scripts/enveloppe/codes.mjs +1 -0
- package/scripts/enveloppe/enveloppe.mjs +113 -89
- package/scripts/enveloppe/lancer.sh +5 -3
- package/scripts/enveloppe/paquets-du-plan.mjs +4 -6
- package/scripts/enveloppe/travail-de-la-copie.mjs +11 -16
- package/scripts/etapes.mjs +10 -9
- package/scripts/etat-du-depot.mjs +2 -1
- package/scripts/faits-du-circuit.mjs +19 -19
- package/scripts/fermeture-de-la-machine.mjs +2 -2
- package/scripts/fichier-du-poste.mjs +3 -4
- package/scripts/fichiers-nommes.mjs +2 -1
- package/scripts/file-des-tickets.mjs +3 -1
- package/scripts/flux-de-la-nuit.mjs +39 -0
- package/scripts/flux-des-paquets.mjs +2 -1
- package/scripts/fusion-du-changelog.mjs +2 -1
- package/scripts/garde-de-la-memoire.mjs +1 -1
- package/scripts/gardes-du-cadre.mjs +2 -0
- package/scripts/greffons.mjs +2 -2
- package/scripts/grillhouse-maj.mjs +55 -150
- package/scripts/groupe-cles.mjs +2 -1
- package/scripts/index-interfaces.mjs +2 -0
- package/scripts/init.mjs +2 -1
- package/scripts/integration/file.mjs +3 -3
- package/scripts/integration/integrer.mjs +5 -6
- package/scripts/integration/rejeu.mjs +4 -2
- package/scripts/integration/verdict.mjs +2 -1
- package/scripts/jointure.d.ts +5 -1
- package/scripts/journal-des-etats.mjs +2 -2
- package/scripts/langages/cargo/binaires.mjs +3 -2
- package/scripts/langages/cargo/clippy.mjs +2 -0
- package/scripts/langages/cargo/commandes.mjs +72 -17
- package/scripts/langages/cargo/composants.mjs +4 -3
- package/scripts/langages/cargo/elements-du-lot.mjs +2 -0
- package/scripts/langages/cargo/etiquettes.mjs +87 -0
- package/scripts/langages/cargo/executables-de-tests.mjs +3 -1
- package/scripts/langages/cargo/exemples.mjs +6 -4
- package/scripts/langages/cargo/frontieres.mjs +2 -0
- package/scripts/langages/cargo/index-interfaces.mjs +2 -0
- package/scripts/langages/cargo/index.mjs +8 -9
- package/scripts/langages/cargo/migrations/0.28.4-tailles-des-tests.mjs +8 -8
- package/scripts/langages/cargo/migrations/0.34.0-executables-de-tests.mjs +7 -8
- package/scripts/langages/cargo/mise-a-jour.mjs +6 -3
- package/scripts/langages/cargo/sccache.mjs +10 -6
- package/scripts/langages/cargo/squelette.mjs +2 -0
- package/scripts/langages/cargo/tailles-des-tests.mjs +2 -0
- package/scripts/langages/cargo/verdict.mjs +8 -6
- package/scripts/langages/typescript/chemins-des-tests.mjs +2 -1
- package/scripts/langages/typescript/code-mort.mjs +2 -1
- package/scripts/langages/typescript/composants.mjs +7 -5
- package/scripts/langages/typescript/consommateurs-arbitres.mjs +17 -4
- package/scripts/langages/typescript/consommateurs.d.ts +2 -1
- package/scripts/langages/typescript/consommateurs.mjs +5 -7
- package/scripts/langages/typescript/construire.mjs +2 -1
- package/scripts/langages/typescript/elements-du-lot.mjs +2 -1
- package/scripts/langages/typescript/exemples.mjs +2 -1
- package/scripts/langages/typescript/frontieres.mjs +3 -2
- package/scripts/langages/typescript/index-interfaces.mjs +3 -2
- package/scripts/langages/typescript/index.mjs +3 -2
- package/scripts/langages/typescript/interfaces-contre-code.mjs +2 -1
- package/scripts/langages/typescript/lecteurs.mjs +2 -1
- package/scripts/langages/typescript/migrations/0.23.0-config-vitest.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.24.4-noms-declares-inutilises.mjs +4 -8
- package/scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs +5 -9
- package/scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs +6 -10
- package/scripts/langages/typescript/migrations/0.25.0-chemins-des-tests.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.25.0-tailles-des-tests.mjs +6 -8
- package/scripts/langages/typescript/migrations/0.30.0-prefixe-des-tickets.mjs +5 -4
- package/scripts/langages/typescript/migrations/0.30.0-tailles-des-outils-lourds.mjs +7 -7
- package/scripts/langages/typescript/migrations/0.30.0-titres-nommant-un-ticket.mjs +5 -6
- package/scripts/langages/typescript/migrations/0.33.0-binaire-de-jour.mjs +6 -6
- package/scripts/langages/typescript/migrations/0.33.0-tests-du-poste.mjs +5 -5
- package/scripts/langages/typescript/migrations/0.34.1-cache-des-outils.mjs +4 -4
- package/scripts/langages/typescript/migrations/0.49.0-tests-equipes.mjs +7 -7
- package/scripts/langages/typescript/mise-a-jour.mjs +5 -5
- package/scripts/langages/typescript/module-absent.mjs +2 -1
- package/scripts/langages/typescript/parcours.mjs +2 -1
- package/scripts/langages/typescript/references-par-les-types.mjs +2 -1
- package/scripts/langages/typescript/regle-des-tests.mjs +2 -1
- package/scripts/langages/typescript/resume-du-lanceur.mjs +1 -1
- package/scripts/langages/typescript/resumes.mjs +2 -1
- package/scripts/langages/typescript/squelette.mjs +2 -1
- package/scripts/langages/typescript/tailles-des-tests.mjs +5 -4
- package/scripts/langages/typescript/tests-de-nuit.mjs +12 -5
- package/scripts/langages/typescript/tests-du-poste.mjs +60 -21
- package/scripts/langages/typescript/tests.mjs +44 -66
- package/scripts/langages/typescript/titres-de-tests.mjs +2 -2
- package/scripts/langages/typescript/tranches.mjs +2 -1
- package/scripts/langages/typescript/turbo-des-paquets.mjs +87 -148
- package/scripts/langages/typescript/verdict.mjs +2 -1
- package/scripts/langages/typescript/verifier.mjs +64 -99
- package/scripts/langages/typescript/verrou-des-dependances.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/avancement.reporter.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/base.mjs +5 -5
- package/scripts/langages/typescript/vitest-config/bornes.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/changements.mjs +6 -10
- package/scripts/langages/typescript/vitest-config/cibles.mjs +3 -3
- package/scripts/langages/typescript/vitest-config/delais.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/delais.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/duree.classement.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/duree.reporter.mjs +4 -3
- package/scripts/langages/typescript/vitest-config/lances.mjs +3 -2
- package/scripts/langages/typescript/vitest-config/machine.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/mesure.mjs +1 -1
- package/scripts/langages/typescript/vitest-config/mesure.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/registre.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest-config/resultats.mjs +2 -1
- package/scripts/langages/typescript/vitest-config/resultats.setup.mjs +1 -0
- package/scripts/langages/typescript/vitest.nuit.config.mjs +3 -2
- package/scripts/langages-des-paquets.mjs +3 -1
- package/scripts/langages.mjs +5 -3
- package/scripts/lecture-unique.mjs +2 -1
- package/scripts/lint-des-scripts.mjs +1 -0
- package/scripts/machine.mjs +4 -4
- package/scripts/matiere-de-test.d.ts +2 -1
- package/scripts/matieres-lues.mjs +2 -0
- package/scripts/mesure/avancement.mjs +1 -1
- package/scripts/mesure/base-de-passe.mjs +10 -13
- package/scripts/mesure/pression.mjs +3 -4
- package/scripts/mesure-de-la-machine.mjs +2 -1
- package/scripts/migrations/0.23.0-charte-importee.mjs +7 -13
- package/scripts/migrations/0.23.0-crochets-de-seance.mjs +6 -8
- package/scripts/migrations/0.23.0-marche-du-projet.mjs +8 -12
- package/scripts/migrations/0.23.2-copies-du-cadre.mjs +9 -32
- package/scripts/migrations/0.24.0-circuit-simplifie.mjs +11 -39
- package/scripts/migrations/0.24.12-tri-des-decouvertes.mjs +6 -9
- package/scripts/migrations/0.24.2-api-extractor-du-paquet.mjs +8 -19
- package/scripts/migrations/0.25.0-script-des-tests.mjs +7 -13
- package/scripts/migrations/0.27.0-langages-dans-l-architecture.mjs +9 -23
- package/scripts/migrations/0.30.0-ci-appelle-la-verification.mjs +7 -9
- package/scripts/migrations/0.31.0-paquets-dans-le-graphe.mjs +7 -18
- package/scripts/migrations/0.33.0-cache-distant.mjs +6 -9
- package/scripts/migrations/0.33.0-ci-du-cadre.mjs +5 -8
- package/scripts/migrations/0.33.0-node-26.mjs +5 -8
- package/scripts/migrations/0.35.0-greffon-mattpocock-retire.mjs +5 -10
- package/scripts/migrations/0.44.0-node-26-seul.mjs +6 -9
- package/scripts/migrations/0.44.0-seuil-des-codes-de-tickets.mjs +6 -7
- package/scripts/migrations/0.47.0-ci-de-main.mjs +6 -7
- package/scripts/migrations/0.48.0-ci-declenchee-par-la-file.mjs +6 -6
- package/scripts/migrations/0.48.0-poussee-retiree.mjs +3 -5
- package/scripts/migrations/0.49.0-reservation-de-trois-coeurs.mjs +3 -4
- package/scripts/migrations/0.50.0-reglages-hors-de-la-charte.mjs +81 -0
- package/scripts/migrations-des-gardes.mjs +2 -0
- package/scripts/migrations.mjs +4 -0
- package/scripts/nuit.sh +48 -15
- package/scripts/outil.mjs +2 -1
- package/scripts/outils-cles.mjs +6 -6
- package/scripts/paquet-npm.mjs +3 -2
- package/scripts/paquet.mjs +3 -4
- package/scripts/paquets.d.ts +1 -1
- package/scripts/paquets.mjs +2 -0
- package/scripts/passe-de-la-machine.mjs +9 -12
- package/scripts/places-de-la-machine.mjs +36 -53
- package/scripts/places-du-serveur.mjs +5 -4
- package/scripts/plafond-de-la-machine.mjs +19 -19
- package/scripts/poussee-retiree.mjs +2 -1
- package/scripts/prefixe-des-tickets.mjs +1 -0
- package/scripts/preparation.mjs +2 -1
- package/scripts/recommencer.mjs +2 -2
- package/scripts/references-changees.mjs +1 -1
- package/scripts/registre-des-resultats.mjs +3 -1
- package/scripts/regles-des-places.mjs +4 -6
- package/scripts/repli-de-la-nuit.mjs +107 -35
- package/scripts/reponses-du-circuit.mjs +4 -3
- package/scripts/reprise.mjs +3 -2
- package/scripts/resultats.mjs +71 -93
- package/scripts/retirer-copie.sh +2 -1
- package/scripts/retirer-les-copies-finies.mjs +2 -1
- package/scripts/seances.mjs +3 -2
- package/scripts/services-du-noyau.mjs +3 -0
- package/scripts/session-start.sh +0 -6
- package/scripts/sortie.mjs +2 -1
- package/scripts/sources.mjs +2 -0
- package/scripts/sous-commandes.mjs +2 -1
- package/scripts/sous-modules.sh +24 -43
- package/scripts/style-a-l-ecriture.mjs +2 -0
- package/scripts/tableau-des-composants.mjs +5 -7
- package/scripts/tableau.mjs +6 -5
- package/scripts/taches-du-graphe.mjs +3 -0
- package/scripts/ticket-du-circuit.mjs +1 -1
- package/scripts/ticket.mjs +3 -0
- package/scripts/transitions.mjs +30 -19
- package/scripts/un-commit-par-ticket.mjs +2 -1
- package/scripts/verdict-de-la-nuit.mjs +2 -1
- package/scripts/verrou-de-fichier.mjs +1 -0
- package/scripts/verrous/commande.mjs +2 -1
- package/scripts/verrous/ecriture-hors-enveloppe.mjs +1 -0
- package/scripts/verrous/ticket-du-sous-agent.mjs +1 -0
- package/scripts/verrous/verrou.mjs +3 -3
- package/scripts/workflows-du-cadre.mjs +2 -1
- package/skills/architecte/SKILL.md +203 -0
- package/skills/architecte/references/exemple-d-architecture.md +159 -0
- package/skills/developpeur/SKILL.md +6 -10
- package/skills/explorateur/SKILL.md +1 -1
- package/skills/grill/SKILL.md +4 -5
- package/skills/grill/references/paquets.md +5 -8
- package/skills/pitmaster/SKILL.md +179 -268
- package/skills/pitmaster/references/cadre.md +7 -6
- package/skills/pitmaster/references/consigne-agent.md +36 -32
- package/skills/pitmaster/references/tour.md +2 -2
- package/skills/redacteur/references/documents-d-un-composant.md +10 -8
- package/skills/testwriter/SKILL.md +8 -11
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The dead-code guard: refuses a file, an export, a type or a dependency that nothing living
|
|
3
|
-
// uses, measured by knip (configured in the project's `knip.json`). Run by `grillhouse:gardes
|
|
3
|
+
// uses, measured by knip (configured in the project's `knip.json`). Run by `grillhouse:gardes`:
|
|
4
|
+
// the guard `code-mort` (packages/grillhouse/docs/architecture/tests.md §3.4).
|
|
4
5
|
//
|
|
5
6
|
// - Each finding is named with its file; exit code 1 when there is one. A finding inscribed in the
|
|
6
7
|
// project's debt (`grillhouse-dette.json`, see `dette.mjs`) passes, keyed by its file and knip's
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// The components of a repository of the module typescript and its packages of the shared test
|
|
2
|
-
// material: one reading, without a line `#!`, that ./consommateurs.mjs (the guard, which the entry
|
|
2
|
+
// material (packages/grillhouse/docs/architecture/tests.md §3.3): one reading, without a line `#!`, that ./consommateurs.mjs (the guard, which the entry
|
|
3
3
|
// `@roomi-fields/grillhouse/consommateurs` publishes) and the Vitest configuration of the frame
|
|
4
4
|
// (./vitest-config/lances.mjs, which Vite bundles and whose parser refuses a `#!` out of the first
|
|
5
5
|
// file) both import.
|
|
@@ -7,19 +7,21 @@ import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
|
7
7
|
import path from 'node:path';
|
|
8
8
|
import { horsCadre, ignoresParGit } from '../../paquets.mjs';
|
|
9
9
|
|
|
10
|
-
// Every directory under `packages/` and `src/` of the repository at <racine
|
|
10
|
+
// Every directory under `packages/` and `src/` of the repository at <racine>, and each one of
|
|
11
|
+
// `mods/` that holds a `package.json` (the plugin, named `mods/<dir>`): [{ nom, dir }], a
|
|
11
12
|
// directory git ignores (the local clone of another repository) left out: its package.json when
|
|
12
13
|
// it holds one, the directory itself otherwise.
|
|
13
14
|
function tousDossiers(racine) {
|
|
14
15
|
const found = [];
|
|
15
|
-
for (const parent of ['packages', 'src']) {
|
|
16
|
+
for (const parent of ['packages', 'src', 'mods']) {
|
|
16
17
|
const base = path.join(racine, parent);
|
|
17
18
|
if (!existsSync(base)) {
|
|
18
19
|
continue;
|
|
19
20
|
}
|
|
20
21
|
for (const e of readdirSync(base, { withFileTypes: true })) {
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
const dir = path.join(base, e.name);
|
|
23
|
+
if (e.isDirectory() && (parent !== 'mods' || existsSync(path.join(dir, 'package.json')))) {
|
|
24
|
+
found.push({ nom: parent === 'mods' ? `mods/${e.name}` : e.name, dir });
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// The guard `consommateurs-arbitres` (packages/grillhouse/docs/architecture/tests.md §3.4): a line
|
|
3
|
+
// of a `## Consommateurs` section that a lot changes enters with its settled arbitrage at the
|
|
3
4
|
// ticket: each dependency between components is decided before it is written, as a code owner
|
|
4
5
|
// approves a change to the files it owns.
|
|
5
6
|
//
|
|
@@ -28,6 +29,12 @@
|
|
|
28
29
|
// section already gives that consumer were settled before. The plan fixed them before the lot,
|
|
29
30
|
// as a code owner's approval covers what it reviewed. The plan is read only for such a line; one
|
|
30
31
|
// that cannot be read refuses, as the comments do.
|
|
32
|
+
// - An interface of a package of the test material (`matieres` of ./consommateurs.mjs, a package
|
|
33
|
+
// that exports `./test-fixtures`) is not judged: the names
|
|
34
|
+
// the testwriter adds to its Consommateurs lines are born with the tests, so no plan can
|
|
35
|
+
// announce them, as Bazel's `testonly` targets leave the dependency rules of released code. A
|
|
36
|
+
// production code that reads such a package stays refused by the guard of the consumers
|
|
37
|
+
// (./consommateurs.mjs).
|
|
31
38
|
// - A refusal names `<INTERFACE.md> § Consommateurs`, the line and the names the plan misses; a
|
|
32
39
|
// refusal inscribed in the project's debt (`grillhouse-dette.json`, see `dette.mjs`) passes,
|
|
33
40
|
// keyed by the interface and `consommateur-sans-arbitrage`. Comments that cannot be read refuse,
|
|
@@ -38,7 +45,7 @@ import { spawnSync } from 'node:child_process';
|
|
|
38
45
|
import { existsSync, readFileSync } from 'node:fs';
|
|
39
46
|
import path from 'node:path';
|
|
40
47
|
import { pathToFileURL } from 'node:url';
|
|
41
|
-
import { lireLigne } from './consommateurs.mjs';
|
|
48
|
+
import { lireLigne, matieres } from './consommateurs.mjs';
|
|
42
49
|
import { trancher } from '../../dette.mjs';
|
|
43
50
|
import { arbitrageTranche, estArbitrage } from '../../services-du-noyau.mjs';
|
|
44
51
|
import { aVerifier, marques, mesureDe } from './interfaces-contre-code.mjs';
|
|
@@ -131,6 +138,7 @@ export function verifier(racine, env = process.env) {
|
|
|
131
138
|
return [];
|
|
132
139
|
}
|
|
133
140
|
const interfaces = [];
|
|
141
|
+
const dossiersMatiere = new Set(matieres(racine).map(m => path.resolve(m.dir)));
|
|
134
142
|
for (const c of aVerifier(racine, env)) {
|
|
135
143
|
const iface = path.join(c.dir, 'docs', 'INTERFACE.md');
|
|
136
144
|
if (!existsSync(iface)) {
|
|
@@ -142,6 +150,7 @@ export function verifier(racine, env = process.env) {
|
|
|
142
150
|
rel,
|
|
143
151
|
avant: head.status === 0 ? head.stdout : null,
|
|
144
152
|
apres: readFileSync(iface, 'utf8'),
|
|
153
|
+
matiere: dossiersMatiere.has(path.resolve(c.dir)),
|
|
145
154
|
});
|
|
146
155
|
}
|
|
147
156
|
const principal = () =>
|
|
@@ -159,13 +168,17 @@ export function verifier(racine, env = process.env) {
|
|
|
159
168
|
/**
|
|
160
169
|
* The findings on the lot of <ticket>, in the debt's form (`dette.mjs`): <interfaces>
|
|
161
170
|
* `[{ rel, avant, apres }]`, each interface's path from the root, its text at HEAD (null when
|
|
162
|
-
* absent) and in the working tree
|
|
171
|
+
* absent) and in the working tree, `matiere` true for a package of the test material, whose lines are
|
|
172
|
+
* not judged (see the header); `commentaires()` the ticket's comments (`[{ text }]`) and
|
|
163
173
|
* `ticketLu()` the ticket (`{ title, description }`), each read only when a changed line needs it,
|
|
164
174
|
* throwing when it does not read.
|
|
165
175
|
*/
|
|
166
176
|
export function juger(ticket, interfaces, commentaires, ticketLu) {
|
|
167
177
|
const changees = [];
|
|
168
|
-
for (const { rel, avant: texteAvant, apres } of interfaces) {
|
|
178
|
+
for (const { rel, avant: texteAvant, apres, matiere } of interfaces) {
|
|
179
|
+
if (matiere) {
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
169
182
|
const lignesAvant = texteAvant === null ? [] : lignesConsommateurs(texteAvant);
|
|
170
183
|
const avant = new Set(lignesAvant);
|
|
171
184
|
// The names each consumer of HEAD's section reads (`lireLigne` of scripts/langages/typescript/consommateurs.mjs,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The types of ./consommateurs.mjs as the entry `@roomi-fields/grillhouse/consommateurs`
|
|
2
|
-
// publishes it, for a project's guard over the shared test material
|
|
2
|
+
// publishes it, for a project's guard over the shared test material (the guard `consommateurs`:
|
|
3
|
+
// packages/grillhouse/docs/architecture/tests.md §3.4).
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* The components of `racine` whose `package.json` exports `./test-fixtures`, a package out of the
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// The consumers of the interfaces
|
|
2
|
+
// The consumers of the interfaces, the guard `consommateurs`
|
|
3
|
+
// (packages/grillhouse/docs/architecture/tests.md §3.4): each component's `docs/INTERFACE.md` declares, in its
|
|
3
4
|
// `## Consommateurs` section, which components use which of its elements:
|
|
4
5
|
//
|
|
5
6
|
// ## Consommateurs
|
|
@@ -10,8 +11,7 @@
|
|
|
10
11
|
// This check reads what the production code of every component imports from every other, and what
|
|
11
12
|
// its tests import from a package of the shared test material (`matieres`), whose only readers are
|
|
12
13
|
// tests, as knip counts test files as entries out of its `--production` mode; it refuses (exit 1) a use that the provider's interface does not declare, and a declared name that
|
|
13
|
-
// no code of its consumer uses, as ESLint's `no-unused-vars` refuses a name nothing uses
|
|
14
|
-
// 320.3.2.1: « LEVEL_TYPES » declared for 020-loader, only reported, caught by its second review).
|
|
14
|
+
// no code of its consumer uses, as ESLint's `no-unused-vars` refuses a name nothing uses.
|
|
15
15
|
// `*` stands for a namespace, default, re-export-all or side-effect import, and for a dynamic
|
|
16
16
|
// import not destructured; a literal dynamic import destructured gives its names, as knip reads
|
|
17
17
|
// it. A bullet of the section is a list of names, each a JavaScript identifier or `*`: a bullet of
|
|
@@ -19,10 +19,8 @@
|
|
|
19
19
|
// and passes. A refusal inscribed in the project's debt
|
|
20
20
|
// (`grillhouse-dette.json`, see `dette.mjs`) passes, keyed by the provider's interface and
|
|
21
21
|
// `usage-non-declare`, `declare-non-utilise` or `ligne-mal-formee` (`homonyme` for two components
|
|
22
|
-
// of one name, keyed by the first path). The debt of
|
|
23
|
-
// updates
|
|
24
|
-
// scripts/langages/typescript/migrations/0.24.6-lignes-mal-formees.mjs,
|
|
25
|
-
// scripts/langages/typescript/migrations/0.24.7-matiere-dans-les-tests.mjs); in a ticket, the name leaves its line, and a
|
|
22
|
+
// of one name, keyed by the first path). The debt of each refusal is inscribed once, when a project
|
|
23
|
+
// updates (scripts/langages/typescript/migrations/); in a lot, the name leaves its line, and a
|
|
26
24
|
// line of prose is written as a list of names.
|
|
27
25
|
//
|
|
28
26
|
// npx grillhouse consommateurs run from the repository root
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The build of an agent's copy before its session, the command `construire` of the module
|
|
3
3
|
// typescript (scripts/jointure.d.ts), which the launcher (scripts/enveloppe/lancer.sh) runs in the
|
|
4
|
-
// prepared copy, through its mounts: the session finds built what it reads out of its plan
|
|
4
|
+
// prepared copy, through its mounts: the session finds built what it reads out of its plan
|
|
5
|
+
// (packages/grillhouse/docs/architecture/tests.md §3.3).
|
|
5
6
|
//
|
|
6
7
|
// node construire.mjs --echec <fichier> <plan> from the root of the copy
|
|
7
8
|
// node construire.mjs --gardes what the guard tasks wait for, before the
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
// whether its package's entry exports it. As API Extractor's report and its diff, read line by
|
|
4
4
|
// line, and a review that asks a word on every changed file, the circuit gives this list to the
|
|
5
5
|
// reviewer (`relire` of scripts/circuit.mjs), whose sheet holds one line of conformity per element
|
|
6
|
-
// (scripts/resultats.mjs, `conformiteDuLot`).
|
|
6
|
+
// (scripts/resultats.mjs, `conformiteDuLot`). The element of a lot is the module's answer to the
|
|
7
|
+
// join (packages/grillhouse/docs/architecture/tests.md §3.3).
|
|
7
8
|
//
|
|
8
9
|
// - The lot is the difference between two commits of the copy (<avant>, its HEAD, and <apres>,
|
|
9
10
|
// the lot the circuit keeps): its changed files by `git diff --name-status -z`, the text of a
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The entries of the suite of conformity (scripts/conformite.mjs) for the module typescript, as
|
|
2
2
|
// the valid and invalid cases a rule of ESLint gives its RuleTester: each a trial, built under the
|
|
3
|
-
// directory the suite gives, with what a sound module answers on it
|
|
3
|
+
// directory the suite gives, with what a sound module answers on it (the modules of language:
|
|
4
|
+
// packages/grillhouse/docs/architecture/tests.md §3.3).
|
|
4
5
|
//
|
|
5
6
|
// - A repository of four packages: `@e/a`; `@e/b`, which depends on `@e/a`; `@e/c`, which depends
|
|
6
7
|
// on `@e/b`; `@e/m`, the shared test material (it exports `./test-fixtures`). Each has its
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// The boundaries of the code,
|
|
2
|
+
// The boundaries of the code, the guard `frontieres` (packages/grillhouse/docs/architecture/tests.md
|
|
3
|
+
// §3.4), checked by dependency-cruiser. Its configuration
|
|
3
4
|
// (`.dependency-cruiser.cjs`) is generated from the components of the repository, like the index
|
|
4
5
|
// of the interfaces; a project adds its own rules and options in `.dependency-cruiser.projet.cjs`
|
|
5
6
|
// (`module.exports = { forbidden: [...], options: {...} }`), which the generated file reads when
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
// npx grillhouse frontieres refuses a stale configuration, then runs dependency-cruiser
|
|
12
13
|
// npx grillhouse frontieres --ecrire writes the configuration, and `.dependency-cruiser.projet.cjs`
|
|
13
14
|
// empty when the project has none, so that knip resolves
|
|
14
|
-
// the require of the configuration
|
|
15
|
+
// the require of the configuration
|
|
15
16
|
//
|
|
16
17
|
// The rules: no cycle; a package reaches another by its name, never by a path into its tree; a
|
|
17
18
|
// module of `src/` reaches another by its entry (`index`); the code of `src/` imports no test; the
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// The index of the interfaces: one line per component, then one line per element it provides,
|
|
3
3
|
// generated from the components' `docs/INTERFACE.md`. An agent loads it at start and opens an
|
|
4
|
-
// interface, then one of its sections, only when the index names it.
|
|
4
|
+
// interface, then one of its sections, only when the index names it. The guard `index-interfaces`
|
|
5
|
+
// (packages/grillhouse/docs/architecture/tests.md §3.4).
|
|
5
6
|
//
|
|
6
7
|
// npx grillhouse index-interfaces writes docs/agents/index-des-interfaces.md
|
|
7
8
|
// npx grillhouse index-interfaces --verifier refuses (exit 1) when that file is out of date,
|
|
@@ -200,7 +201,7 @@ function rend(racine, rel) {
|
|
|
200
201
|
// repository, which the section points to the index of the interfaces; or the plan of a session,
|
|
201
202
|
// several paths in the form of the envelope's list (`packages/a:packages/b`, `lireLaListe`), one
|
|
202
203
|
// part of the section per package of the plan, its providers under it, as one session works the
|
|
203
|
-
// whole plan of a ticket
|
|
204
|
+
// whole plan of a ticket. Its providers are the
|
|
204
205
|
// components whose `## Consommateurs` section names it; for each, its line in the index of the
|
|
205
206
|
// interfaces (its heading, its first sentence, its interface), the names of the elements its
|
|
206
207
|
// `## Consommateurs` line declares for the component, never their sentence, which the index of the
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The module of language typescript: what the core asks of a language (scripts/jointure.d.ts,
|
|
2
|
-
// docs/INTERFACE.md
|
|
2
|
+
// docs/INTERFACE.md; the modules of language: packages/grillhouse/docs/architecture/tests.md §3.3),
|
|
3
|
+
// answered by the scripts of this directory — the components of the frame
|
|
3
4
|
// (./consommateurs.mjs), the tests by Turborepo and Vitest (./tests.mjs, ./verifier.mjs), the
|
|
4
5
|
// guards of structure and their generators. The core loads it by scripts/langages.mjs, and this
|
|
5
6
|
// module imports of the core its published entries alone.
|
|
@@ -161,7 +162,7 @@ const joueDesTests = (_racine, composant) =>
|
|
|
161
162
|
|
|
162
163
|
export default {
|
|
163
164
|
nom: 'typescript',
|
|
164
|
-
// The expected size of a copy before any is measured: its node_modules, about 0.5 to 1 GB
|
|
165
|
+
// The expected size of a copy before any is measured: its node_modules, about 0.5 to 1 GB.
|
|
165
166
|
tailleDUneCopie: 1024 ** 3,
|
|
166
167
|
manifeste: 'package.json',
|
|
167
168
|
// The name a package.json gives its package; its internal dependencies are the package.json's
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// The written interface of each component against its code
|
|
2
|
+
// The written interface of each component against its code: the guard `interfaces-contre-code`
|
|
3
|
+
// (packages/grillhouse/docs/architecture/tests.md §3.4).
|
|
3
4
|
//
|
|
4
5
|
// - The public API of a component is reported by API Extractor from its built declarations:
|
|
5
6
|
// `docs/INTERFACE.api.md`, kept in the repository. The check refuses an API that changed
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// The readers of the elements a ticket names, by the code of the module typescript: the part of
|
|
2
2
|
// the survey of composants-affectes (scripts/composants-affectes.mjs) that reads the sources, the
|
|
3
3
|
// first demand of the join (scripts/jointure.d.ts, `lecteurs`), as « find all references » of a
|
|
4
|
-
// language service starts from a published symbol.
|
|
4
|
+
// language service starts from a published symbol (packages/grillhouse/docs/architecture/tests.md
|
|
5
|
+
// §3.3).
|
|
5
6
|
//
|
|
6
7
|
// - The provider of an element is the component whose interface (`docs/INTERFACE.md`) publishes
|
|
7
8
|
// it: a heading of its generated part (`lire` of scripts/langages/typescript/index-interfaces.mjs). A name no
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
// The
|
|
2
|
-
// (and `/mesure`), in place of the workspace package
|
|
3
|
-
//
|
|
1
|
+
// The migration that brings a project's Vitest configuration to the package's base configuration:
|
|
2
|
+
// `@roomi-fields/grillhouse/vitest-config` (and `/mesure`), in place of the workspace package
|
|
3
|
+
// `@grillhouse/vitest-config`. A migration of the module typescript (../index.mjs), which a
|
|
4
|
+
// project of TypeScript plays; the migrations: packages/grillhouse/docs/architecture/installation.md §5.4.
|
|
4
5
|
//
|
|
5
|
-
// - A migration of the module typescript (../index.mjs), which a project of TypeScript plays.
|
|
6
6
|
// - Each source file of the project (`sources` of the core) that names
|
|
7
7
|
// `@grillhouse/vitest-config` or `@grillhouse/vitest-config/mesure` in quotes names the package's
|
|
8
8
|
// instead; a root configuration that imports the base by its former path
|
|
9
9
|
// (`./scripts/vitest-config/base.mjs`, `./packages/grillhouse/scripts/vitest-config/base.mjs`)
|
|
10
|
-
// imports it by its name.
|
|
11
|
-
// still knows a former copy of the frame so rewritten by its fingerprint.
|
|
10
|
+
// imports it by its name.
|
|
12
11
|
// - Each package.json of the project (the root's and each workspace's) that declares
|
|
13
12
|
// `@grillhouse/vitest-config` declares `@roomi-fields/grillhouse` in the same field in its place,
|
|
14
13
|
// at the range the root declares (else `^<version>` of the package), unless it already declares
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
//
|
|
2
|
-
// (`declare-non-utilise
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// without a word. As a codemod reports what it leaves, the update names them, and the command that
|
|
6
|
-
// inscribes them as the project's known debt, once, at the passage of the rule (dette.mjs, as
|
|
7
|
-
// ESLint's `--suppress-all`); in a ticket afterwards, the guard says to take the name out of its
|
|
8
|
-
// line.
|
|
1
|
+
// The migration of the guard of the consumers (scripts/langages/typescript/consommateurs.mjs) for
|
|
2
|
+
// the declared names that no code of their consumer uses (`declare-non-utilise`): it names them,
|
|
3
|
+
// and the command that inscribes them as the project's known debt (dette.mjs). Migrations:
|
|
4
|
+
// packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
|
|
9
5
|
//
|
|
10
6
|
// - The migration changes no file (`migrer` returns no line): the project decides between the
|
|
11
7
|
// debt and the edit of its interfaces.
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
// no list of names (`ligne-mal-formee
|
|
3
|
-
// ``- `consommateur` : nom, nom``, each name a JavaScript identifier or `*`.
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// main would turn red at its next pass without a word. As the update of 0.24.4 names its unused
|
|
7
|
-
// names, the update names these lines, and the command that inscribes them as the project's known
|
|
8
|
-
// debt, once, at the passage of the rule (dette.mjs, as ESLint's `--suppress-all`); in a ticket
|
|
9
|
-
// afterwards, the guard says to write the line as a list of names.
|
|
1
|
+
// The migration of the guard of the consumers (scripts/langages/typescript/consommateurs.mjs) for
|
|
2
|
+
// the bullets of a `## Consommateurs` section that are no list of names (`ligne-mal-formee`): one
|
|
3
|
+
// form only, ``- `consommateur` : nom, nom``, each name a JavaScript identifier or `*`. It names
|
|
4
|
+
// the lines, and the command that inscribes them as the project's known debt (dette.mjs).
|
|
5
|
+
// Migrations: packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
|
|
10
6
|
//
|
|
11
7
|
// - The migration changes no file (`migrer` returns no line): the project decides between the
|
|
12
8
|
// debt and the edit of its interfaces.
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
//
|
|
2
|
-
// the
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// imports, and its main would turn red at its next pass without a word. As the updates of 0.24.4
|
|
8
|
-
// and 0.24.6 name their findings, the update names these uses, and the command that inscribes them
|
|
9
|
-
// as the project's known debt, once, at the passage of the rule (dette.mjs, as ESLint's
|
|
10
|
-
// `--suppress-all`).
|
|
1
|
+
// The migration of the guard of the consumers (scripts/langages/typescript/consommateurs.mjs) for
|
|
2
|
+
// the uses of a package of the shared test material in the tests of its consumers: a test that
|
|
3
|
+
// imports a name of the material its interface does not declare is refused (`usage-non-declare`),
|
|
4
|
+
// as production code is. It names these uses, and the command that inscribes them as the
|
|
5
|
+
// project's known debt (dette.mjs). Migrations: packages/grillhouse/docs/architecture/installation.md
|
|
6
|
+
// §5.4; the guard: tests.md §3.4.
|
|
11
7
|
//
|
|
12
8
|
// - The migration changes no file (`migrer` returns no line): the project decides between the
|
|
13
9
|
// debt and the edit of its interfaces.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// is refused, and its verification does not change that day.
|
|
1
|
+
// The migration of the guard of the paths of the tests
|
|
2
|
+
// (scripts/langages/typescript/chemins-des-tests.mjs): it inscribes the tests that name a module of
|
|
3
|
+
// their package by a path the frame cannot read as the project's known debt (scripts/dette.mjs),
|
|
4
|
+
// frozen: the count never rises and a new one is refused. Migrations:
|
|
5
|
+
// packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
|
|
7
6
|
//
|
|
8
7
|
// - The migration writes the section of the guard in `grillhouse-dette.json` when the guard finds
|
|
9
8
|
// one and the file holds no section of it yet; the rest of the debt stays.
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
//
|
|
2
|
-
// test of the day, one that
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
// inscribes them as the project's known debt (scripts/dette.mjs), frozen: the count never rises,
|
|
8
|
-
// a new large test of the day is refused, and its verification does not change that day.
|
|
1
|
+
// The migration of the guard of the sizes of the tests
|
|
2
|
+
// (scripts/langages/typescript/tailles-des-tests.mjs) for the large test of the day, one that
|
|
3
|
+
// mounts a trial repository and starts the product or the frame there: it inscribes the existing
|
|
4
|
+
// ones as the project's known debt (scripts/dette.mjs), frozen: the count never rises and a new
|
|
5
|
+
// large test of the day is refused. Migrations: packages/grillhouse/docs/architecture/installation.md
|
|
6
|
+
// §5.4; the guard: tests.md §3.4.
|
|
9
7
|
//
|
|
10
8
|
// - The migration writes the section of the guard in `grillhouse-dette.json` when the guard finds a
|
|
11
9
|
// large test of the day and the file holds no section of it yet; the rest of the debt stays.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
// reads
|
|
3
|
-
// never from `bd`, which a CI does not have; a project without the
|
|
4
|
-
// `bd init` writes that key commented out, and Beads keeps the prefix
|
|
1
|
+
// The migration of the prefix of the tickets: the guard of the titles of the tests
|
|
2
|
+
// (scripts/langages/typescript/titres-de-tests.mjs) reads it from the key `issue-prefix` of
|
|
3
|
+
// `.beads/config.yaml`, committed, never from `bd`, which a CI does not have; a project without the
|
|
4
|
+
// key is refused by the guard. `bd init` writes that key commented out, and Beads keeps the prefix
|
|
5
|
+
// in its database. Migrations: packages/grillhouse/docs/architecture/installation.md §5.4.
|
|
5
6
|
//
|
|
6
7
|
// - The migration writes the key `issue-prefix: "<prefix>"` in `.beads/config.yaml` by the one
|
|
7
8
|
// writer of the key (`ecrireLePrefixe` of scripts/prefixe-des-tickets.mjs, which the preparation
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// there (turbo, vitest, knip, depcruise,
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
1
|
+
// The migration of the guard of the sizes of the tests
|
|
2
|
+
// (scripts/langages/typescript/tailles-des-tests.mjs) for the test that mounts a temporary
|
|
3
|
+
// directory and starts a heavy tool of the product there (turbo, vitest, knip, depcruise,
|
|
4
|
+
// api-extractor), with a `cwd:`, large like the other: it inscribes them as the project's known
|
|
5
|
+
// debt (scripts/dette.mjs), frozen: the count never rises and a new large test of the day is
|
|
6
|
+
// refused. Migrations: packages/grillhouse/docs/architecture/installation.md §5.4; the guard:
|
|
7
|
+
// tests.md §3.4.
|
|
8
8
|
//
|
|
9
9
|
// - The migration inscribes the large tests of the day the guard finds that the debt does not hold
|
|
10
10
|
// yet; the debt already inscribed (the guard's, the other guards') stays.
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
// by its behaviour lowers it.
|
|
1
|
+
// The migration of the guard of the titles of the tests
|
|
2
|
+
// (scripts/langages/typescript/titres-de-tests.mjs) for the test files whose titles name a ticket
|
|
3
|
+
// or a « critère N »: it inscribes them as the project's known debt (scripts/dette.mjs), frozen:
|
|
4
|
+
// the count never rises, and each title renamed by its behaviour lowers it. Migrations:
|
|
5
|
+
// packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
|
|
7
6
|
//
|
|
8
7
|
// - It plays after the migration of the prefix of the tickets (./0.30.0-prefixe-des-tickets.mjs),
|
|
9
8
|
// whose key it reads; without the key it inscribes nothing, and the guard names the key.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// `bin/` or `scripts/`) out of the zone of the
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
1
|
+
// The migration of the guard of the sizes of the tests
|
|
2
|
+
// (scripts/langages/typescript/tailles-des-tests.mjs) for the test of the day that starts the
|
|
3
|
+
// frame's command (its binary, or a script of its `bin/` or `scripts/`) out of the zone of the
|
|
4
|
+
// end-to-end tests (a directory `e2e/`): it inscribes them as the project's known debt
|
|
5
|
+
// (scripts/dette.mjs), frozen: the count never rises and a new one is refused. Migrations:
|
|
6
|
+
// packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
|
|
7
7
|
//
|
|
8
8
|
// - The migration inscribes the findings of the guard that the debt does not hold yet; the debt
|
|
9
9
|
// already inscribed (the guard's, the other guards') stays.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
// migration of the tests that start the frame's command does, the update inscribes them as the
|
|
1
|
+
// The migration of the guard of the night tests of the poste
|
|
2
|
+
// (scripts/langages/typescript/tests-du-poste.mjs) for the night test that depends on the poste
|
|
3
|
+
// (the envelope, the real bd, a Temporal server, sccache, systemd, the keyring, the user's
|
|
4
|
+
// session, a session of claude) without the tag `@poste` at its head: it inscribes them as the
|
|
6
5
|
// project's known debt (scripts/dette.mjs), frozen: the count never rises and a new one is refused.
|
|
6
|
+
// Migrations: packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
|
|
7
7
|
//
|
|
8
8
|
// - The migration inscribes the findings of the guard that the debt does not hold yet; the debt
|
|
9
9
|
// already inscribed (the guard's, the other guards') stays.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//
|
|
2
|
-
// output of the module typescript
|
|
3
|
-
//
|
|
4
|
-
//
|
|
1
|
+
// The migration that moves the cache of the lint and of the format check to `.cache-outils/`, a
|
|
2
|
+
// clean output of the module typescript: a session's envelope mounts `/` read-only and the
|
|
3
|
+
// `node_modules` of a copy is a link out of it, where ESLint and Prettier cannot write.
|
|
4
|
+
// Migrations: packages/grillhouse/docs/architecture/installation.md §5.4.
|
|
5
5
|
//
|
|
6
6
|
// - In the `lint` and `format:check` scripts of `package.json`, the former path
|
|
7
7
|
// (`node_modules/.cache/`) is replaced by the new one (`.cache-outils/`), wherever it falls;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
// Temporal server, sccache, the binaries of the module cargo)
|
|
4
|
-
// poste has (the real bd, systemd, the keyring,
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
1
|
+
// The migration of the guard of the night tests of the poste
|
|
2
|
+
// (scripts/langages/typescript/tests-du-poste.mjs) for the night test that needs the equipment of a
|
|
3
|
+
// machine (the envelope, a Temporal server, sccache, the binaries of the module cargo) without the
|
|
4
|
+
// tag `@equipee`; `@poste` stays for what only the poste has (the real bd, systemd, the keyring,
|
|
5
|
+
// the user's session, a session of claude). It inscribes them as the project's known debt
|
|
6
|
+
// (scripts/dette.mjs), frozen: the count never rises and a new one is refused. Migrations:
|
|
7
|
+
// packages/grillhouse/docs/architecture/installation.md §5.4; the guard: tests.md §3.4.
|
|
8
8
|
//
|
|
9
9
|
// - The migration inscribes the findings of the guard that the debt does not hold yet; the debt
|
|
10
10
|
// already inscribed (the guard's, the other guards') stays.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// What the module typescript brings to the update of a project (`grillhouse maj
|
|
1
|
+
// What the module typescript brings to the update of a project (`grillhouse maj`; the update:
|
|
2
|
+
// packages/grillhouse/docs/architecture/installation.md §5.2;
|
|
2
3
|
// scripts/grillhouse-maj.mjs), the demand `miseAJour` of the join (scripts/jointure.d.ts), as the
|
|
3
4
|
// `init` generator of a plugin of Nx brings its tool to a workspace. The core writes the root
|
|
4
5
|
// package.json after, and reports the lines.
|
|
@@ -23,9 +24,8 @@
|
|
|
23
24
|
// it) passes to `^<version>`, as `npm install <pkg>@<version> --workspaces`, Renovate and syncpack
|
|
24
25
|
// align every declaration of a dependency of the workspace; a range that covers the version, one
|
|
25
26
|
// above it, or one that is no range of versions (`file:`, `workspace:`) stays. The report names
|
|
26
|
-
// each manifest brought up
|
|
27
|
-
//
|
|
28
|
-
// `./vitest-config/duree` does not resolve.
|
|
27
|
+
// each manifest brought up; a stale range leaves npm a copy of an older frame under the
|
|
28
|
+
// package's `node_modules`, where the entries of the current one do not resolve.
|
|
29
29
|
// - A package of the frame whose code imports the frame's package (a file of its `src/` out of the
|
|
30
30
|
// tests, its imports read by TypeScript's `preProcessFile`) declares it in its `dependencies`, as
|
|
31
31
|
// npm puts there what the published code imports: a declaration in its `devDependencies` moves
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
// - The typing: each package of TypeScript (a `tsconfig.json`) that has no `typecheck` script
|
|
39
39
|
// receives the template's, `tsc -p tsconfig.json --noEmit`: each package of the frame in a
|
|
40
40
|
// project with `workspaces` (the root's `typecheck` stays the project's), the root in a project
|
|
41
|
-
// without.
|
|
41
|
+
// without.
|
|
42
42
|
// - `turbo.json` is the project's own file. A project with no `turbo.json` receives the frame's
|
|
43
43
|
// template of its form: `templates/turbo/paquets.json` when its package.json declares
|
|
44
44
|
// `workspaces`, else `templates/turbo/sans-paquets.json`. A `turbo.json` present is never written
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// The module a test file imports that Vitest did not find, read from the message of its load
|
|
2
|
-
// failure: the path the import names, resolved from the test file.
|
|
2
|
+
// failure: the path the import names, resolved from the test file (packages/grillhouse/docs/architecture/tests.md
|
|
3
|
+
// §3.3). A test written before its code
|
|
3
4
|
// imports the module the ticket creates; that load failure is its red, as a test target that does
|
|
4
5
|
// not compile is in a compiled language (`echecDeCompilation` of cargo and c). An import of a
|
|
5
6
|
// package (a bare name) is no module of the project: null.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
// The walk of the repository every guard of the module typescript makes
|
|
1
|
+
// The walk of the repository every guard of the module typescript makes (packages/grillhouse/docs/architecture/tests.md
|
|
2
|
+
// §3.4): the files under a path,
|
|
2
3
|
// Vite's temporary files never listed, a file or a directory gone before the walk reaches it
|
|
3
4
|
// passed over. The guards walk the repository while other processes write in it (`npm run
|
|
4
5
|
// verifier` plays them beside the tests). Node alone (./vitest-config/lances.mjs, which the
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The references of a ticket's elements found through the types, as « find all references » of
|
|
2
2
|
// rust-analyzer and of TypeScript's language service: an element is resolved as a symbol of the
|
|
3
|
-
// repository's code (
|
|
3
|
+
// repository's code (the survey of the readers: packages/grillhouse/docs/architecture/tests.md §3.3;
|
|
4
|
+
// a declaration of a package, a member of a type, a function internal to a
|
|
4
5
|
// package), and its references are those the language service resolves to that symbol, never a
|
|
5
6
|
// text that happens to bear its name. scripts/composants-affectes.mjs runs it beside its survey
|
|
6
7
|
// by the names; scripts/langages/typescript/elements-du-lot.mjs reads the declarations and the exports of a lot
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The rule of a test file of the module typescript, the fourth demand of the join
|
|
2
2
|
// (scripts/jointure.d.ts, `estUnTest`): what the testwriter writes, as Pants tells `python_tests`
|
|
3
|
-
// from `python_test_utils
|
|
3
|
+
// from `python_test_utils` (packages/grillhouse/docs/architecture/tests.md §3.3). A file the
|
|
4
|
+
// testwriter writes is, one or several of:
|
|
4
5
|
//
|
|
5
6
|
// - `joue`: a test Vitest plays, its name `*.test.*` or `*.spec.*` of a module (`NOM_DE_TEST` of
|
|
6
7
|
// scripts/langages/typescript/consommateurs.mjs), wherever it lies;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// The summary of a run of Turborepo (`turbo run … --summarize`, `.turbo/runs/<id>.json`), read and
|
|
2
2
|
// kept once, here: the module typescript drives Turborepo, and the join serves these members to the
|
|
3
3
|
// modules cargo and python through the services of the core (`tachesDuVerdict`,
|
|
4
|
-
// scripts/taches-du-graphe.mjs).
|
|
4
|
+
// scripts/taches-du-graphe.mjs; packages/grillhouse/docs/architecture/tests.md §3.3).
|
|
5
5
|
//
|
|
6
6
|
// - `resumesDuLancement` names the summaries present in a project before a run.
|
|
7
7
|
// - `garderLesResumes` moves the summaries a run wrote into `<dossier>/turbo/`, the results
|