@roomi-fields/grillhouse 0.0.0-stage → 0.23.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 +9 -0
- package/METACADRE.md +41 -0
- package/agents/developpeur.md +10 -0
- package/agents/explorateur.md +9 -0
- package/agents/questionneur.md +11 -0
- package/agents/referent-technique.md +9 -0
- package/agents/regulateur.md +11 -0
- package/agents/relecteur.md +9 -0
- package/agents/testwriter.md +10 -0
- package/bin/grillhouse.mjs +125 -0
- package/cadre/templates/projet/.claude/settings.json +30 -0
- package/cadre/templates/projet/.editorconfig +47 -0
- package/cadre/templates/projet/.env.example +57 -0
- package/cadre/templates/projet/.eslintrc.cjs +56 -0
- package/cadre/templates/projet/.github/workflows/ci.yml +66 -0
- package/cadre/templates/projet/.mcp.json +13 -0
- package/cadre/templates/projet/.prettierrc +11 -0
- package/cadre/templates/projet/CHANGELOG.md +61 -0
- package/cadre/templates/projet/CLAUDE.md +46 -0
- package/cadre/templates/projet/CONTRIBUTING.md +243 -0
- package/cadre/templates/projet/CREDITS.md +41 -0
- package/cadre/templates/projet/README.md +152 -0
- package/cadre/templates/projet/_gitignore +91 -0
- package/cadre/templates/projet/_npmignore +46 -0
- package/cadre/templates/projet/deployment/README.md +98 -0
- package/cadre/templates/projet/deployment/docs/01-INSTALL.md +145 -0
- package/cadre/templates/projet/deployment/docs/02-CONFIGURATION.md +117 -0
- package/cadre/templates/projet/deployment/docs/03-API.md +264 -0
- package/cadre/templates/projet/deployment/docs/04-TROUBLESHOOTING.md +262 -0
- package/cadre/templates/projet/deployment/scripts/install.ps1 +100 -0
- package/cadre/templates/projet/deployment/scripts/start.ps1 +61 -0
- package/cadre/templates/projet/deployment/scripts/stop.ps1 +37 -0
- package/cadre/templates/projet/deployment/scripts/test.ps1 +118 -0
- package/cadre/templates/projet/docs/agents/issue-tracker.md +44 -0
- package/cadre/templates/projet/ecosystem.config.cjs +73 -0
- package/cadre/templates/projet/package.json +90 -0
- package/cadre/templates/projet/pitmaster/SUIVI.md +22 -0
- package/cadre/templates/projet/src/config.ts +68 -0
- package/cadre/templates/projet/src/errors.ts +102 -0
- package/cadre/templates/projet/src/index.ts +46 -0
- package/cadre/templates/projet/src/services/.gitkeep +8 -0
- package/cadre/templates/projet/src/types/index.ts +24 -0
- package/cadre/templates/projet/src/utils/logger.ts +106 -0
- package/cadre/templates/projet/tests/integration/.gitkeep +7 -0
- package/cadre/templates/projet/tests/unit/config.spec.ts +68 -0
- package/cadre/templates/projet/tests/unit/errors.spec.ts +132 -0
- package/cadre/templates/projet/tests/unit/types.spec.ts +73 -0
- package/cadre/templates/projet/tsconfig.eslint.json +9 -0
- package/cadre/templates/projet/tsconfig.json +41 -0
- package/cadre/templates/projet/tsdoc.json +6 -0
- package/cadre/templates/projet/vitest.config.ts +44 -0
- package/cadre/templates/turbo/paquets.json +29 -0
- package/cadre/templates/turbo/sans-paquets.json +28 -0
- package/charte.md +107 -0
- package/docs/ARCHITECTURE.md +90 -0
- package/hooks/crochet.mjs +33 -0
- package/hooks/hooks.json +58 -0
- package/hooks/register.tsx +558 -0
- package/package.json +75 -4
- package/scripts/avancement.mjs +244 -0
- package/scripts/bilan.mjs +523 -0
- package/scripts/branche-de-nuit.mjs +59 -0
- package/scripts/cadre.mjs +109 -0
- package/scripts/circuit.mjs +4375 -0
- package/scripts/code-mort.mjs +371 -0
- package/scripts/composants-affectes.mjs +598 -0
- package/scripts/consommateurs-arbitres.mjs +192 -0
- package/scripts/consommateurs.mjs +310 -0
- package/scripts/crochet.mjs +24 -0
- package/scripts/crochets.mjs +135 -0
- package/scripts/dernier-vert.mjs +208 -0
- package/scripts/dette.mjs +181 -0
- package/scripts/droits.mjs +354 -0
- package/scripts/enveloppe/codes.mjs +17 -0
- package/scripts/enveloppe/composant.mjs +11 -0
- package/scripts/enveloppe/enveloppe.mjs +628 -0
- package/scripts/enveloppe/lancer.sh +311 -0
- package/scripts/etapes.mjs +323 -0
- package/scripts/etat-du-circuit.mjs +104 -0
- package/scripts/frontieres.mjs +456 -0
- package/scripts/gardes-du-cadre.mjs +72 -0
- package/scripts/greffons.mjs +338 -0
- package/scripts/grillhouse-maj.mjs +514 -0
- package/scripts/index-interfaces.mjs +293 -0
- package/scripts/init.mjs +117 -0
- package/scripts/integration/file-attente.mjs +61 -0
- package/scripts/integration/file.mjs +494 -0
- package/scripts/integration/integrer.mjs +381 -0
- package/scripts/integration/rejeu.mjs +139 -0
- package/scripts/integration/verdict.mjs +13 -0
- package/scripts/interfaces-contre-code.mjs +547 -0
- package/scripts/ligne-etat/defaut.sh +110 -0
- package/scripts/ligne-etat/ligne-etat.mjs +93 -0
- package/scripts/migrations/0.23.0-charte-importee.mjs +47 -0
- package/scripts/migrations/0.23.0-config-vitest.mjs +105 -0
- package/scripts/migrations/0.23.0-crochets-de-seance.mjs +55 -0
- package/scripts/migrations/0.23.0-marche-du-projet.mjs +82 -0
- package/scripts/migrations.mjs +43 -0
- package/scripts/nuit.sh +269 -0
- package/scripts/paquets.mjs +79 -0
- package/scripts/poussee-cles.mjs +46 -0
- package/scripts/preparation.mjs +84 -0
- package/scripts/references-par-les-types.mjs +420 -0
- package/scripts/registre.mjs +336 -0
- package/scripts/resultats.mjs +580 -0
- package/scripts/resumes.mjs +57 -0
- package/scripts/retirer-copie.sh +127 -0
- package/scripts/session-start.sh +203 -0
- package/scripts/sortie.mjs +155 -0
- package/scripts/sous-modules.sh +316 -0
- package/scripts/structure-guard.sh +27 -0
- package/scripts/superviseur.mjs +102 -0
- package/scripts/tableau.mjs +1886 -0
- package/scripts/tests.mjs +236 -0
- package/scripts/ticket.sh +23 -0
- package/scripts/turbo-des-paquets.mjs +899 -0
- package/scripts/un-commit-par-ticket.mjs +212 -0
- package/scripts/verifier.mjs +469 -0
- package/scripts/verrou-de-fichier.mjs +130 -0
- package/scripts/verrou-de-machine.mjs +211 -0
- package/scripts/verrous/commande.mjs +180 -0
- package/scripts/verrous/ticket-du-sous-agent.mjs +39 -0
- package/scripts/verrous/verrou.mjs +165 -0
- package/scripts/vitest-config/avancement.mjs +39 -0
- package/scripts/vitest-config/avancement.reporter.mjs +56 -0
- package/scripts/vitest-config/base-de-passe.mjs +128 -0
- package/scripts/vitest-config/base.d.ts +6 -0
- package/scripts/vitest-config/base.mjs +87 -0
- package/scripts/vitest-config/changements.mjs +173 -0
- package/scripts/vitest-config/cibles.mjs +207 -0
- package/scripts/vitest-config/duree.reporter.mjs +98 -0
- package/scripts/vitest-config/machine.setup.mjs +14 -0
- package/scripts/vitest-config/mesure.d.ts +6 -0
- package/scripts/vitest-config/mesure.mjs +13 -0
- package/scripts/vitest-config/mesure.setup.mjs +12 -0
- package/scripts/vitest-config/pression.mjs +90 -0
- package/scripts/vitest-config/resultats.mjs +23 -0
- package/scripts/vitest-config/resultats.setup.mjs +19 -0
- package/scripts/vitest.nuit.config.mjs +26 -0
- package/skills/developpeur/SKILL.md +175 -0
- package/skills/explorateur/SKILL.md +84 -0
- package/skills/grill/SKILL.md +238 -0
- package/skills/grill/references/releve-structurel.md +38 -0
- package/skills/mesure/SKILL.md +168 -0
- package/skills/pitmaster/SKILL.md +382 -0
- package/skills/pitmaster/references/cadre.md +119 -0
- package/skills/pitmaster/references/consigne-agent.md +308 -0
- package/skills/pitmaster/references/erreurs.md +25 -0
- package/skills/pitmaster/references/tour.md +124 -0
- package/skills/questionneur/SKILL.md +64 -0
- package/skills/redacteur/SKILL.md +84 -0
- package/skills/redacteur/references/documents-d-un-composant.md +105 -0
- package/skills/referent-technique/SKILL.md +145 -0
- package/skills/regulateur/SKILL.md +220 -0
- package/skills/release/SKILL.md +134 -0
- package/skills/release/scripts/update-version.cjs +92 -0
- package/skills/relecteur/SKILL.md +152 -0
- package/skills/relecteur/references/LICENSE-MIT +30 -0
- package/skills/relecteur/references/SOURCE.md +8 -0
- package/skills/relecteur/references/claims-check.md +14 -0
- package/skills/relecteur/references/deletion-check.md +14 -0
- package/skills/relecteur/references/edge-case-hunter.md +80 -0
- package/skills/relecteur/references/verification-gap.md +113 -0
- package/skills/testwriter/SKILL.md +187 -0
- package/types/index.d.ts +56 -0
- package/README.md +0 -3
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
# Contributing Guide
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to this project! This guide will help you get started.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Code of Conduct](#code-of-conduct)
|
|
8
|
+
- [Getting Started](#getting-started)
|
|
9
|
+
- [Development Setup](#development-setup)
|
|
10
|
+
- [Making Changes](#making-changes)
|
|
11
|
+
- [Commit Guidelines](#commit-guidelines)
|
|
12
|
+
- [Pull Request Process](#pull-request-process)
|
|
13
|
+
- [Coding Standards](#coding-standards)
|
|
14
|
+
- [Testing](#testing)
|
|
15
|
+
- [Documentation](#documentation)
|
|
16
|
+
|
|
17
|
+
## Code of Conduct
|
|
18
|
+
|
|
19
|
+
Please be respectful and constructive in all interactions. We welcome contributors of all backgrounds and experience levels.
|
|
20
|
+
|
|
21
|
+
## Getting Started
|
|
22
|
+
|
|
23
|
+
1. **Fork the repository** on GitHub
|
|
24
|
+
2. **Clone your fork** locally:
|
|
25
|
+
```bash
|
|
26
|
+
git clone https://github.com/YOUR-USERNAME/project-name.git
|
|
27
|
+
cd project-name
|
|
28
|
+
```
|
|
29
|
+
3. **Add the upstream remote**:
|
|
30
|
+
```bash
|
|
31
|
+
git remote add upstream https://github.com/ORIGINAL-OWNER/project-name.git
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Development Setup
|
|
35
|
+
|
|
36
|
+
### Prerequisites
|
|
37
|
+
|
|
38
|
+
- Node.js >= 18.0.0
|
|
39
|
+
- npm, yarn, or pnpm
|
|
40
|
+
- Git
|
|
41
|
+
|
|
42
|
+
### Installation
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Install dependencies
|
|
46
|
+
npm install
|
|
47
|
+
|
|
48
|
+
# Build the project
|
|
49
|
+
npm run build
|
|
50
|
+
|
|
51
|
+
# Run tests to verify setup
|
|
52
|
+
npm test
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Development Commands
|
|
56
|
+
|
|
57
|
+
| Command | Description |
|
|
58
|
+
|---------|-------------|
|
|
59
|
+
| `npm run dev` | Start development mode with watch |
|
|
60
|
+
| `npm run build` | Build for production |
|
|
61
|
+
| `npm test` | Run test suite |
|
|
62
|
+
| `npm run lint` | Check code style |
|
|
63
|
+
| `npm run lint:fix` | Fix code style issues |
|
|
64
|
+
| `npm run format` | Format code with Prettier |
|
|
65
|
+
|
|
66
|
+
## Making Changes
|
|
67
|
+
|
|
68
|
+
### Create a Branch
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Update main branch
|
|
72
|
+
git checkout main
|
|
73
|
+
git pull upstream main
|
|
74
|
+
|
|
75
|
+
# Create a new branch
|
|
76
|
+
git checkout -b feature/your-feature-name
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Branch Naming Convention
|
|
80
|
+
|
|
81
|
+
- `feature/` - New features
|
|
82
|
+
- `fix/` - Bug fixes
|
|
83
|
+
- `docs/` - Documentation changes
|
|
84
|
+
- `refactor/` - Code refactoring
|
|
85
|
+
- `test/` - Test additions or modifications
|
|
86
|
+
|
|
87
|
+
## Commit Guidelines
|
|
88
|
+
|
|
89
|
+
We follow [Conventional Commits](https://www.conventionalcommits.org/) specification.
|
|
90
|
+
|
|
91
|
+
### Commit Message Format
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
<type>(<scope>): <description>
|
|
95
|
+
|
|
96
|
+
[optional body]
|
|
97
|
+
|
|
98
|
+
[optional footer(s)]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Types
|
|
102
|
+
|
|
103
|
+
| Type | Description |
|
|
104
|
+
|------|-------------|
|
|
105
|
+
| `feat` | New feature |
|
|
106
|
+
| `fix` | Bug fix |
|
|
107
|
+
| `docs` | Documentation |
|
|
108
|
+
| `style` | Code style (formatting, semicolons, etc.) |
|
|
109
|
+
| `refactor` | Code refactoring |
|
|
110
|
+
| `perf` | Performance improvement |
|
|
111
|
+
| `test` | Adding or modifying tests |
|
|
112
|
+
| `chore` | Maintenance tasks |
|
|
113
|
+
|
|
114
|
+
### Examples
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# Feature
|
|
118
|
+
git commit -m "feat(auth): add OAuth2 support"
|
|
119
|
+
|
|
120
|
+
# Bug fix
|
|
121
|
+
git commit -m "fix(api): handle null response correctly"
|
|
122
|
+
|
|
123
|
+
# Documentation
|
|
124
|
+
git commit -m "docs: update installation instructions"
|
|
125
|
+
|
|
126
|
+
# Breaking change
|
|
127
|
+
git commit -m "feat!: change API response format
|
|
128
|
+
|
|
129
|
+
BREAKING CHANGE: response.data is now response.result"
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Pull Request Process
|
|
133
|
+
|
|
134
|
+
1. **Update your branch** with the latest main:
|
|
135
|
+
```bash
|
|
136
|
+
git fetch upstream
|
|
137
|
+
git rebase upstream/main
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
2. **Push your changes**:
|
|
141
|
+
```bash
|
|
142
|
+
git push origin feature/your-feature-name
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
3. **Open a Pull Request** on GitHub
|
|
146
|
+
|
|
147
|
+
4. **Fill out the PR template** with:
|
|
148
|
+
- Summary of changes
|
|
149
|
+
- Related issues
|
|
150
|
+
- Testing performed
|
|
151
|
+
- Screenshots (if applicable)
|
|
152
|
+
|
|
153
|
+
5. **Wait for review** and address any feedback
|
|
154
|
+
|
|
155
|
+
### PR Checklist
|
|
156
|
+
|
|
157
|
+
- [ ] Code follows project style guidelines
|
|
158
|
+
- [ ] Tests pass locally
|
|
159
|
+
- [ ] Documentation updated if needed
|
|
160
|
+
- [ ] Commit messages follow conventions
|
|
161
|
+
- [ ] No unnecessary files included
|
|
162
|
+
|
|
163
|
+
## Coding Standards
|
|
164
|
+
|
|
165
|
+
### TypeScript
|
|
166
|
+
|
|
167
|
+
- Use strict TypeScript settings
|
|
168
|
+
- Prefer `const` over `let`
|
|
169
|
+
- Use explicit return types for public functions
|
|
170
|
+
- Avoid `any` type when possible
|
|
171
|
+
|
|
172
|
+
### Formatting
|
|
173
|
+
|
|
174
|
+
- Use Prettier for code formatting
|
|
175
|
+
- 2 spaces for indentation
|
|
176
|
+
- Single quotes for strings
|
|
177
|
+
- Trailing commas in multi-line structures
|
|
178
|
+
|
|
179
|
+
### Naming Conventions
|
|
180
|
+
|
|
181
|
+
| Type | Convention | Example |
|
|
182
|
+
|------|------------|---------|
|
|
183
|
+
| Files | kebab-case | `user-service.ts` |
|
|
184
|
+
| Classes | PascalCase | `UserService` |
|
|
185
|
+
| Functions | camelCase | `getUserById` |
|
|
186
|
+
| Constants | UPPER_SNAKE | `MAX_RETRIES` |
|
|
187
|
+
| Interfaces | PascalCase | `UserConfig` |
|
|
188
|
+
| Types | PascalCase | `UserId` |
|
|
189
|
+
|
|
190
|
+
## Testing
|
|
191
|
+
|
|
192
|
+
### Running Tests
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
# Run all tests
|
|
196
|
+
npm test
|
|
197
|
+
|
|
198
|
+
# Run with coverage
|
|
199
|
+
npm run test:coverage
|
|
200
|
+
|
|
201
|
+
# Run specific test file
|
|
202
|
+
npm test -- path/to/test.spec.ts
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Writing Tests
|
|
206
|
+
|
|
207
|
+
- Place tests next to source files (`*.spec.ts`) or in `tests/` directory
|
|
208
|
+
- Use descriptive test names
|
|
209
|
+
- Follow Arrange-Act-Assert pattern
|
|
210
|
+
- Mock external dependencies
|
|
211
|
+
|
|
212
|
+
### Test Coverage
|
|
213
|
+
|
|
214
|
+
- Aim for >80% code coverage
|
|
215
|
+
- Focus on testing business logic
|
|
216
|
+
- Don't test framework code
|
|
217
|
+
|
|
218
|
+
## Documentation
|
|
219
|
+
|
|
220
|
+
### Code Comments
|
|
221
|
+
|
|
222
|
+
- Write self-documenting code
|
|
223
|
+
- Add comments for complex logic
|
|
224
|
+
- Use JSDoc for public APIs
|
|
225
|
+
|
|
226
|
+
### README Updates
|
|
227
|
+
|
|
228
|
+
- Update README for new features
|
|
229
|
+
- Include usage examples
|
|
230
|
+
- Document configuration options
|
|
231
|
+
|
|
232
|
+
### Changelog
|
|
233
|
+
|
|
234
|
+
- Document changes in CHANGELOG.md
|
|
235
|
+
- Follow Keep a Changelog format
|
|
236
|
+
- Link to relevant issues/PRs
|
|
237
|
+
|
|
238
|
+
## Questions?
|
|
239
|
+
|
|
240
|
+
- Open an [Issue](https://github.com/OWNER/project-name/issues) for bugs
|
|
241
|
+
- Start a [Discussion](https://github.com/OWNER/project-name/discussions) for questions
|
|
242
|
+
|
|
243
|
+
Thank you for contributing!
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Credits
|
|
2
|
+
|
|
3
|
+
## Author
|
|
4
|
+
|
|
5
|
+
**[Your Name]**
|
|
6
|
+
- GitHub: [@your-username](https://github.com/your-username)
|
|
7
|
+
- Email: your.email@example.com
|
|
8
|
+
|
|
9
|
+
## Contributors
|
|
10
|
+
|
|
11
|
+
Thanks to everyone who has contributed to this project!
|
|
12
|
+
|
|
13
|
+
<!-- Add contributors here -->
|
|
14
|
+
<!-- - [@contributor](https://github.com/contributor) - Description of contribution -->
|
|
15
|
+
|
|
16
|
+
## Acknowledgments
|
|
17
|
+
|
|
18
|
+
This project was inspired by and/or uses code from:
|
|
19
|
+
|
|
20
|
+
- [Project/Library Name](link) - Description of how it helped
|
|
21
|
+
- [Another Project](link) - Description
|
|
22
|
+
|
|
23
|
+
## Third-Party Libraries
|
|
24
|
+
|
|
25
|
+
This project uses the following open-source libraries:
|
|
26
|
+
|
|
27
|
+
| Library | License | Purpose |
|
|
28
|
+
|---------|---------|---------|
|
|
29
|
+
| [TypeScript](https://www.typescriptlang.org/) | Apache-2.0 | Language |
|
|
30
|
+
| [Vitest](https://vitest.dev/) | MIT | Testing |
|
|
31
|
+
| [ESLint](https://eslint.org/) | MIT | Linting |
|
|
32
|
+
| [Prettier](https://prettier.io/) | MIT | Formatting |
|
|
33
|
+
|
|
34
|
+
## Special Thanks
|
|
35
|
+
|
|
36
|
+
- The open-source community for amazing tools and libraries
|
|
37
|
+
- Everyone who has reported bugs, suggested features, or provided feedback
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
Want to be listed here? [Contribute to the project!](CONTRIBUTING.md)
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Project Name
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@your-scope/project-name)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
[](https://nodejs.org)
|
|
6
|
+
[](https://github.com/your-username/project-name/actions/workflows/ci.yml)
|
|
7
|
+
|
|
8
|
+
A brief description of what this project does and who it's for.
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- Feature 1
|
|
13
|
+
- Feature 2
|
|
14
|
+
- Feature 3
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Using npm
|
|
20
|
+
npm install @your-scope/project-name
|
|
21
|
+
|
|
22
|
+
# Using yarn
|
|
23
|
+
yarn add @your-scope/project-name
|
|
24
|
+
|
|
25
|
+
# Using pnpm
|
|
26
|
+
pnpm add @your-scope/project-name
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { something } from '@your-scope/project-name';
|
|
33
|
+
|
|
34
|
+
// Example usage
|
|
35
|
+
const result = something();
|
|
36
|
+
console.log(result);
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
### Basic Usage
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
// Basic example
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Advanced Usage
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
// Advanced example
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Configuration
|
|
54
|
+
|
|
55
|
+
### Environment Variables
|
|
56
|
+
|
|
57
|
+
| Variable | Description | Default |
|
|
58
|
+
| ---------- | ----------- | --------- |
|
|
59
|
+
| `VAR_NAME` | Description | `default` |
|
|
60
|
+
|
|
61
|
+
### Configuration File
|
|
62
|
+
|
|
63
|
+
Create a `.config.json` file in your project root:
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"option1": "value1",
|
|
68
|
+
"option2": "value2"
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## API Reference
|
|
73
|
+
|
|
74
|
+
### `functionName(param)`
|
|
75
|
+
|
|
76
|
+
Description of the function.
|
|
77
|
+
|
|
78
|
+
**Parameters:**
|
|
79
|
+
|
|
80
|
+
- `param` (Type): Description
|
|
81
|
+
|
|
82
|
+
**Returns:**
|
|
83
|
+
|
|
84
|
+
- `ReturnType`: Description
|
|
85
|
+
|
|
86
|
+
**Example:**
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
const result = functionName(param);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Development
|
|
93
|
+
|
|
94
|
+
### Prerequisites
|
|
95
|
+
|
|
96
|
+
- Node.js >= 18.0.0
|
|
97
|
+
- npm, yarn, or pnpm
|
|
98
|
+
|
|
99
|
+
### Setup
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# Clone the repository
|
|
103
|
+
git clone https://github.com/your-username/project-name.git
|
|
104
|
+
cd project-name
|
|
105
|
+
|
|
106
|
+
# Install dependencies
|
|
107
|
+
npm install
|
|
108
|
+
|
|
109
|
+
# Build
|
|
110
|
+
npm run build
|
|
111
|
+
|
|
112
|
+
# Run tests
|
|
113
|
+
npm test
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Available Scripts
|
|
117
|
+
|
|
118
|
+
| Script | Description |
|
|
119
|
+
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
120
|
+
| `npm run build` | Compile TypeScript to JavaScript |
|
|
121
|
+
| `npm run dev` | Run in development mode with watch |
|
|
122
|
+
| `npm test` | Build, then run the tests (Turborepo; an unchanged task is replayed from its cache); `npm test -- <paths>` plays the paths written from the root, each in its package, its tests played again once what they import changes |
|
|
123
|
+
| `npm run test:forcer` | The same, every task run for real; with paths, the tests named run for real, their builds replayed from the cache |
|
|
124
|
+
| `npm run verifier` | Build, then run the frame's guards, the project's own (`gardes`) and the tests beside each other (what the integration and the CI run), measured against the last green: a package played again runs the tests Vitest relates to the files changed since; 0 green, 1 red, 75 « à repasser » (a failure of duration under load, played again at rest) |
|
|
125
|
+
| `npm run verifier -- --tout` | The complete pass: every test run for real, never measured against the last green (what the night runs) |
|
|
126
|
+
| `npm run verifier -- --gardes` | The guards alone (the frame's and the project's), same verdict: what the reviewer runs on the ticket's copy |
|
|
127
|
+
| `npm run lint` | Run ESLint |
|
|
128
|
+
| `npm run format` | Format code with Prettier |
|
|
129
|
+
|
|
130
|
+
## Contributing
|
|
131
|
+
|
|
132
|
+
Contributions are welcome! Please read our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
133
|
+
|
|
134
|
+
1. Fork the repository
|
|
135
|
+
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
|
|
136
|
+
3. Commit your changes (`git commit -m 'feat: add amazing feature'`)
|
|
137
|
+
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
138
|
+
5. Open a Pull Request
|
|
139
|
+
|
|
140
|
+
## License
|
|
141
|
+
|
|
142
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
143
|
+
|
|
144
|
+
## Acknowledgments
|
|
145
|
+
|
|
146
|
+
- [Dependency 1](link) - Description
|
|
147
|
+
- [Dependency 2](link) - Description
|
|
148
|
+
|
|
149
|
+
## Support
|
|
150
|
+
|
|
151
|
+
- Create an [Issue](https://github.com/your-username/project-name/issues) for bug reports
|
|
152
|
+
- Start a [Discussion](https://github.com/your-username/project-name/discussions) for questions
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Dependencies
|
|
2
|
+
node_modules/
|
|
3
|
+
.pnpm-store/
|
|
4
|
+
|
|
5
|
+
# Build output
|
|
6
|
+
dist/
|
|
7
|
+
*.tsbuildinfo
|
|
8
|
+
|
|
9
|
+
# Environment variables
|
|
10
|
+
.env
|
|
11
|
+
.env.local
|
|
12
|
+
.env.*.local
|
|
13
|
+
|
|
14
|
+
# IDE and editors
|
|
15
|
+
.vscode/
|
|
16
|
+
.idea/
|
|
17
|
+
*.swp
|
|
18
|
+
*.swo
|
|
19
|
+
*~
|
|
20
|
+
.project
|
|
21
|
+
.classpath
|
|
22
|
+
.settings/
|
|
23
|
+
|
|
24
|
+
# OS files
|
|
25
|
+
.DS_Store
|
|
26
|
+
Thumbs.db
|
|
27
|
+
Desktop.ini
|
|
28
|
+
|
|
29
|
+
# Logs
|
|
30
|
+
logs/
|
|
31
|
+
*.log
|
|
32
|
+
npm-debug.log*
|
|
33
|
+
yarn-debug.log*
|
|
34
|
+
yarn-error.log*
|
|
35
|
+
pnpm-debug.log*
|
|
36
|
+
|
|
37
|
+
# Test coverage
|
|
38
|
+
coverage/
|
|
39
|
+
.nyc_output/
|
|
40
|
+
|
|
41
|
+
# Cache
|
|
42
|
+
.cache/
|
|
43
|
+
.eslintcache
|
|
44
|
+
.prettiercache
|
|
45
|
+
|
|
46
|
+
# Local data directories
|
|
47
|
+
data/
|
|
48
|
+
Data/
|
|
49
|
+
.local/
|
|
50
|
+
|
|
51
|
+
# Temporary files
|
|
52
|
+
tmp/
|
|
53
|
+
temp/
|
|
54
|
+
*.tmp
|
|
55
|
+
*.temp
|
|
56
|
+
|
|
57
|
+
# Package manager locks (keep one, remove others)
|
|
58
|
+
# package-lock.json # Keep if using npm
|
|
59
|
+
# yarn.lock # Keep if using yarn
|
|
60
|
+
# pnpm-lock.yaml # Keep if using pnpm
|
|
61
|
+
|
|
62
|
+
# Build artifacts
|
|
63
|
+
*.tgz
|
|
64
|
+
*.tar.gz
|
|
65
|
+
|
|
66
|
+
# Local scripts (not for distribution)
|
|
67
|
+
publish/
|
|
68
|
+
scripts/local/
|
|
69
|
+
|
|
70
|
+
# Runtime data
|
|
71
|
+
pids/
|
|
72
|
+
*.pid
|
|
73
|
+
*.seed
|
|
74
|
+
*.pid.lock
|
|
75
|
+
|
|
76
|
+
# Beads / Dolt files (added by bd init)
|
|
77
|
+
.dolt/
|
|
78
|
+
*.db
|
|
79
|
+
.beads-credential-key
|
|
80
|
+
.beads/proxieddb/
|
|
81
|
+
|
|
82
|
+
# Claude Code local settings and caches
|
|
83
|
+
.claude/settings.local.json
|
|
84
|
+
.rtfm/
|
|
85
|
+
.codegraph/
|
|
86
|
+
|
|
87
|
+
# Agent copies (one worktree per ticket) and their session logs
|
|
88
|
+
.claude/worktrees/
|
|
89
|
+
|
|
90
|
+
# Turborepo: its local cache and its runs
|
|
91
|
+
.turbo/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Source files (we publish compiled dist/)
|
|
2
|
+
src/
|
|
3
|
+
|
|
4
|
+
# Tests
|
|
5
|
+
tests/
|
|
6
|
+
**/*.test.ts
|
|
7
|
+
**/*.spec.ts
|
|
8
|
+
coverage/
|
|
9
|
+
.nyc_output/
|
|
10
|
+
|
|
11
|
+
# Development files
|
|
12
|
+
.github/
|
|
13
|
+
.claude/
|
|
14
|
+
.vscode/
|
|
15
|
+
.idea/
|
|
16
|
+
|
|
17
|
+
# Configuration files (dev only)
|
|
18
|
+
tsconfig.json
|
|
19
|
+
.eslintrc*
|
|
20
|
+
.prettierrc*
|
|
21
|
+
vitest.config.*
|
|
22
|
+
ecosystem.config.*
|
|
23
|
+
|
|
24
|
+
# Documentation (except what's in files array)
|
|
25
|
+
deployment/
|
|
26
|
+
docs/internal/
|
|
27
|
+
|
|
28
|
+
# Local scripts
|
|
29
|
+
publish/
|
|
30
|
+
scripts/
|
|
31
|
+
|
|
32
|
+
# Environment and local data
|
|
33
|
+
.env*
|
|
34
|
+
data/
|
|
35
|
+
logs/
|
|
36
|
+
|
|
37
|
+
# Build artifacts
|
|
38
|
+
*.tsbuildinfo
|
|
39
|
+
|
|
40
|
+
# OS files
|
|
41
|
+
.DS_Store
|
|
42
|
+
Thumbs.db
|
|
43
|
+
|
|
44
|
+
# Git
|
|
45
|
+
.git/
|
|
46
|
+
.gitignore
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Deployment Documentation
|
|
2
|
+
|
|
3
|
+
This directory contains deployment guides and scripts for the project.
|
|
4
|
+
|
|
5
|
+
## Structure
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
deployment/
|
|
9
|
+
├── README.md # This file
|
|
10
|
+
├── docs/ # Detailed documentation
|
|
11
|
+
│ ├── 01-INSTALL.md # Installation guide
|
|
12
|
+
│ ├── 02-CONFIGURATION.md # Configuration options
|
|
13
|
+
│ ├── 03-API.md # API reference
|
|
14
|
+
│ └── 04-TROUBLESHOOTING.md # Common issues
|
|
15
|
+
└── scripts/ # Deployment scripts
|
|
16
|
+
├── install.ps1 # Installation script
|
|
17
|
+
├── start.ps1 # Start server
|
|
18
|
+
├── stop.ps1 # Stop server
|
|
19
|
+
└── test.ps1 # Test endpoints
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Quick Start
|
|
23
|
+
|
|
24
|
+
### 1. Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @your-scope/project-name
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or run the installation script:
|
|
31
|
+
|
|
32
|
+
```powershell
|
|
33
|
+
.\deployment\scripts\install.ps1
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 2. Configuration
|
|
37
|
+
|
|
38
|
+
Copy the environment template:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
cp .env.example .env
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Edit `.env` with your settings.
|
|
45
|
+
|
|
46
|
+
### 3. Start the Application
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npm start
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Or use the daemon mode:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npm run daemon:start
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### 4. Verify
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
curl http://localhost:3000/health
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Documentation Index
|
|
65
|
+
|
|
66
|
+
| Document | Description |
|
|
67
|
+
|----------|-------------|
|
|
68
|
+
| [Installation](docs/01-INSTALL.md) | Complete installation guide |
|
|
69
|
+
| [Configuration](docs/02-CONFIGURATION.md) | Configuration options |
|
|
70
|
+
| [API Reference](docs/03-API.md) | API endpoints and usage |
|
|
71
|
+
| [Troubleshooting](docs/04-TROUBLESHOOTING.md) | Common issues and solutions |
|
|
72
|
+
|
|
73
|
+
## Deployment Options
|
|
74
|
+
|
|
75
|
+
### Local Development
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm run dev
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Production (PM2)
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npm run daemon:start
|
|
85
|
+
npm run daemon:status
|
|
86
|
+
npm run daemon:logs
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Docker (if applicable)
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
docker build -t project-name .
|
|
93
|
+
docker run -p 3000:3000 project-name
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Support
|
|
97
|
+
|
|
98
|
+
For issues, check [Troubleshooting](docs/04-TROUBLESHOOTING.md) or open a GitHub issue.
|