@mytechtoday/augment-extensions 2.5.0 → 3.1.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/AGENTS.md +2 -1
- package/README.md +27 -1357
- package/augment-extensions/coding-standards/bash/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/css/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/go/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/html/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/html-css-js/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/js/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/php/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/powershell/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/python/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/react/CHANGELOG.md +50 -50
- package/augment-extensions/coding-standards/typescript/CHANGELOG.md +39 -39
- package/augment-extensions/coding-standards/typescript/VERSION +2 -2
- package/augment-extensions/coding-standards/typescript/examples/biome.json +199 -199
- package/augment-extensions/coding-standards/typescript/examples/eslint-flat-config.js +166 -166
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/README.md +47 -47
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/package.json +37 -37
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/pnpm-workspace.yaml +5 -5
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/tsconfig.base.json +50 -50
- package/augment-extensions/coding-standards/typescript/examples/monorepo-config/turbo.json +47 -47
- package/augment-extensions/coding-standards/typescript/examples/vitest-setup.ts +198 -198
- package/augment-extensions/coding-standards/typescript/metadata.json +46 -46
- package/augment-extensions/coding-standards/typescript/rules/architecture.md +1096 -1096
- package/augment-extensions/coding-standards/typescript/rules/error-handling.md +1174 -1174
- package/augment-extensions/coding-standards/typescript/rules/modern-features.md +625 -625
- package/augment-extensions/coding-standards/typescript/rules/monorepo.md +745 -745
- package/augment-extensions/coding-standards/typescript/rules/security-performance.md +850 -850
- package/augment-extensions/coding-standards/typescript/rules/testing.md +918 -918
- package/augment-extensions/coding-standards/typescript/rules/tooling.md +1071 -1071
- package/augment-extensions/coding-standards/typescript/rules/type-patterns.md +750 -750
- package/augment-extensions/domain-rules/api-design/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/database/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-latte/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/catppuccin-mocha/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/dracula/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-dark/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/gruvbox-light/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/high-contrast/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/monokai/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/nord/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/one-dark/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/one-light/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/solarized-dark/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/solarized-light/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/design/color/themes/tokyo-night/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/mcp/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/security/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/seo-sales-marketing/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/software-architecture/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/wordpress/CHANGELOG.md +50 -50
- package/augment-extensions/domain-rules/wordpress-plugin/CHANGELOG.md +50 -50
- package/augment-extensions/examples/design-patterns/CHANGELOG.md +50 -50
- package/augment-extensions/examples/gutenberg-block-plugin/CHANGELOG.md +50 -50
- package/augment-extensions/examples/rest-api-plugin/CHANGELOG.md +50 -50
- package/augment-extensions/examples/woocommerce-extension/CHANGELOG.md +50 -50
- package/augment-extensions/workflows/adr-support/CHANGELOG.md +50 -50
- package/augment-extensions/workflows/database/CHANGELOG.md +50 -50
- package/augment-extensions/workflows/wordpress-plugin/CHANGELOG.md +50 -50
- package/cli/AGENTS.md +21 -21
- package/cli/dist/analysis/ast-parser.d.ts +11 -31
- package/cli/dist/analysis/ast-parser.d.ts.map +1 -1
- package/cli/dist/analysis/ast-parser.js +28 -77
- package/cli/dist/analysis/ast-parser.js.map +1 -1
- package/cli/dist/analysis/complexity-analyzer.d.ts +4 -22
- package/cli/dist/analysis/complexity-analyzer.d.ts.map +1 -1
- package/cli/dist/analysis/complexity-analyzer.js +68 -96
- package/cli/dist/analysis/complexity-analyzer.js.map +1 -1
- package/cli/dist/analysis/dependency-analyzer.d.ts +1 -15
- package/cli/dist/analysis/dependency-analyzer.d.ts.map +1 -1
- package/cli/dist/analysis/dependency-analyzer.js +163 -116
- package/cli/dist/analysis/dependency-analyzer.js.map +1 -1
- package/cli/dist/analysis/security-scanner.d.ts +0 -5
- package/cli/dist/analysis/security-scanner.d.ts.map +1 -1
- package/cli/dist/analysis/security-scanner.js +88 -180
- package/cli/dist/analysis/security-scanner.js.map +1 -1
- package/cli/dist/analysis/types.d.ts +1 -40
- package/cli/dist/analysis/types.d.ts.map +1 -1
- package/cli/dist/cli.js +18 -39
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/code-analysis.d.ts +0 -5
- package/cli/dist/commands/code-analysis.d.ts.map +1 -1
- package/cli/dist/commands/code-analysis.js +114 -133
- package/cli/dist/commands/code-analysis.js.map +1 -1
- package/cli/dist/commands/gui.d.ts +4 -0
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +45 -6
- package/cli/dist/commands/gui.js.map +1 -1
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +2 -2
- package/cli/dist/commands/link.js.map +1 -1
- package/cli/dist/commands/search.d.ts.map +1 -1
- package/cli/dist/commands/search.js +20 -79
- package/cli/dist/commands/search.js.map +1 -1
- package/cli/dist/commands/show.js +8 -32
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/unlink.d.ts.map +1 -1
- package/cli/dist/commands/unlink.js +5 -4
- package/cli/dist/commands/unlink.js.map +1 -1
- package/cli/dist/commands/update.d.ts.map +1 -1
- package/cli/dist/commands/update.js +6 -2
- package/cli/dist/commands/update.js.map +1 -1
- package/cli/dist/commands/upgrade.d.ts +0 -8
- package/cli/dist/commands/upgrade.d.ts.map +1 -1
- package/cli/dist/commands/upgrade.js +16 -34
- package/cli/dist/commands/upgrade.js.map +1 -1
- package/cli/dist/commands/use.d.ts +0 -8
- package/cli/dist/commands/use.d.ts.map +1 -1
- package/cli/dist/commands/use.js +22 -46
- package/cli/dist/commands/use.js.map +1 -1
- package/cli/dist/commands/version-info.d.ts +0 -8
- package/cli/dist/commands/version-info.d.ts.map +1 -1
- package/cli/dist/commands/version-info.js +13 -37
- package/cli/dist/commands/version-info.js.map +1 -1
- package/cli/dist/core/module-loader.d.ts +3 -43
- package/cli/dist/core/module-loader.d.ts.map +1 -1
- package/cli/dist/core/module-loader.js +8 -55
- package/cli/dist/core/module-loader.js.map +1 -1
- package/cli/dist/index.d.ts +0 -4
- package/cli/dist/index.d.ts.map +1 -1
- package/cli/dist/index.js +0 -5
- package/cli/dist/index.js.map +1 -1
- package/cli/dist/utils/ai-prompts.js +124 -124
- package/cli/dist/utils/config-loader.d.ts +3 -39
- package/cli/dist/utils/config-loader.d.ts.map +1 -1
- package/cli/dist/utils/config-loader.js +20 -64
- package/cli/dist/utils/config-loader.js.map +1 -1
- package/cli/dist/utils/extractCommandHelp.d.ts +10 -1
- package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
- package/cli/dist/utils/extractCommandHelp.js +83 -15
- package/cli/dist/utils/extractCommandHelp.js.map +1 -1
- package/cli/dist/utils/module-system.d.ts.map +1 -1
- package/cli/dist/utils/module-system.js +10 -4
- package/cli/dist/utils/module-system.js.map +1 -1
- package/package.json +137 -136
- package/augment-extensions/workflows/beads/CHANGELOG.md +0 -51
- package/augment-extensions/workflows/beads/README.md +0 -135
- package/augment-extensions/workflows/beads/examples/complete-workflow-example.md +0 -278
- package/augment-extensions/workflows/beads/metadata.json +0 -23
- package/augment-extensions/workflows/beads/module.json +0 -55
- package/augment-extensions/workflows/beads/rules/best-practices.md +0 -398
- package/augment-extensions/workflows/beads/rules/file-format.md +0 -327
- package/augment-extensions/workflows/beads/rules/manual-setup.md +0 -315
- package/augment-extensions/workflows/beads/rules/workflow.md +0 -326
- package/augment-extensions/workflows/beads-integration/CHANGELOG.md +0 -51
- package/augment-extensions/workflows/beads-integration/IMPLEMENTATION-STATUS.md +0 -145
- package/augment-extensions/workflows/beads-integration/README.md +0 -143
- package/augment-extensions/workflows/beads-integration/config/defaults.json +0 -32
- package/augment-extensions/workflows/beads-integration/config/schema.json +0 -140
- package/augment-extensions/workflows/beads-integration/examples/basic-task-generation.md +0 -293
- package/augment-extensions/workflows/beads-integration/metadata.json +0 -30
- package/augment-extensions/workflows/beads-integration/module.json +0 -75
- package/augment-extensions/workflows/beads-integration/rules/core-rules.md +0 -219
- package/augment-extensions/workflows/beads-integration/rules/effectiveness-standards.md +0 -256
- package/augment-extensions/workflows/beads-integration/rules/task-generation.md +0 -607
- package/augment-extensions/writing-standards/literature/shakespeare/ANNOUNCEMENT.md +0 -176
- package/augment-extensions/writing-standards/literature/shakespeare/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/literature/shakespeare/CHARACTER-THEME-VALIDATION-REPORT.md +0 -465
- package/augment-extensions/writing-standards/literature/shakespeare/DRAMA-VALIDATION-REPORT.md +0 -217
- package/augment-extensions/writing-standards/literature/shakespeare/LANGUAGE-VALIDATION-REPORT.md +0 -195
- package/augment-extensions/writing-standards/literature/shakespeare/PHASE6-VALIDATION-REPORT.md +0 -359
- package/augment-extensions/writing-standards/literature/shakespeare/README.md +0 -126
- package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-130.md +0 -225
- package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-18.md +0 -188
- package/augment-extensions/writing-standards/literature/shakespeare/examples/annotated-sonnets/sonnet-73.md +0 -215
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/character-worksheet.md +0 -407
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/iambic-pentameter-practice.md +0 -470
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/sonnet-writing-exercise.md +0 -360
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/theme-analysis-template.md +0 -527
- package/augment-extensions/writing-standards/literature/shakespeare/examples/exercises/verse-analysis-exercise.md +0 -426
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/hamlet-to-be-or-not-to-be.md +0 -316
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/king-lear-storm-scene.md +0 -576
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/macbeth-tomorrow-and-tomorrow.md +0 -448
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/much-ado-benedick-eavesdropping.md +0 -496
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/romeo-juliet-balcony.md +0 -287
- package/augment-extensions/writing-standards/literature/shakespeare/examples/scene-examples/twelfth-night-malvolio-letter.md +0 -653
- package/augment-extensions/writing-standards/literature/shakespeare/metadata.json +0 -60
- package/augment-extensions/writing-standards/literature/shakespeare/module.json +0 -72
- package/augment-extensions/writing-standards/literature/shakespeare/rules/character-themes/character-development.md +0 -608
- package/augment-extensions/writing-standards/literature/shakespeare/rules/character-themes/thematic-elements.md +0 -471
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/comedy.md +0 -763
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/history-plays.md +0 -507
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/scene-construction.md +0 -870
- package/augment-extensions/writing-standards/literature/shakespeare/rules/drama/tragedy.md +0 -743
- package/augment-extensions/writing-standards/literature/shakespeare/rules/language/elizabethan-english.md +0 -400
- package/augment-extensions/writing-standards/literature/shakespeare/rules/language/rhetoric-wordplay.md +0 -602
- package/augment-extensions/writing-standards/literature/shakespeare/rules/language/vocabulary-guide.md +0 -662
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/iambic-pentameter.md +0 -447
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/narrative-poetry.md +0 -453
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/sonnets.md +0 -435
- package/augment-extensions/writing-standards/literature/shakespeare/rules/poetry/verse-forms.md +0 -565
- package/augment-extensions/writing-standards/screenplay/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/README.md +0 -392
- package/augment-extensions/writing-standards/screenplay/_templates/README.md +0 -121
- package/augment-extensions/writing-standards/screenplay/_templates/genre-template.md +0 -153
- package/augment-extensions/writing-standards/screenplay/_templates/style-template.md +0 -243
- package/augment-extensions/writing-standards/screenplay/_templates/theme-template.md +0 -213
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/MIGRATION.md +0 -213
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/README.md +0 -309
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/REFACTORING-SUMMARY.md +0 -99
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/module.json +0 -33
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/monty-python/rules/monty-python.md +0 -243
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/comedy-formats/saturday-night-live/rules/saturday-night-live.md +0 -153
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/README.md +0 -127
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/alfred-hitchcock/rules/alfred-hitchcock.md +0 -168
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/ari-aster/rules/ari-aster.md +0 -414
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brad-bird/rules/brad-bird.md +0 -362
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/brian-de-palma/rules/brian-de-palma.md +0 -445
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/buster-keaton/rules/buster-keaton.md +0 -508
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/christopher-nolan/rules/christopher-nolan.md +0 -147
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/clint-eastwood/rules/clint-eastwood.md +0 -639
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/coen-brothers/rules/coen-brothers.md +0 -167
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/darren-aronofsky/rules/darren-aronofsky.md +0 -474
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-fincher/rules/david-fincher.md +0 -203
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/david-lynch/rules/david-lynch.md +0 -136
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/denis-villeneuve/rules/denis-villeneuve.md +0 -131
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/francis-ford-coppola/rules/francis-ford-coppola.md +0 -190
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gary-marshall/rules/gary-marshall.md +0 -181
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-a-romero/rules/george-a-romero.md +0 -391
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/george-lucas/rules/george-lucas.md +0 -129
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/guillermo-del-toro/rules/guillermo-del-toro.md +0 -350
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/gus-van-sant/rules/gus-van-sant.md +0 -353
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/james-ivory-ismail-merchant/rules/james-ivory-ismail-merchant.md +0 -164
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jim-jarmusch/rules/jim-jarmusch.md +0 -426
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-carpenter/rules/john-carpenter.md +0 -450
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-ford/rules/john-ford.md +0 -429
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-huston/rules/john-huston.md +0 -357
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/john-landis/rules/john-landis.md +0 -483
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/jonathan-demme/rules/jonathan-demme.md +0 -394
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/joseph-l-mankiewicz/rules/joseph-l-mankiewicz.md +0 -406
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kathryn-bigelow/rules/kathryn-bigelow.md +0 -443
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kelly-reichardt/rules/kelly-reichardt.md +0 -365
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/kevin-smith/rules/kevin-smith.md +0 -546
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/linda-shayne/rules/linda-shayne.md +0 -341
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/martin-scorsese/rules/martin-scorsese.md +0 -188
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mel-brooks/rules/mel-brooks.md +0 -215
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/metadata.json +0 -25
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-curtiz/rules/michael-curtiz.md +0 -429
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/michael-mann/rules/michael-mann.md +0 -416
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/mike-nichols/rules/mike-nichols.md +0 -383
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/module.json +0 -410
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/orson-welles/rules/orson-welles.md +0 -400
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/park-chan-wook/rules/park-chan-wook.md +0 -357
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/paul-thomas-anderson/rules/paul-thomas-anderson.md +0 -143
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/penny-marshall/rules/penny-marshall.md +0 -139
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/peter-bogdanovich/rules/peter-bogdanovich.md +0 -411
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/quentin-tarantino/rules/quentin-tarantino.md +0 -178
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/richard-linklater/rules/richard-linklater.md +0 -463
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/rob-reiner/rules/rob-reiner.md +0 -470
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-altman/rules/robert-altman.md +0 -447
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-eggers/rules/robert-eggers.md +0 -361
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/robert-zemeckis/rules/robert-zemeckis.md +0 -489
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sam-peckinpah/rules/sam-peckinpah.md +0 -475
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sidney-lumet/rules/sidney-lumet.md +0 -387
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/spike-lee/rules/spike-lee.md +0 -500
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-donen-gene-kelly/rules/stanley-donen-gene-kelly.md +0 -406
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/stanley-kubrick/rules/stanley-kubrick.md +0 -183
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steve-martin/rules/steve-martin.md +0 -138
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/steven-spielberg/rules/steven-spielberg.md +0 -179
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/sydney-pollack/rules/sydney-pollack.md +0 -356
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/terry-gilliam/rules/terry-gilliam.md +0 -546
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tim-burton/rules/tim-burton.md +0 -356
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/tobe-hooper/rules/tobe-hooper.md +0 -596
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/wes-anderson/rules/wes-anderson.md +0 -146
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/directors/william-friedkin/rules/william-friedkin.md +0 -378
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/examples/style-applications.md +0 -740
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/blue-ruin/rules/blue-ruin.md +0 -721
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/module.json +0 -27
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/films/rules/blue-ruin.md.bak +0 -667
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/fast-and-furious/rules/the-fast-and-furious-saga.md +0 -427
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/harry-potter/rules/harry-potter.md +0 -170
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/james-bond/rules/james-bond.md +0 -440
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/john-wick/rules/john-wick.md +0 -375
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/lord-of-the-rings/rules/lord-of-the-rings.md +0 -437
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/metadata.json +0 -25
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/module.json +0 -29
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md +0 -985
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/mcu/rules/mcu-avengers.md.bak +0 -933
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/metadata.json +0 -25
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/module.json +0 -93
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/metadata.json +0 -33
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/module.json +0 -46
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-deep-space-nine.md +0 -146
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-enterprise.md +0 -149
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-strange-new-world.md +0 -156
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-the-next-generation.md +0 -163
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-tos.md +0 -148
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek-voyager.md +0 -148
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-trek/rules/star-trek.md +0 -163
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/module.json +0 -17
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/franchises/star-wars/rules/star-wars.md +0 -213
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/metadata.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/module.json +0 -128
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/joseph-campbell/rules/joseph-campbell.md +0 -178
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/narrative-theory/module.json +0 -27
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/metadata.json +0 -24
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/module.json +0 -50
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/bruckheimer-and-simpson/rules/bruckheimer-and-simpson.md +0 -376
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/metadata.json +0 -23
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/producers/module.json +0 -26
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/blue-ruin.md +0 -667
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/christopher-nolan.md +0 -126
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/coen-brothers.md +0 -154
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/david-lynch.md +0 -124
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/denis-villeneuve.md +0 -119
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/francis-ford-coppola.md +0 -176
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/george-lucas.md +0 -116
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/joseph-campbell.md +0 -167
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/martin-scorsese.md +0 -174
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/mcu-avengers.md +0 -933
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/monty-python.md +0 -231
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/quentin-tarantino.md +0 -167
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/saturday-night-live.md +0 -141
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/stanley-kubrick.md +0 -169
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/star-wars.md +0 -200
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/steven-spielberg.md +0 -165
- package/augment-extensions/writing-standards/screenplay/cinematic-styles/rules/wes-anderson.md +0 -134
- package/augment-extensions/writing-standards/screenplay/commercials/CHARACTER-COUNT-TRACKING.md +0 -226
- package/augment-extensions/writing-standards/screenplay/commercials/CONFIGURATION.md +0 -327
- package/augment-extensions/writing-standards/screenplay/commercials/README.md +0 -223
- package/augment-extensions/writing-standards/screenplay/commercials/REFACTORING-SUMMARY.md +0 -193
- package/augment-extensions/writing-standards/screenplay/commercials/REFERENCES.md +0 -157
- package/augment-extensions/writing-standards/screenplay/commercials/VALIDATION-REPORT.md +0 -109
- package/augment-extensions/writing-standards/screenplay/commercials/examples/.gitkeep +0 -0
- package/augment-extensions/writing-standards/screenplay/commercials/module.json +0 -111
- package/augment-extensions/writing-standards/screenplay/commercials/rules/.gitkeep +0 -0
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-audience.md +0 -343
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-formats.md +0 -396
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-persuasion.md +0 -387
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-scripts.md +0 -531
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-techniques.md +0 -912
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercial-types.md +0 -700
- package/augment-extensions/writing-standards/screenplay/commercials/rules/commercials.md +0 -285
- package/augment-extensions/writing-standards/screenplay/commercials/scripts/validate-character-count.ts +0 -284
- package/augment-extensions/writing-standards/screenplay/examples/aaa-hollywood-scene.fountain +0 -164
- package/augment-extensions/writing-standards/screenplay/examples/beat-sheet-example.yaml +0 -95
- package/augment-extensions/writing-standards/screenplay/examples/character-profile-example.yaml +0 -116
- package/augment-extensions/writing-standards/screenplay/examples/commercial-30sec.fountain +0 -151
- package/augment-extensions/writing-standards/screenplay/examples/independent-monologue.fountain +0 -67
- package/augment-extensions/writing-standards/screenplay/examples/news-segment.fountain +0 -142
- package/augment-extensions/writing-standards/screenplay/examples/plot-outline-example.yaml +0 -184
- package/augment-extensions/writing-standards/screenplay/examples/tv-episode-teaser.fountain +0 -204
- package/augment-extensions/writing-standards/screenplay/genres/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/genres/README.md +0 -181
- package/augment-extensions/writing-standards/screenplay/genres/examples/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/genres/metadata.json +0 -43
- package/augment-extensions/writing-standards/screenplay/genres/module.json +0 -70
- package/augment-extensions/writing-standards/screenplay/genres/rules/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/genres/rules/action.md +0 -399
- package/augment-extensions/writing-standards/screenplay/genres/rules/adventure.md +0 -407
- package/augment-extensions/writing-standards/screenplay/genres/rules/animation.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/biographical.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/comedy.md +0 -401
- package/augment-extensions/writing-standards/screenplay/genres/rules/documentary.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/drama.md +0 -409
- package/augment-extensions/writing-standards/screenplay/genres/rules/fantasy.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/historical.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/horror.md +0 -268
- package/augment-extensions/writing-standards/screenplay/genres/rules/musical.md +0 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/mystery.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/noir.md +0 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/romance.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/sci-fi.md +0 -289
- package/augment-extensions/writing-standards/screenplay/genres/rules/superhero.md +0 -293
- package/augment-extensions/writing-standards/screenplay/genres/rules/thriller.md +0 -294
- package/augment-extensions/writing-standards/screenplay/genres/rules/western.md +0 -293
- package/augment-extensions/writing-standards/screenplay/metadata.json +0 -65
- package/augment-extensions/writing-standards/screenplay/module.json +0 -171
- package/augment-extensions/writing-standards/screenplay/rules/aaa-hollywood-films.md +0 -339
- package/augment-extensions/writing-standards/screenplay/rules/ai-integration-testing.md +0 -329
- package/augment-extensions/writing-standards/screenplay/rules/character-development.md +0 -169
- package/augment-extensions/writing-standards/screenplay/rules/commercials.md +0 -437
- package/augment-extensions/writing-standards/screenplay/rules/dialogue-writing.md +0 -263
- package/augment-extensions/writing-standards/screenplay/rules/diversity-inclusion.md +0 -261
- package/augment-extensions/writing-standards/screenplay/rules/examples-guide.md +0 -315
- package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +0 -213
- package/augment-extensions/writing-standards/screenplay/rules/formatting-validation.md +0 -413
- package/augment-extensions/writing-standards/screenplay/rules/fountain-format.md +0 -372
- package/augment-extensions/writing-standards/screenplay/rules/independent-films.md +0 -374
- package/augment-extensions/writing-standards/screenplay/rules/live-tv-productions.md +0 -443
- package/augment-extensions/writing-standards/screenplay/rules/narrative-structures.md +0 -207
- package/augment-extensions/writing-standards/screenplay/rules/news-broadcasts.md +0 -444
- package/augment-extensions/writing-standards/screenplay/rules/pacing-timing.md +0 -331
- package/augment-extensions/writing-standards/screenplay/rules/quality-review-checklist.md +0 -334
- package/augment-extensions/writing-standards/screenplay/rules/quick-reference.md +0 -299
- package/augment-extensions/writing-standards/screenplay/rules/screen-continuity.md +0 -263
- package/augment-extensions/writing-standards/screenplay/rules/streaming-content.md +0 -412
- package/augment-extensions/writing-standards/screenplay/rules/trope-management.md +0 -370
- package/augment-extensions/writing-standards/screenplay/rules/tv-series.md +0 -374
- package/augment-extensions/writing-standards/screenplay/rules/universal-formatting.md +0 -339
- package/augment-extensions/writing-standards/screenplay/rules/vscode-integration.md +0 -277
- package/augment-extensions/writing-standards/screenplay/rules/web-content.md +0 -393
- package/augment-extensions/writing-standards/screenplay/schemas/beat-sheet.json +0 -332
- package/augment-extensions/writing-standards/screenplay/schemas/character-profile.json +0 -247
- package/augment-extensions/writing-standards/screenplay/schemas/feature-selection.json +0 -200
- package/augment-extensions/writing-standards/screenplay/schemas/plot-outline.json +0 -233
- package/augment-extensions/writing-standards/screenplay/schemas/screenplay-config.json +0 -245
- package/augment-extensions/writing-standards/screenplay/schemas/trope-inventory.json +0 -221
- package/augment-extensions/writing-standards/screenplay/styles/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/styles/README.md +0 -159
- package/augment-extensions/writing-standards/screenplay/styles/examples/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/styles/examples/style-applications.md +0 -1449
- package/augment-extensions/writing-standards/screenplay/styles/metadata.json +0 -38
- package/augment-extensions/writing-standards/screenplay/styles/module.json +0 -64
- package/augment-extensions/writing-standards/screenplay/styles/rules/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/styles/rules/dialogue-centric.md +0 -520
- package/augment-extensions/writing-standards/screenplay/styles/rules/ensemble.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/epic.md +0 -497
- package/augment-extensions/writing-standards/screenplay/styles/rules/experimental.md +0 -492
- package/augment-extensions/writing-standards/screenplay/styles/rules/flashback.md +0 -509
- package/augment-extensions/writing-standards/screenplay/styles/rules/linear.md +0 -490
- package/augment-extensions/writing-standards/screenplay/styles/rules/minimalist.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/non-linear.md +0 -501
- package/augment-extensions/writing-standards/screenplay/styles/rules/poetic.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/realistic.md +0 -498
- package/augment-extensions/writing-standards/screenplay/styles/rules/satirical.md +0 -499
- package/augment-extensions/writing-standards/screenplay/styles/rules/surreal.md +0 -508
- package/augment-extensions/writing-standards/screenplay/styles/rules/voice-over.md +0 -500
- package/augment-extensions/writing-standards/screenplay/themes/CHANGELOG.md +0 -51
- package/augment-extensions/writing-standards/screenplay/themes/README.md +0 -158
- package/augment-extensions/writing-standards/screenplay/themes/examples/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/themes/examples/common-mistakes-and-fixes.md +0 -643
- package/augment-extensions/writing-standards/screenplay/themes/examples/complete-scene-example.md +0 -311
- package/augment-extensions/writing-standards/screenplay/themes/examples/individual-theme-examples.md +0 -562
- package/augment-extensions/writing-standards/screenplay/themes/examples/multi-theme-weaving.md +0 -538
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-application-guide.md +0 -432
- package/augment-extensions/writing-standards/screenplay/themes/examples/theme-integration-across-acts.md +0 -637
- package/augment-extensions/writing-standards/screenplay/themes/metadata.json +0 -47
- package/augment-extensions/writing-standards/screenplay/themes/module.json +0 -66
- package/augment-extensions/writing-standards/screenplay/themes/rules/.gitkeep +0 -2
- package/augment-extensions/writing-standards/screenplay/themes/rules/ambition.md +0 -458
- package/augment-extensions/writing-standards/screenplay/themes/rules/betrayal.md +0 -490
- package/augment-extensions/writing-standards/screenplay/themes/rules/environment.md +0 -458
- package/augment-extensions/writing-standards/screenplay/themes/rules/fate.md +0 -459
- package/augment-extensions/writing-standards/screenplay/themes/rules/friendship.md +0 -491
- package/augment-extensions/writing-standards/screenplay/themes/rules/growth.md +0 -491
- package/augment-extensions/writing-standards/screenplay/themes/rules/identity.md +0 -490
- package/augment-extensions/writing-standards/screenplay/themes/rules/isolation.md +0 -464
- package/augment-extensions/writing-standards/screenplay/themes/rules/justice.md +0 -461
- package/augment-extensions/writing-standards/screenplay/themes/rules/love.md +0 -489
- package/augment-extensions/writing-standards/screenplay/themes/rules/power.md +0 -494
- package/augment-extensions/writing-standards/screenplay/themes/rules/redemption.md +0 -483
- package/augment-extensions/writing-standards/screenplay/themes/rules/revenge.md +0 -489
- package/augment-extensions/writing-standards/screenplay/themes/rules/survival.md +0 -496
- package/augment-extensions/writing-standards/screenplay/themes/rules/technology.md +0 -463
- package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +0 -169
- package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +0 -165
- package/cli/dist/__test_health-checker.d.ts +0 -2
- package/cli/dist/__test_health-checker.d.ts.map +0 -1
- package/cli/dist/__test_health-checker.js +0 -4
- package/cli/dist/__test_health-checker.js.map +0 -1
- package/cli/dist/__test_hook-system.d.ts +0 -2
- package/cli/dist/__test_hook-system.d.ts.map +0 -1
- package/cli/dist/__test_hook-system.js +0 -4
- package/cli/dist/__test_hook-system.js.map +0 -1
- package/cli/dist/__test_rule-install-hooks.d.ts +0 -2
- package/cli/dist/__test_rule-install-hooks.d.ts.map +0 -1
- package/cli/dist/__test_rule-install-hooks.js +0 -4
- package/cli/dist/__test_rule-install-hooks.js.map +0 -1
- package/cli/dist/__test_template-engine.d.ts +0 -2
- package/cli/dist/__test_template-engine.d.ts.map +0 -1
- package/cli/dist/__test_template-engine.js +0 -4
- package/cli/dist/__test_template-engine.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-detector.d.ts +0 -92
- package/cli/dist/commands/generate-shot-list/error-detector.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-detector.js +0 -131
- package/cli/dist/commands/generate-shot-list/error-detector.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-recovery.d.ts +0 -85
- package/cli/dist/commands/generate-shot-list/error-recovery.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/error-recovery.js +0 -208
- package/cli/dist/commands/generate-shot-list/error-recovery.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/errors.d.ts +0 -52
- package/cli/dist/commands/generate-shot-list/errors.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/errors.js +0 -287
- package/cli/dist/commands/generate-shot-list/errors.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/exit-codes.d.ts +0 -42
- package/cli/dist/commands/generate-shot-list/exit-codes.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/exit-codes.js +0 -83
- package/cli/dist/commands/generate-shot-list/exit-codes.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts +0 -48
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js +0 -115
- package/cli/dist/commands/generate-shot-list/formatter/base-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts +0 -45
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js +0 -110
- package/cli/dist/commands/generate-shot-list/formatter/csv-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts +0 -38
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js +0 -82
- package/cli/dist/commands/generate-shot-list/formatter/html-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts +0 -11
- package/cli/dist/commands/generate-shot-list/formatter/html-template.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/html-template.js +0 -628
- package/cli/dist/commands/generate-shot-list/formatter/html-template.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/index.d.ts +0 -13
- package/cli/dist/commands/generate-shot-list/formatter/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/index.js +0 -41
- package/cli/dist/commands/generate-shot-list/formatter/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts +0 -35
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js +0 -134
- package/cli/dist/commands/generate-shot-list/formatter/json-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts +0 -38
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js +0 -111
- package/cli/dist/commands/generate-shot-list/formatter/jsonl-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts +0 -53
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js +0 -302
- package/cli/dist/commands/generate-shot-list/formatter/markdown-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts +0 -37
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js +0 -125
- package/cli/dist/commands/generate-shot-list/formatter/txt-formatter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/types.d.ts +0 -75
- package/cli/dist/commands/generate-shot-list/formatter/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/formatter/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/formatter/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.d.ts +0 -58
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.js +0 -275
- package/cli/dist/commands/generate-shot-list/generator/ai-blocking-extractor.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.d.ts +0 -41
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.js +0 -155
- package/cli/dist/commands/generate-shot-list/generator/ai-entity-extractor.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts +0 -166
- package/cli/dist/commands/generate-shot-list/generator/context-builder.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/context-builder.js +0 -965
- package/cli/dist/commands/generate-shot-list/generator/context-builder.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/index.d.ts +0 -163
- package/cli/dist/commands/generate-shot-list/generator/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/index.js +0 -909
- package/cli/dist/commands/generate-shot-list/generator/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts +0 -46
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js +0 -171
- package/cli/dist/commands/generate-shot-list/generator/metadata-extractor.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts +0 -49
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js +0 -130
- package/cli/dist/commands/generate-shot-list/generator/scene-segmenter.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/types.d.ts +0 -135
- package/cli/dist/commands/generate-shot-list/generator/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/generator/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/validator.d.ts +0 -73
- package/cli/dist/commands/generate-shot-list/generator/validator.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/generator/validator.js +0 -284
- package/cli/dist/commands/generate-shot-list/generator/validator.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/help-text.d.ts +0 -11
- package/cli/dist/commands/generate-shot-list/help-text.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/help-text.js +0 -214
- package/cli/dist/commands/generate-shot-list/help-text.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/index.d.ts +0 -25
- package/cli/dist/commands/generate-shot-list/logger/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/index.js +0 -98
- package/cli/dist/commands/generate-shot-list/logger/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts +0 -53
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js +0 -183
- package/cli/dist/commands/generate-shot-list/logger/jsonl-writer.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts +0 -43
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js +0 -142
- package/cli/dist/commands/generate-shot-list/logger/shot-list-logger.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/types.d.ts +0 -145
- package/cli/dist/commands/generate-shot-list/logger/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/logger/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/logger/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.d.ts +0 -29
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.js +0 -111
- package/cli/dist/commands/generate-shot-list/parser/docx-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.d.ts +0 -18
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.js +0 -184
- package/cli/dist/commands/generate-shot-list/parser/finaldraft-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts +0 -33
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js +0 -250
- package/cli/dist/commands/generate-shot-list/parser/fountain-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/index.d.ts +0 -25
- package/cli/dist/commands/generate-shot-list/parser/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/index.js +0 -168
- package/cli/dist/commands/generate-shot-list/parser/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts +0 -21
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js +0 -197
- package/cli/dist/commands/generate-shot-list/parser/markdown-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.d.ts +0 -24
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.js +0 -84
- package/cli/dist/commands/generate-shot-list/parser/pdf-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts +0 -29
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js +0 -213
- package/cli/dist/commands/generate-shot-list/parser/plaintext-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.d.ts +0 -28
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.js +0 -143
- package/cli/dist/commands/generate-shot-list/parser/rtf-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/types.d.ts +0 -136
- package/cli/dist/commands/generate-shot-list/parser/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/parser/types.js +0 -22
- package/cli/dist/commands/generate-shot-list/parser/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/schema/shot-list.schema.json +0 -341
- package/cli/dist/commands/generate-shot-list/schema/validator.d.ts +0 -55
- package/cli/dist/commands/generate-shot-list/schema/validator.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/schema/validator.js +0 -180
- package/cli/dist/commands/generate-shot-list/schema/validator.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.d.ts +0 -36
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.js +0 -108
- package/cli/dist/commands/generate-shot-list/style/guideline-parser.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/index.d.ts +0 -39
- package/cli/dist/commands/generate-shot-list/style/index.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/index.js +0 -85
- package/cli/dist/commands/generate-shot-list/style/index.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-loader.d.ts +0 -35
- package/cli/dist/commands/generate-shot-list/style/style-loader.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-loader.js +0 -178
- package/cli/dist/commands/generate-shot-list/style/style-loader.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-merger.d.ts +0 -36
- package/cli/dist/commands/generate-shot-list/style/style-merger.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/style-merger.js +0 -123
- package/cli/dist/commands/generate-shot-list/style/style-merger.js.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/types.d.ts +0 -105
- package/cli/dist/commands/generate-shot-list/style/types.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list/style/types.js +0 -8
- package/cli/dist/commands/generate-shot-list/style/types.js.map +0 -1
- package/cli/dist/commands/generate-shot-list.d.ts +0 -15
- package/cli/dist/commands/generate-shot-list.d.ts.map +0 -1
- package/cli/dist/commands/generate-shot-list.js +0 -288
- package/cli/dist/commands/generate-shot-list.js.map +0 -1
- package/cli/dist/gui/app.d.ts +0 -17
- package/cli/dist/gui/app.d.ts.map +0 -1
- package/cli/dist/gui/app.js +0 -79
- package/cli/dist/gui/app.js.map +0 -1
- package/cli/dist/gui/components/preview-pane.d.ts +0 -40
- package/cli/dist/gui/components/preview-pane.d.ts.map +0 -1
- package/cli/dist/gui/components/preview-pane.js +0 -90
- package/cli/dist/gui/components/preview-pane.js.map +0 -1
- package/cli/dist/gui/components/search-filter.d.ts +0 -26
- package/cli/dist/gui/components/search-filter.d.ts.map +0 -1
- package/cli/dist/gui/components/search-filter.js +0 -168
- package/cli/dist/gui/components/search-filter.js.map +0 -1
- package/cli/dist/gui/components/status-bar.d.ts +0 -22
- package/cli/dist/gui/components/status-bar.d.ts.map +0 -1
- package/cli/dist/gui/components/status-bar.js +0 -58
- package/cli/dist/gui/components/status-bar.js.map +0 -1
- package/cli/dist/gui/components/tree-navigator.d.ts +0 -30
- package/cli/dist/gui/components/tree-navigator.d.ts.map +0 -1
- package/cli/dist/gui/components/tree-navigator.js +0 -133
- package/cli/dist/gui/components/tree-navigator.js.map +0 -1
- package/cli/dist/gui/components/version-selector.d.ts +0 -27
- package/cli/dist/gui/components/version-selector.d.ts.map +0 -1
- package/cli/dist/gui/components/version-selector.js +0 -110
- package/cli/dist/gui/components/version-selector.js.map +0 -1
- package/cli/dist/gui/hooks/use-version-loader.d.ts +0 -25
- package/cli/dist/gui/hooks/use-version-loader.d.ts.map +0 -1
- package/cli/dist/gui/hooks/use-version-loader.js +0 -116
- package/cli/dist/gui/hooks/use-version-loader.js.map +0 -1
- package/cli/dist/gui/index.d.ts +0 -15
- package/cli/dist/gui/index.d.ts.map +0 -1
- package/cli/dist/gui/index.js +0 -39
- package/cli/dist/gui/index.js.map +0 -1
- package/cli/dist/gui/layouts/main-layout.d.ts +0 -14
- package/cli/dist/gui/layouts/main-layout.d.ts.map +0 -1
- package/cli/dist/gui/layouts/main-layout.js +0 -205
- package/cli/dist/gui/layouts/main-layout.js.map +0 -1
- package/cli/dist/gui/state/navigation-state.d.ts +0 -39
- package/cli/dist/gui/state/navigation-state.d.ts.map +0 -1
- package/cli/dist/gui/state/navigation-state.js +0 -151
- package/cli/dist/gui/state/navigation-state.js.map +0 -1
- package/cli/dist/gui/state/selection-state.d.ts +0 -36
- package/cli/dist/gui/state/selection-state.d.ts.map +0 -1
- package/cli/dist/gui/state/selection-state.js +0 -132
- package/cli/dist/gui/state/selection-state.js.map +0 -1
- package/cli/dist/gui/theme.d.ts +0 -50
- package/cli/dist/gui/theme.d.ts.map +0 -1
- package/cli/dist/gui/theme.js +0 -73
- package/cli/dist/gui/theme.js.map +0 -1
- package/cli/dist/parsers/php-parser.d.ts +0 -127
- package/cli/dist/parsers/php-parser.d.ts.map +0 -1
- package/cli/dist/parsers/php-parser.js +0 -290
- package/cli/dist/parsers/php-parser.js.map +0 -1
- package/cli/dist/utils/help.d.ts +0 -13
- package/cli/dist/utils/help.d.ts.map +0 -1
- package/cli/dist/utils/help.js +0 -137
- package/cli/dist/utils/help.js.map +0 -1
- package/cli/dist/webview/inspection-webview-provider.d.ts +0 -49
- package/cli/dist/webview/inspection-webview-provider.d.ts.map +0 -1
- package/cli/dist/webview/inspection-webview-provider.js +0 -386
- package/cli/dist/webview/inspection-webview-provider.js.map +0 -1
|
@@ -1,745 +1,745 @@
|
|
|
1
|
-
# Monorepo Patterns and Configuration
|
|
2
|
-
|
|
3
|
-
Comprehensive guide to TypeScript monorepo setup, configuration, and best practices using modern tools like Turborepo and Nx.
|
|
4
|
-
|
|
5
|
-
## Table of Contents
|
|
6
|
-
- [Why Monorepos?](#why-monorepos)
|
|
7
|
-
- [Turborepo Configuration](#turborepo-configuration)
|
|
8
|
-
- [Nx Workspace Setup](#nx-workspace-setup)
|
|
9
|
-
- [Shared TypeScript Configuration](#shared-typescript-configuration)
|
|
10
|
-
- [Package Dependencies](#package-dependencies)
|
|
11
|
-
- [Build Orchestration](#build-orchestration)
|
|
12
|
-
- [Testing in Monorepos](#testing-in-monorepos)
|
|
13
|
-
- [Best Practices](#best-practices)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Why Monorepos?
|
|
18
|
-
|
|
19
|
-
### Benefits
|
|
20
|
-
|
|
21
|
-
**Code Sharing**
|
|
22
|
-
- Share TypeScript types across packages
|
|
23
|
-
- Reuse utilities and components
|
|
24
|
-
- Atomic changes across multiple packages
|
|
25
|
-
- Single source of truth for shared code
|
|
26
|
-
|
|
27
|
-
**Developer Experience**
|
|
28
|
-
- Single `git clone` for entire codebase
|
|
29
|
-
- Unified tooling and configuration
|
|
30
|
-
- Easier refactoring across boundaries
|
|
31
|
-
- Consistent dependency versions
|
|
32
|
-
|
|
33
|
-
**Build Optimization**
|
|
34
|
-
- Incremental builds (only changed packages)
|
|
35
|
-
- Parallel task execution
|
|
36
|
-
- Shared build cache
|
|
37
|
-
- Faster CI/CD pipelines
|
|
38
|
-
|
|
39
|
-
### When to Use Monorepos
|
|
40
|
-
|
|
41
|
-
✅ **Good fit:**
|
|
42
|
-
- Multiple related packages/apps
|
|
43
|
-
- Shared component libraries
|
|
44
|
-
- Microservices with shared types
|
|
45
|
-
- Full-stack applications (frontend + backend)
|
|
46
|
-
|
|
47
|
-
❌ **Not ideal:**
|
|
48
|
-
- Single application with no shared code
|
|
49
|
-
- Completely independent projects
|
|
50
|
-
- Teams with different tech stacks
|
|
51
|
-
|
|
52
|
-
---
|
|
53
|
-
|
|
54
|
-
## Turborepo Configuration
|
|
55
|
-
|
|
56
|
-
### Installation
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
# Create new Turborepo
|
|
60
|
-
npx create-turbo@latest
|
|
61
|
-
|
|
62
|
-
# Or add to existing monorepo
|
|
63
|
-
npm install turbo --save-dev
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Basic Structure
|
|
67
|
-
|
|
68
|
-
```
|
|
69
|
-
my-monorepo/
|
|
70
|
-
├── apps/
|
|
71
|
-
│ ├── web/ # Next.js app
|
|
72
|
-
│ ├── api/ # Express API
|
|
73
|
-
│ └── admin/ # Admin dashboard
|
|
74
|
-
├── packages/
|
|
75
|
-
│ ├── ui/ # Shared UI components
|
|
76
|
-
│ ├── config/ # Shared configs
|
|
77
|
-
│ ├── tsconfig/ # Shared TypeScript configs
|
|
78
|
-
│ └── types/ # Shared TypeScript types
|
|
79
|
-
├── turbo.json # Turborepo configuration
|
|
80
|
-
├── package.json # Root package.json
|
|
81
|
-
└── pnpm-workspace.yaml # Workspace configuration
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
### turbo.json Configuration
|
|
85
|
-
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"$schema": "https://turbo.build/schema.json",
|
|
89
|
-
"globalDependencies": ["**/.env.*local"],
|
|
90
|
-
"pipeline": {
|
|
91
|
-
"build": {
|
|
92
|
-
"dependsOn": ["^build"],
|
|
93
|
-
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
|
|
94
|
-
},
|
|
95
|
-
"test": {
|
|
96
|
-
"dependsOn": ["build"],
|
|
97
|
-
"outputs": ["coverage/**"],
|
|
98
|
-
"cache": false
|
|
99
|
-
},
|
|
100
|
-
"lint": {
|
|
101
|
-
"outputs": []
|
|
102
|
-
},
|
|
103
|
-
"dev": {
|
|
104
|
-
"cache": false,
|
|
105
|
-
"persistent": true
|
|
106
|
-
},
|
|
107
|
-
"type-check": {
|
|
108
|
-
"dependsOn": ["^build"],
|
|
109
|
-
"outputs": []
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### Key Concepts
|
|
116
|
-
|
|
117
|
-
**Pipeline Tasks**
|
|
118
|
-
- `dependsOn: ["^build"]` - Run dependencies' build first
|
|
119
|
-
- `outputs` - Files to cache
|
|
120
|
-
- `cache: false` - Disable caching for dev/test tasks
|
|
121
|
-
- `persistent: true` - Keep task running (dev servers)
|
|
122
|
-
|
|
123
|
-
**Task Execution**
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
# Run build in all packages
|
|
127
|
-
turbo run build
|
|
128
|
-
|
|
129
|
-
# Run build in specific package
|
|
130
|
-
turbo run build --filter=@myapp/web
|
|
131
|
-
|
|
132
|
-
# Run with dependencies
|
|
133
|
-
turbo run build --filter=@myapp/web...
|
|
134
|
-
|
|
135
|
-
# Parallel execution
|
|
136
|
-
turbo run lint test type-check --parallel
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
## Nx Workspace Setup
|
|
142
|
-
|
|
143
|
-
### Installation
|
|
144
|
-
|
|
145
|
-
```bash
|
|
146
|
-
# Create new Nx workspace
|
|
147
|
-
npx create-nx-workspace@latest
|
|
148
|
-
|
|
149
|
-
# Add Nx to existing monorepo
|
|
150
|
-
npm install -D nx @nx/workspace
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Workspace Structure
|
|
154
|
-
|
|
155
|
-
```
|
|
156
|
-
my-nx-workspace/
|
|
157
|
-
├── apps/
|
|
158
|
-
│ ├── web/
|
|
159
|
-
│ └── api/
|
|
160
|
-
├── libs/
|
|
161
|
-
│ ├── shared/
|
|
162
|
-
│ │ ├── ui/
|
|
163
|
-
│ │ ├── data-access/
|
|
164
|
-
│ │ └── utils/
|
|
165
|
-
│ └── feature/
|
|
166
|
-
│ ├── auth/
|
|
167
|
-
│ └── dashboard/
|
|
168
|
-
├── nx.json
|
|
169
|
-
├── workspace.json
|
|
170
|
-
└── tsconfig.base.json
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### nx.json Configuration
|
|
174
|
-
|
|
175
|
-
```json
|
|
176
|
-
{
|
|
177
|
-
"extends": "nx/presets/npm.json",
|
|
178
|
-
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
179
|
-
"targetDefaults": {
|
|
180
|
-
"build": {
|
|
181
|
-
"dependsOn": ["^build"],
|
|
182
|
-
"inputs": ["production", "^production"],
|
|
183
|
-
"cache": true
|
|
184
|
-
},
|
|
185
|
-
"test": {
|
|
186
|
-
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
187
|
-
"cache": true
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
"namedInputs": {
|
|
191
|
-
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
192
|
-
"production": [
|
|
193
|
-
"default",
|
|
194
|
-
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
195
|
-
"!{projectRoot}/tsconfig.spec.json"
|
|
196
|
-
],
|
|
197
|
-
"sharedGlobals": []
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
### Project Configuration
|
|
203
|
-
|
|
204
|
-
```json
|
|
205
|
-
// apps/web/project.json
|
|
206
|
-
{
|
|
207
|
-
"name": "web",
|
|
208
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
209
|
-
"sourceRoot": "apps/web/src",
|
|
210
|
-
"projectType": "application",
|
|
211
|
-
"targets": {
|
|
212
|
-
"build": {
|
|
213
|
-
"executor": "@nx/next:build",
|
|
214
|
-
"outputs": ["{options.outputPath}"],
|
|
215
|
-
"options": {
|
|
216
|
-
"outputPath": "dist/apps/web"
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"serve": {
|
|
220
|
-
"executor": "@nx/next:server",
|
|
221
|
-
"options": {
|
|
222
|
-
"buildTarget": "web:build",
|
|
223
|
-
"dev": true
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
"tags": ["type:app", "scope:web"]
|
|
228
|
-
}
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
### Nx Commands
|
|
232
|
-
|
|
233
|
-
```bash
|
|
234
|
-
# Run target for specific project
|
|
235
|
-
nx build web
|
|
236
|
-
|
|
237
|
-
# Run target for all affected projects
|
|
238
|
-
nx affected:build
|
|
239
|
-
|
|
240
|
-
# Show dependency graph
|
|
241
|
-
nx graph
|
|
242
|
-
|
|
243
|
-
# Run tasks in parallel
|
|
244
|
-
nx run-many --target=build --all --parallel=3
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
---
|
|
248
|
-
|
|
249
|
-
## Shared TypeScript Configuration
|
|
250
|
-
|
|
251
|
-
### Base Configuration
|
|
252
|
-
|
|
253
|
-
```json
|
|
254
|
-
// packages/tsconfig/base.json
|
|
255
|
-
{
|
|
256
|
-
"compilerOptions": {
|
|
257
|
-
"strict": true,
|
|
258
|
-
"esModuleInterop": true,
|
|
259
|
-
"skipLibCheck": true,
|
|
260
|
-
"forceConsistentCasingInFileNames": true,
|
|
261
|
-
"module": "ESNext",
|
|
262
|
-
"moduleResolution": "bundler",
|
|
263
|
-
"resolveJsonModule": true,
|
|
264
|
-
"isolatedModules": true,
|
|
265
|
-
"incremental": true,
|
|
266
|
-
"noUncheckedIndexedAccess": true,
|
|
267
|
-
"declaration": true,
|
|
268
|
-
"declarationMap": true,
|
|
269
|
-
"sourceMap": true
|
|
270
|
-
},
|
|
271
|
-
"exclude": ["node_modules", "dist", ".turbo"]
|
|
272
|
-
}
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
### React Configuration
|
|
276
|
-
|
|
277
|
-
```json
|
|
278
|
-
// packages/tsconfig/react.json
|
|
279
|
-
{
|
|
280
|
-
"extends": "./base.json",
|
|
281
|
-
"compilerOptions": {
|
|
282
|
-
"jsx": "react-jsx",
|
|
283
|
-
"lib": ["DOM", "DOM.Iterable", "ESNext"]
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### Next.js Configuration
|
|
289
|
-
|
|
290
|
-
```json
|
|
291
|
-
// packages/tsconfig/nextjs.json
|
|
292
|
-
{
|
|
293
|
-
"extends": "./react.json",
|
|
294
|
-
"compilerOptions": {
|
|
295
|
-
"target": "ES2017",
|
|
296
|
-
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
297
|
-
"allowJs": true,
|
|
298
|
-
"noEmit": true,
|
|
299
|
-
"plugins": [
|
|
300
|
-
{
|
|
301
|
-
"name": "next"
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
306
|
-
"exclude": ["node_modules"]
|
|
307
|
-
}
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
### Node.js Configuration
|
|
311
|
-
|
|
312
|
-
```json
|
|
313
|
-
// packages/tsconfig/node.json
|
|
314
|
-
{
|
|
315
|
-
"extends": "./base.json",
|
|
316
|
-
"compilerOptions": {
|
|
317
|
-
"target": "ES2022",
|
|
318
|
-
"lib": ["ES2022"],
|
|
319
|
-
"module": "CommonJS",
|
|
320
|
-
"moduleResolution": "node",
|
|
321
|
-
"outDir": "dist",
|
|
322
|
-
"rootDir": "src"
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### Library Configuration
|
|
328
|
-
|
|
329
|
-
```json
|
|
330
|
-
// packages/tsconfig/library.json
|
|
331
|
-
{
|
|
332
|
-
"extends": "./base.json",
|
|
333
|
-
"compilerOptions": {
|
|
334
|
-
"target": "ES2020",
|
|
335
|
-
"lib": ["ES2020"],
|
|
336
|
-
"composite": true,
|
|
337
|
-
"declaration": true,
|
|
338
|
-
"declarationMap": true,
|
|
339
|
-
"outDir": "dist",
|
|
340
|
-
"rootDir": "src"
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
### Usage in Packages
|
|
346
|
-
|
|
347
|
-
```json
|
|
348
|
-
// apps/web/tsconfig.json
|
|
349
|
-
{
|
|
350
|
-
"extends": "@myapp/tsconfig/nextjs.json",
|
|
351
|
-
"compilerOptions": {
|
|
352
|
-
"baseUrl": ".",
|
|
353
|
-
"paths": {
|
|
354
|
-
"@/*": ["./src/*"],
|
|
355
|
-
"@myapp/ui": ["../../packages/ui/src"],
|
|
356
|
-
"@myapp/types": ["../../packages/types/src"]
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
|
360
|
-
"exclude": ["node_modules"]
|
|
361
|
-
}
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
---
|
|
365
|
-
|
|
366
|
-
## Package Dependencies
|
|
367
|
-
|
|
368
|
-
### Internal Dependencies
|
|
369
|
-
|
|
370
|
-
**Using Workspace Protocol (pnpm)**
|
|
371
|
-
|
|
372
|
-
```json
|
|
373
|
-
// apps/web/package.json
|
|
374
|
-
{
|
|
375
|
-
"name": "@myapp/web",
|
|
376
|
-
"dependencies": {
|
|
377
|
-
"@myapp/ui": "workspace:*",
|
|
378
|
-
"@myapp/types": "workspace:*",
|
|
379
|
-
"@myapp/utils": "workspace:*"
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
**Using File Protocol (npm/yarn)**
|
|
385
|
-
|
|
386
|
-
```json
|
|
387
|
-
{
|
|
388
|
-
"dependencies": {
|
|
389
|
-
"@myapp/ui": "file:../../packages/ui",
|
|
390
|
-
"@myapp/types": "file:../../packages/types"
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
```
|
|
394
|
-
|
|
395
|
-
### Dependency Management
|
|
396
|
-
|
|
397
|
-
**Root package.json**
|
|
398
|
-
|
|
399
|
-
```json
|
|
400
|
-
{
|
|
401
|
-
"name": "my-monorepo",
|
|
402
|
-
"private": true,
|
|
403
|
-
"workspaces": [
|
|
404
|
-
"apps/*",
|
|
405
|
-
"packages/*"
|
|
406
|
-
],
|
|
407
|
-
"devDependencies": {
|
|
408
|
-
"typescript": "^5.6.0",
|
|
409
|
-
"turbo": "^2.0.0",
|
|
410
|
-
"@types/node": "^20.0.0"
|
|
411
|
-
},
|
|
412
|
-
"scripts": {
|
|
413
|
-
"build": "turbo run build",
|
|
414
|
-
"dev": "turbo run dev",
|
|
415
|
-
"lint": "turbo run lint",
|
|
416
|
-
"test": "turbo run test",
|
|
417
|
-
"type-check": "turbo run type-check"
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
### Version Synchronization
|
|
423
|
-
|
|
424
|
-
**Using syncpack**
|
|
425
|
-
|
|
426
|
-
```bash
|
|
427
|
-
# Install syncpack
|
|
428
|
-
npm install -D syncpack
|
|
429
|
-
|
|
430
|
-
# Check for version mismatches
|
|
431
|
-
npx syncpack list-mismatches
|
|
432
|
-
|
|
433
|
-
# Fix version mismatches
|
|
434
|
-
npx syncpack fix-mismatches
|
|
435
|
-
```
|
|
436
|
-
|
|
437
|
-
**syncpack.config.js**
|
|
438
|
-
|
|
439
|
-
```javascript
|
|
440
|
-
module.exports = {
|
|
441
|
-
source: ['package.json', 'apps/*/package.json', 'packages/*/package.json'],
|
|
442
|
-
versionGroups: [
|
|
443
|
-
{
|
|
444
|
-
label: 'Use workspace protocol for internal packages',
|
|
445
|
-
packages: ['**'],
|
|
446
|
-
dependencies: ['@myapp/**'],
|
|
447
|
-
dependencyTypes: ['prod', 'dev'],
|
|
448
|
-
pinVersion: 'workspace:*'
|
|
449
|
-
}
|
|
450
|
-
]
|
|
451
|
-
};
|
|
452
|
-
```
|
|
453
|
-
|
|
454
|
-
---
|
|
455
|
-
|
|
456
|
-
## Build Orchestration
|
|
457
|
-
|
|
458
|
-
### Turborepo Build Pipeline
|
|
459
|
-
|
|
460
|
-
```json
|
|
461
|
-
// turbo.json
|
|
462
|
-
{
|
|
463
|
-
"pipeline": {
|
|
464
|
-
"build": {
|
|
465
|
-
"dependsOn": ["^build"],
|
|
466
|
-
"outputs": ["dist/**", ".next/**"],
|
|
467
|
-
"env": ["NODE_ENV"]
|
|
468
|
-
},
|
|
469
|
-
"test": {
|
|
470
|
-
"dependsOn": ["build"],
|
|
471
|
-
"outputs": ["coverage/**"]
|
|
472
|
-
},
|
|
473
|
-
"lint": {},
|
|
474
|
-
"type-check": {
|
|
475
|
-
"dependsOn": ["^build"]
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
### Nx Task Pipeline
|
|
482
|
-
|
|
483
|
-
```json
|
|
484
|
-
// nx.json
|
|
485
|
-
{
|
|
486
|
-
"targetDefaults": {
|
|
487
|
-
"build": {
|
|
488
|
-
"dependsOn": ["^build"],
|
|
489
|
-
"inputs": ["production", "^production"],
|
|
490
|
-
"outputs": ["{projectRoot}/dist"],
|
|
491
|
-
"cache": true
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
### Parallel Execution
|
|
498
|
-
|
|
499
|
-
```bash
|
|
500
|
-
# Turborepo - automatic parallelization
|
|
501
|
-
turbo run build
|
|
502
|
-
|
|
503
|
-
# Nx - explicit parallelization
|
|
504
|
-
nx run-many --target=build --all --parallel=5
|
|
505
|
-
|
|
506
|
-
# Run only affected projects
|
|
507
|
-
nx affected:build --base=main
|
|
508
|
-
```
|
|
509
|
-
|
|
510
|
-
---
|
|
511
|
-
|
|
512
|
-
## Testing in Monorepos
|
|
513
|
-
|
|
514
|
-
### Shared Test Configuration
|
|
515
|
-
|
|
516
|
-
```typescript
|
|
517
|
-
// packages/config/vitest.config.ts
|
|
518
|
-
import { defineConfig } from 'vitest/config';
|
|
519
|
-
|
|
520
|
-
export default defineConfig({
|
|
521
|
-
test: {
|
|
522
|
-
globals: true,
|
|
523
|
-
environment: 'node',
|
|
524
|
-
coverage: {
|
|
525
|
-
provider: 'v8',
|
|
526
|
-
reporter: ['text', 'json', 'html'],
|
|
527
|
-
exclude: ['**/*.spec.ts', '**/*.test.ts', '**/dist/**']
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
});
|
|
531
|
-
```
|
|
532
|
-
|
|
533
|
-
### Package-Specific Tests
|
|
534
|
-
|
|
535
|
-
```typescript
|
|
536
|
-
// apps/web/vitest.config.ts
|
|
537
|
-
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
538
|
-
import baseConfig from '@myapp/config/vitest.config';
|
|
539
|
-
|
|
540
|
-
export default mergeConfig(
|
|
541
|
-
baseConfig,
|
|
542
|
-
defineConfig({
|
|
543
|
-
test: {
|
|
544
|
-
environment: 'jsdom',
|
|
545
|
-
setupFiles: ['./test/setup.ts']
|
|
546
|
-
}
|
|
547
|
-
})
|
|
548
|
-
);
|
|
549
|
-
```
|
|
550
|
-
|
|
551
|
-
### Running Tests
|
|
552
|
-
|
|
553
|
-
```bash
|
|
554
|
-
# Run all tests
|
|
555
|
-
turbo run test
|
|
556
|
-
|
|
557
|
-
# Run tests for affected packages
|
|
558
|
-
nx affected:test
|
|
559
|
-
|
|
560
|
-
# Run tests with coverage
|
|
561
|
-
turbo run test -- --coverage
|
|
562
|
-
```
|
|
563
|
-
|
|
564
|
-
---
|
|
565
|
-
|
|
566
|
-
## Best Practices
|
|
567
|
-
|
|
568
|
-
### 1. Use Consistent Naming
|
|
569
|
-
|
|
570
|
-
```
|
|
571
|
-
✅ Good:
|
|
572
|
-
@myapp/ui
|
|
573
|
-
@myapp/types
|
|
574
|
-
@myapp/utils
|
|
575
|
-
|
|
576
|
-
❌ Bad:
|
|
577
|
-
ui-components
|
|
578
|
-
shared-types
|
|
579
|
-
common-utils
|
|
580
|
-
```
|
|
581
|
-
|
|
582
|
-
### 2. Organize by Type and Scope
|
|
583
|
-
|
|
584
|
-
```
|
|
585
|
-
packages/
|
|
586
|
-
├── ui/ # Shared UI components
|
|
587
|
-
├── types/ # Shared TypeScript types
|
|
588
|
-
├── utils/ # Shared utilities
|
|
589
|
-
└── config/ # Shared configurations
|
|
590
|
-
|
|
591
|
-
apps/
|
|
592
|
-
├── web/ # Customer-facing web app
|
|
593
|
-
├── admin/ # Admin dashboard
|
|
594
|
-
└── api/ # Backend API
|
|
595
|
-
```
|
|
596
|
-
|
|
597
|
-
### 3. Use Path Aliases
|
|
598
|
-
|
|
599
|
-
```json
|
|
600
|
-
{
|
|
601
|
-
"compilerOptions": {
|
|
602
|
-
"paths": {
|
|
603
|
-
"@myapp/ui": ["../../packages/ui/src"],
|
|
604
|
-
"@myapp/types": ["../../packages/types/src"],
|
|
605
|
-
"@myapp/utils": ["../../packages/utils/src"]
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
```
|
|
610
|
-
|
|
611
|
-
### 4. Leverage Caching
|
|
612
|
-
|
|
613
|
-
```json
|
|
614
|
-
// turbo.json
|
|
615
|
-
{
|
|
616
|
-
"pipeline": {
|
|
617
|
-
"build": {
|
|
618
|
-
"outputs": ["dist/**"],
|
|
619
|
-
"cache": true
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
```
|
|
624
|
-
|
|
625
|
-
### 5. Use Changesets for Versioning
|
|
626
|
-
|
|
627
|
-
```bash
|
|
628
|
-
# Install changesets
|
|
629
|
-
npm install -D @changesets/cli
|
|
630
|
-
|
|
631
|
-
# Initialize
|
|
632
|
-
npx changeset init
|
|
633
|
-
|
|
634
|
-
# Create changeset
|
|
635
|
-
npx changeset
|
|
636
|
-
|
|
637
|
-
# Version packages
|
|
638
|
-
npx changeset version
|
|
639
|
-
|
|
640
|
-
# Publish
|
|
641
|
-
npx changeset publish
|
|
642
|
-
```
|
|
643
|
-
|
|
644
|
-
---
|
|
645
|
-
|
|
646
|
-
## Common Pitfalls
|
|
647
|
-
|
|
648
|
-
### ❌ Circular Dependencies
|
|
649
|
-
|
|
650
|
-
```typescript
|
|
651
|
-
// packages/ui/src/Button.tsx
|
|
652
|
-
import { formatDate } from '@myapp/utils';
|
|
653
|
-
|
|
654
|
-
// packages/utils/src/format.ts
|
|
655
|
-
import { Button } from '@myapp/ui'; // ❌ Circular dependency!
|
|
656
|
-
```
|
|
657
|
-
|
|
658
|
-
**Solution:** Extract shared code to a separate package.
|
|
659
|
-
|
|
660
|
-
### ❌ Missing Build Dependencies
|
|
661
|
-
|
|
662
|
-
```json
|
|
663
|
-
// ❌ Bad: Missing dependency
|
|
664
|
-
{
|
|
665
|
-
"pipeline": {
|
|
666
|
-
"test": {
|
|
667
|
-
"outputs": ["coverage/**"]
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
// ✅ Good: Explicit dependency
|
|
673
|
-
{
|
|
674
|
-
"pipeline": {
|
|
675
|
-
"test": {
|
|
676
|
-
"dependsOn": ["build"],
|
|
677
|
-
"outputs": ["coverage/**"]
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
```
|
|
682
|
-
|
|
683
|
-
### ❌ Inconsistent TypeScript Versions
|
|
684
|
-
|
|
685
|
-
```bash
|
|
686
|
-
# Check for version mismatches
|
|
687
|
-
npx syncpack list-mismatches
|
|
688
|
-
|
|
689
|
-
# Fix mismatches
|
|
690
|
-
npx syncpack fix-mismatches
|
|
691
|
-
```
|
|
692
|
-
|
|
693
|
-
---
|
|
694
|
-
|
|
695
|
-
## Migration Guide
|
|
696
|
-
|
|
697
|
-
### From Single Package to Monorepo
|
|
698
|
-
|
|
699
|
-
1. **Create monorepo structure**
|
|
700
|
-
```bash
|
|
701
|
-
mkdir -p apps/web packages/ui packages/types
|
|
702
|
-
```
|
|
703
|
-
|
|
704
|
-
2. **Move existing code**
|
|
705
|
-
```bash
|
|
706
|
-
mv src apps/web/src
|
|
707
|
-
mv package.json apps/web/package.json
|
|
708
|
-
```
|
|
709
|
-
|
|
710
|
-
3. **Create root package.json**
|
|
711
|
-
```json
|
|
712
|
-
{
|
|
713
|
-
"private": true,
|
|
714
|
-
"workspaces": ["apps/*", "packages/*"]
|
|
715
|
-
}
|
|
716
|
-
```
|
|
717
|
-
|
|
718
|
-
4. **Install Turborepo**
|
|
719
|
-
```bash
|
|
720
|
-
npm install -D turbo
|
|
721
|
-
```
|
|
722
|
-
|
|
723
|
-
5. **Create turbo.json**
|
|
724
|
-
```json
|
|
725
|
-
{
|
|
726
|
-
"pipeline": {
|
|
727
|
-
"build": {
|
|
728
|
-
"dependsOn": ["^build"],
|
|
729
|
-
"outputs": ["dist/**"]
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
```
|
|
734
|
-
|
|
735
|
-
---
|
|
736
|
-
|
|
737
|
-
## References
|
|
738
|
-
|
|
739
|
-
- [Turborepo Documentation](https://turbo.build/repo/docs)
|
|
740
|
-
- [Nx Documentation](https://nx.dev)
|
|
741
|
-
- [pnpm Workspaces](https://pnpm.io/workspaces)
|
|
742
|
-
- [Changesets](https://github.com/changesets/changesets)
|
|
743
|
-
- [syncpack](https://github.com/JamieMason/syncpack)
|
|
744
|
-
|
|
745
|
-
|
|
1
|
+
# Monorepo Patterns and Configuration
|
|
2
|
+
|
|
3
|
+
Comprehensive guide to TypeScript monorepo setup, configuration, and best practices using modern tools like Turborepo and Nx.
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
- [Why Monorepos?](#why-monorepos)
|
|
7
|
+
- [Turborepo Configuration](#turborepo-configuration)
|
|
8
|
+
- [Nx Workspace Setup](#nx-workspace-setup)
|
|
9
|
+
- [Shared TypeScript Configuration](#shared-typescript-configuration)
|
|
10
|
+
- [Package Dependencies](#package-dependencies)
|
|
11
|
+
- [Build Orchestration](#build-orchestration)
|
|
12
|
+
- [Testing in Monorepos](#testing-in-monorepos)
|
|
13
|
+
- [Best Practices](#best-practices)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Why Monorepos?
|
|
18
|
+
|
|
19
|
+
### Benefits
|
|
20
|
+
|
|
21
|
+
**Code Sharing**
|
|
22
|
+
- Share TypeScript types across packages
|
|
23
|
+
- Reuse utilities and components
|
|
24
|
+
- Atomic changes across multiple packages
|
|
25
|
+
- Single source of truth for shared code
|
|
26
|
+
|
|
27
|
+
**Developer Experience**
|
|
28
|
+
- Single `git clone` for entire codebase
|
|
29
|
+
- Unified tooling and configuration
|
|
30
|
+
- Easier refactoring across boundaries
|
|
31
|
+
- Consistent dependency versions
|
|
32
|
+
|
|
33
|
+
**Build Optimization**
|
|
34
|
+
- Incremental builds (only changed packages)
|
|
35
|
+
- Parallel task execution
|
|
36
|
+
- Shared build cache
|
|
37
|
+
- Faster CI/CD pipelines
|
|
38
|
+
|
|
39
|
+
### When to Use Monorepos
|
|
40
|
+
|
|
41
|
+
✅ **Good fit:**
|
|
42
|
+
- Multiple related packages/apps
|
|
43
|
+
- Shared component libraries
|
|
44
|
+
- Microservices with shared types
|
|
45
|
+
- Full-stack applications (frontend + backend)
|
|
46
|
+
|
|
47
|
+
❌ **Not ideal:**
|
|
48
|
+
- Single application with no shared code
|
|
49
|
+
- Completely independent projects
|
|
50
|
+
- Teams with different tech stacks
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Turborepo Configuration
|
|
55
|
+
|
|
56
|
+
### Installation
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Create new Turborepo
|
|
60
|
+
npx create-turbo@latest
|
|
61
|
+
|
|
62
|
+
# Or add to existing monorepo
|
|
63
|
+
npm install turbo --save-dev
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Basic Structure
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
my-monorepo/
|
|
70
|
+
├── apps/
|
|
71
|
+
│ ├── web/ # Next.js app
|
|
72
|
+
│ ├── api/ # Express API
|
|
73
|
+
│ └── admin/ # Admin dashboard
|
|
74
|
+
├── packages/
|
|
75
|
+
│ ├── ui/ # Shared UI components
|
|
76
|
+
│ ├── config/ # Shared configs
|
|
77
|
+
│ ├── tsconfig/ # Shared TypeScript configs
|
|
78
|
+
│ └── types/ # Shared TypeScript types
|
|
79
|
+
├── turbo.json # Turborepo configuration
|
|
80
|
+
├── package.json # Root package.json
|
|
81
|
+
└── pnpm-workspace.yaml # Workspace configuration
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### turbo.json Configuration
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"$schema": "https://turbo.build/schema.json",
|
|
89
|
+
"globalDependencies": ["**/.env.*local"],
|
|
90
|
+
"pipeline": {
|
|
91
|
+
"build": {
|
|
92
|
+
"dependsOn": ["^build"],
|
|
93
|
+
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
|
|
94
|
+
},
|
|
95
|
+
"test": {
|
|
96
|
+
"dependsOn": ["build"],
|
|
97
|
+
"outputs": ["coverage/**"],
|
|
98
|
+
"cache": false
|
|
99
|
+
},
|
|
100
|
+
"lint": {
|
|
101
|
+
"outputs": []
|
|
102
|
+
},
|
|
103
|
+
"dev": {
|
|
104
|
+
"cache": false,
|
|
105
|
+
"persistent": true
|
|
106
|
+
},
|
|
107
|
+
"type-check": {
|
|
108
|
+
"dependsOn": ["^build"],
|
|
109
|
+
"outputs": []
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Key Concepts
|
|
116
|
+
|
|
117
|
+
**Pipeline Tasks**
|
|
118
|
+
- `dependsOn: ["^build"]` - Run dependencies' build first
|
|
119
|
+
- `outputs` - Files to cache
|
|
120
|
+
- `cache: false` - Disable caching for dev/test tasks
|
|
121
|
+
- `persistent: true` - Keep task running (dev servers)
|
|
122
|
+
|
|
123
|
+
**Task Execution**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Run build in all packages
|
|
127
|
+
turbo run build
|
|
128
|
+
|
|
129
|
+
# Run build in specific package
|
|
130
|
+
turbo run build --filter=@myapp/web
|
|
131
|
+
|
|
132
|
+
# Run with dependencies
|
|
133
|
+
turbo run build --filter=@myapp/web...
|
|
134
|
+
|
|
135
|
+
# Parallel execution
|
|
136
|
+
turbo run lint test type-check --parallel
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Nx Workspace Setup
|
|
142
|
+
|
|
143
|
+
### Installation
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Create new Nx workspace
|
|
147
|
+
npx create-nx-workspace@latest
|
|
148
|
+
|
|
149
|
+
# Add Nx to existing monorepo
|
|
150
|
+
npm install -D nx @nx/workspace
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### Workspace Structure
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
my-nx-workspace/
|
|
157
|
+
├── apps/
|
|
158
|
+
│ ├── web/
|
|
159
|
+
│ └── api/
|
|
160
|
+
├── libs/
|
|
161
|
+
│ ├── shared/
|
|
162
|
+
│ │ ├── ui/
|
|
163
|
+
│ │ ├── data-access/
|
|
164
|
+
│ │ └── utils/
|
|
165
|
+
│ └── feature/
|
|
166
|
+
│ ├── auth/
|
|
167
|
+
│ └── dashboard/
|
|
168
|
+
├── nx.json
|
|
169
|
+
├── workspace.json
|
|
170
|
+
└── tsconfig.base.json
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### nx.json Configuration
|
|
174
|
+
|
|
175
|
+
```json
|
|
176
|
+
{
|
|
177
|
+
"extends": "nx/presets/npm.json",
|
|
178
|
+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
|
179
|
+
"targetDefaults": {
|
|
180
|
+
"build": {
|
|
181
|
+
"dependsOn": ["^build"],
|
|
182
|
+
"inputs": ["production", "^production"],
|
|
183
|
+
"cache": true
|
|
184
|
+
},
|
|
185
|
+
"test": {
|
|
186
|
+
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
187
|
+
"cache": true
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
"namedInputs": {
|
|
191
|
+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
192
|
+
"production": [
|
|
193
|
+
"default",
|
|
194
|
+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
195
|
+
"!{projectRoot}/tsconfig.spec.json"
|
|
196
|
+
],
|
|
197
|
+
"sharedGlobals": []
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Project Configuration
|
|
203
|
+
|
|
204
|
+
```json
|
|
205
|
+
// apps/web/project.json
|
|
206
|
+
{
|
|
207
|
+
"name": "web",
|
|
208
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
209
|
+
"sourceRoot": "apps/web/src",
|
|
210
|
+
"projectType": "application",
|
|
211
|
+
"targets": {
|
|
212
|
+
"build": {
|
|
213
|
+
"executor": "@nx/next:build",
|
|
214
|
+
"outputs": ["{options.outputPath}"],
|
|
215
|
+
"options": {
|
|
216
|
+
"outputPath": "dist/apps/web"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"serve": {
|
|
220
|
+
"executor": "@nx/next:server",
|
|
221
|
+
"options": {
|
|
222
|
+
"buildTarget": "web:build",
|
|
223
|
+
"dev": true
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"tags": ["type:app", "scope:web"]
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Nx Commands
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
# Run target for specific project
|
|
235
|
+
nx build web
|
|
236
|
+
|
|
237
|
+
# Run target for all affected projects
|
|
238
|
+
nx affected:build
|
|
239
|
+
|
|
240
|
+
# Show dependency graph
|
|
241
|
+
nx graph
|
|
242
|
+
|
|
243
|
+
# Run tasks in parallel
|
|
244
|
+
nx run-many --target=build --all --parallel=3
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## Shared TypeScript Configuration
|
|
250
|
+
|
|
251
|
+
### Base Configuration
|
|
252
|
+
|
|
253
|
+
```json
|
|
254
|
+
// packages/tsconfig/base.json
|
|
255
|
+
{
|
|
256
|
+
"compilerOptions": {
|
|
257
|
+
"strict": true,
|
|
258
|
+
"esModuleInterop": true,
|
|
259
|
+
"skipLibCheck": true,
|
|
260
|
+
"forceConsistentCasingInFileNames": true,
|
|
261
|
+
"module": "ESNext",
|
|
262
|
+
"moduleResolution": "bundler",
|
|
263
|
+
"resolveJsonModule": true,
|
|
264
|
+
"isolatedModules": true,
|
|
265
|
+
"incremental": true,
|
|
266
|
+
"noUncheckedIndexedAccess": true,
|
|
267
|
+
"declaration": true,
|
|
268
|
+
"declarationMap": true,
|
|
269
|
+
"sourceMap": true
|
|
270
|
+
},
|
|
271
|
+
"exclude": ["node_modules", "dist", ".turbo"]
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### React Configuration
|
|
276
|
+
|
|
277
|
+
```json
|
|
278
|
+
// packages/tsconfig/react.json
|
|
279
|
+
{
|
|
280
|
+
"extends": "./base.json",
|
|
281
|
+
"compilerOptions": {
|
|
282
|
+
"jsx": "react-jsx",
|
|
283
|
+
"lib": ["DOM", "DOM.Iterable", "ESNext"]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Next.js Configuration
|
|
289
|
+
|
|
290
|
+
```json
|
|
291
|
+
// packages/tsconfig/nextjs.json
|
|
292
|
+
{
|
|
293
|
+
"extends": "./react.json",
|
|
294
|
+
"compilerOptions": {
|
|
295
|
+
"target": "ES2017",
|
|
296
|
+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
297
|
+
"allowJs": true,
|
|
298
|
+
"noEmit": true,
|
|
299
|
+
"plugins": [
|
|
300
|
+
{
|
|
301
|
+
"name": "next"
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
306
|
+
"exclude": ["node_modules"]
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### Node.js Configuration
|
|
311
|
+
|
|
312
|
+
```json
|
|
313
|
+
// packages/tsconfig/node.json
|
|
314
|
+
{
|
|
315
|
+
"extends": "./base.json",
|
|
316
|
+
"compilerOptions": {
|
|
317
|
+
"target": "ES2022",
|
|
318
|
+
"lib": ["ES2022"],
|
|
319
|
+
"module": "CommonJS",
|
|
320
|
+
"moduleResolution": "node",
|
|
321
|
+
"outDir": "dist",
|
|
322
|
+
"rootDir": "src"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### Library Configuration
|
|
328
|
+
|
|
329
|
+
```json
|
|
330
|
+
// packages/tsconfig/library.json
|
|
331
|
+
{
|
|
332
|
+
"extends": "./base.json",
|
|
333
|
+
"compilerOptions": {
|
|
334
|
+
"target": "ES2020",
|
|
335
|
+
"lib": ["ES2020"],
|
|
336
|
+
"composite": true,
|
|
337
|
+
"declaration": true,
|
|
338
|
+
"declarationMap": true,
|
|
339
|
+
"outDir": "dist",
|
|
340
|
+
"rootDir": "src"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
### Usage in Packages
|
|
346
|
+
|
|
347
|
+
```json
|
|
348
|
+
// apps/web/tsconfig.json
|
|
349
|
+
{
|
|
350
|
+
"extends": "@myapp/tsconfig/nextjs.json",
|
|
351
|
+
"compilerOptions": {
|
|
352
|
+
"baseUrl": ".",
|
|
353
|
+
"paths": {
|
|
354
|
+
"@/*": ["./src/*"],
|
|
355
|
+
"@myapp/ui": ["../../packages/ui/src"],
|
|
356
|
+
"@myapp/types": ["../../packages/types/src"]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
|
360
|
+
"exclude": ["node_modules"]
|
|
361
|
+
}
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## Package Dependencies
|
|
367
|
+
|
|
368
|
+
### Internal Dependencies
|
|
369
|
+
|
|
370
|
+
**Using Workspace Protocol (pnpm)**
|
|
371
|
+
|
|
372
|
+
```json
|
|
373
|
+
// apps/web/package.json
|
|
374
|
+
{
|
|
375
|
+
"name": "@myapp/web",
|
|
376
|
+
"dependencies": {
|
|
377
|
+
"@myapp/ui": "workspace:*",
|
|
378
|
+
"@myapp/types": "workspace:*",
|
|
379
|
+
"@myapp/utils": "workspace:*"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
**Using File Protocol (npm/yarn)**
|
|
385
|
+
|
|
386
|
+
```json
|
|
387
|
+
{
|
|
388
|
+
"dependencies": {
|
|
389
|
+
"@myapp/ui": "file:../../packages/ui",
|
|
390
|
+
"@myapp/types": "file:../../packages/types"
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
```
|
|
394
|
+
|
|
395
|
+
### Dependency Management
|
|
396
|
+
|
|
397
|
+
**Root package.json**
|
|
398
|
+
|
|
399
|
+
```json
|
|
400
|
+
{
|
|
401
|
+
"name": "my-monorepo",
|
|
402
|
+
"private": true,
|
|
403
|
+
"workspaces": [
|
|
404
|
+
"apps/*",
|
|
405
|
+
"packages/*"
|
|
406
|
+
],
|
|
407
|
+
"devDependencies": {
|
|
408
|
+
"typescript": "^5.6.0",
|
|
409
|
+
"turbo": "^2.0.0",
|
|
410
|
+
"@types/node": "^20.0.0"
|
|
411
|
+
},
|
|
412
|
+
"scripts": {
|
|
413
|
+
"build": "turbo run build",
|
|
414
|
+
"dev": "turbo run dev",
|
|
415
|
+
"lint": "turbo run lint",
|
|
416
|
+
"test": "turbo run test",
|
|
417
|
+
"type-check": "turbo run type-check"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
### Version Synchronization
|
|
423
|
+
|
|
424
|
+
**Using syncpack**
|
|
425
|
+
|
|
426
|
+
```bash
|
|
427
|
+
# Install syncpack
|
|
428
|
+
npm install -D syncpack
|
|
429
|
+
|
|
430
|
+
# Check for version mismatches
|
|
431
|
+
npx syncpack list-mismatches
|
|
432
|
+
|
|
433
|
+
# Fix version mismatches
|
|
434
|
+
npx syncpack fix-mismatches
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
**syncpack.config.js**
|
|
438
|
+
|
|
439
|
+
```javascript
|
|
440
|
+
module.exports = {
|
|
441
|
+
source: ['package.json', 'apps/*/package.json', 'packages/*/package.json'],
|
|
442
|
+
versionGroups: [
|
|
443
|
+
{
|
|
444
|
+
label: 'Use workspace protocol for internal packages',
|
|
445
|
+
packages: ['**'],
|
|
446
|
+
dependencies: ['@myapp/**'],
|
|
447
|
+
dependencyTypes: ['prod', 'dev'],
|
|
448
|
+
pinVersion: 'workspace:*'
|
|
449
|
+
}
|
|
450
|
+
]
|
|
451
|
+
};
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
## Build Orchestration
|
|
457
|
+
|
|
458
|
+
### Turborepo Build Pipeline
|
|
459
|
+
|
|
460
|
+
```json
|
|
461
|
+
// turbo.json
|
|
462
|
+
{
|
|
463
|
+
"pipeline": {
|
|
464
|
+
"build": {
|
|
465
|
+
"dependsOn": ["^build"],
|
|
466
|
+
"outputs": ["dist/**", ".next/**"],
|
|
467
|
+
"env": ["NODE_ENV"]
|
|
468
|
+
},
|
|
469
|
+
"test": {
|
|
470
|
+
"dependsOn": ["build"],
|
|
471
|
+
"outputs": ["coverage/**"]
|
|
472
|
+
},
|
|
473
|
+
"lint": {},
|
|
474
|
+
"type-check": {
|
|
475
|
+
"dependsOn": ["^build"]
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
### Nx Task Pipeline
|
|
482
|
+
|
|
483
|
+
```json
|
|
484
|
+
// nx.json
|
|
485
|
+
{
|
|
486
|
+
"targetDefaults": {
|
|
487
|
+
"build": {
|
|
488
|
+
"dependsOn": ["^build"],
|
|
489
|
+
"inputs": ["production", "^production"],
|
|
490
|
+
"outputs": ["{projectRoot}/dist"],
|
|
491
|
+
"cache": true
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
### Parallel Execution
|
|
498
|
+
|
|
499
|
+
```bash
|
|
500
|
+
# Turborepo - automatic parallelization
|
|
501
|
+
turbo run build
|
|
502
|
+
|
|
503
|
+
# Nx - explicit parallelization
|
|
504
|
+
nx run-many --target=build --all --parallel=5
|
|
505
|
+
|
|
506
|
+
# Run only affected projects
|
|
507
|
+
nx affected:build --base=main
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
---
|
|
511
|
+
|
|
512
|
+
## Testing in Monorepos
|
|
513
|
+
|
|
514
|
+
### Shared Test Configuration
|
|
515
|
+
|
|
516
|
+
```typescript
|
|
517
|
+
// packages/config/vitest.config.ts
|
|
518
|
+
import { defineConfig } from 'vitest/config';
|
|
519
|
+
|
|
520
|
+
export default defineConfig({
|
|
521
|
+
test: {
|
|
522
|
+
globals: true,
|
|
523
|
+
environment: 'node',
|
|
524
|
+
coverage: {
|
|
525
|
+
provider: 'v8',
|
|
526
|
+
reporter: ['text', 'json', 'html'],
|
|
527
|
+
exclude: ['**/*.spec.ts', '**/*.test.ts', '**/dist/**']
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
### Package-Specific Tests
|
|
534
|
+
|
|
535
|
+
```typescript
|
|
536
|
+
// apps/web/vitest.config.ts
|
|
537
|
+
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
538
|
+
import baseConfig from '@myapp/config/vitest.config';
|
|
539
|
+
|
|
540
|
+
export default mergeConfig(
|
|
541
|
+
baseConfig,
|
|
542
|
+
defineConfig({
|
|
543
|
+
test: {
|
|
544
|
+
environment: 'jsdom',
|
|
545
|
+
setupFiles: ['./test/setup.ts']
|
|
546
|
+
}
|
|
547
|
+
})
|
|
548
|
+
);
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
### Running Tests
|
|
552
|
+
|
|
553
|
+
```bash
|
|
554
|
+
# Run all tests
|
|
555
|
+
turbo run test
|
|
556
|
+
|
|
557
|
+
# Run tests for affected packages
|
|
558
|
+
nx affected:test
|
|
559
|
+
|
|
560
|
+
# Run tests with coverage
|
|
561
|
+
turbo run test -- --coverage
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
---
|
|
565
|
+
|
|
566
|
+
## Best Practices
|
|
567
|
+
|
|
568
|
+
### 1. Use Consistent Naming
|
|
569
|
+
|
|
570
|
+
```
|
|
571
|
+
✅ Good:
|
|
572
|
+
@myapp/ui
|
|
573
|
+
@myapp/types
|
|
574
|
+
@myapp/utils
|
|
575
|
+
|
|
576
|
+
❌ Bad:
|
|
577
|
+
ui-components
|
|
578
|
+
shared-types
|
|
579
|
+
common-utils
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
### 2. Organize by Type and Scope
|
|
583
|
+
|
|
584
|
+
```
|
|
585
|
+
packages/
|
|
586
|
+
├── ui/ # Shared UI components
|
|
587
|
+
├── types/ # Shared TypeScript types
|
|
588
|
+
├── utils/ # Shared utilities
|
|
589
|
+
└── config/ # Shared configurations
|
|
590
|
+
|
|
591
|
+
apps/
|
|
592
|
+
├── web/ # Customer-facing web app
|
|
593
|
+
├── admin/ # Admin dashboard
|
|
594
|
+
└── api/ # Backend API
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
### 3. Use Path Aliases
|
|
598
|
+
|
|
599
|
+
```json
|
|
600
|
+
{
|
|
601
|
+
"compilerOptions": {
|
|
602
|
+
"paths": {
|
|
603
|
+
"@myapp/ui": ["../../packages/ui/src"],
|
|
604
|
+
"@myapp/types": ["../../packages/types/src"],
|
|
605
|
+
"@myapp/utils": ["../../packages/utils/src"]
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
### 4. Leverage Caching
|
|
612
|
+
|
|
613
|
+
```json
|
|
614
|
+
// turbo.json
|
|
615
|
+
{
|
|
616
|
+
"pipeline": {
|
|
617
|
+
"build": {
|
|
618
|
+
"outputs": ["dist/**"],
|
|
619
|
+
"cache": true
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
### 5. Use Changesets for Versioning
|
|
626
|
+
|
|
627
|
+
```bash
|
|
628
|
+
# Install changesets
|
|
629
|
+
npm install -D @changesets/cli
|
|
630
|
+
|
|
631
|
+
# Initialize
|
|
632
|
+
npx changeset init
|
|
633
|
+
|
|
634
|
+
# Create changeset
|
|
635
|
+
npx changeset
|
|
636
|
+
|
|
637
|
+
# Version packages
|
|
638
|
+
npx changeset version
|
|
639
|
+
|
|
640
|
+
# Publish
|
|
641
|
+
npx changeset publish
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
---
|
|
645
|
+
|
|
646
|
+
## Common Pitfalls
|
|
647
|
+
|
|
648
|
+
### ❌ Circular Dependencies
|
|
649
|
+
|
|
650
|
+
```typescript
|
|
651
|
+
// packages/ui/src/Button.tsx
|
|
652
|
+
import { formatDate } from '@myapp/utils';
|
|
653
|
+
|
|
654
|
+
// packages/utils/src/format.ts
|
|
655
|
+
import { Button } from '@myapp/ui'; // ❌ Circular dependency!
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
**Solution:** Extract shared code to a separate package.
|
|
659
|
+
|
|
660
|
+
### ❌ Missing Build Dependencies
|
|
661
|
+
|
|
662
|
+
```json
|
|
663
|
+
// ❌ Bad: Missing dependency
|
|
664
|
+
{
|
|
665
|
+
"pipeline": {
|
|
666
|
+
"test": {
|
|
667
|
+
"outputs": ["coverage/**"]
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// ✅ Good: Explicit dependency
|
|
673
|
+
{
|
|
674
|
+
"pipeline": {
|
|
675
|
+
"test": {
|
|
676
|
+
"dependsOn": ["build"],
|
|
677
|
+
"outputs": ["coverage/**"]
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
### ❌ Inconsistent TypeScript Versions
|
|
684
|
+
|
|
685
|
+
```bash
|
|
686
|
+
# Check for version mismatches
|
|
687
|
+
npx syncpack list-mismatches
|
|
688
|
+
|
|
689
|
+
# Fix mismatches
|
|
690
|
+
npx syncpack fix-mismatches
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
## Migration Guide
|
|
696
|
+
|
|
697
|
+
### From Single Package to Monorepo
|
|
698
|
+
|
|
699
|
+
1. **Create monorepo structure**
|
|
700
|
+
```bash
|
|
701
|
+
mkdir -p apps/web packages/ui packages/types
|
|
702
|
+
```
|
|
703
|
+
|
|
704
|
+
2. **Move existing code**
|
|
705
|
+
```bash
|
|
706
|
+
mv src apps/web/src
|
|
707
|
+
mv package.json apps/web/package.json
|
|
708
|
+
```
|
|
709
|
+
|
|
710
|
+
3. **Create root package.json**
|
|
711
|
+
```json
|
|
712
|
+
{
|
|
713
|
+
"private": true,
|
|
714
|
+
"workspaces": ["apps/*", "packages/*"]
|
|
715
|
+
}
|
|
716
|
+
```
|
|
717
|
+
|
|
718
|
+
4. **Install Turborepo**
|
|
719
|
+
```bash
|
|
720
|
+
npm install -D turbo
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
5. **Create turbo.json**
|
|
724
|
+
```json
|
|
725
|
+
{
|
|
726
|
+
"pipeline": {
|
|
727
|
+
"build": {
|
|
728
|
+
"dependsOn": ["^build"],
|
|
729
|
+
"outputs": ["dist/**"]
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
---
|
|
736
|
+
|
|
737
|
+
## References
|
|
738
|
+
|
|
739
|
+
- [Turborepo Documentation](https://turbo.build/repo/docs)
|
|
740
|
+
- [Nx Documentation](https://nx.dev)
|
|
741
|
+
- [pnpm Workspaces](https://pnpm.io/workspaces)
|
|
742
|
+
- [Changesets](https://github.com/changesets/changesets)
|
|
743
|
+
- [syncpack](https://github.com/JamieMason/syncpack)
|
|
744
|
+
|
|
745
|
+
|