RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/magdazelena/primer

Cursor rule

.cursor/rules/monorepo-management.mdc
Cursor rules

Quality

79/100

Scores the file, not the repository.

Length

258 words

14 headings · 0 code blocks

Repository

3

— · pushed 158 days ago

Last changed

3 days ago

First indexed 3 days ago.
magdazelena/primer/.cursor/rules/monorepo-management.mdcRawGitHub
1---
2alwaysApply: true
3---
4# Monorepo Management Guide
5 
6## Workspace Structure
7 
8Primer uses npm workspaces defined in [package.json](mdc:package.json):
9 
10- **Apps**: `apps/*` - Main applications (backend, frontend)
11- **Packages**: `packages/*` - Shared packages and plugins
12- **CLI**: `cli` - Command-line tools
13 
14## Build System
15 
16**Turborepo** orchestrates builds across workspaces:
17 
18- **Configuration**: [turbo.json](mdc:turbo.json)
19- **Caching**: Build cache for faster subsequent builds
20- **Parallel Execution**: Run tasks across workspaces simultaneously
21 
22## Package Management
23 
24### Shared Dependencies
25 
26- **ESLint Config**: [packages/eslint-config-primer/](mdc:packages/eslint-config-primer/)
27 - Base config for all packages
28 - Client-specific config for frontend
29 - Server-specific config for backend
30 
31### Plugin Packages
32 
33- **Status Manager**: [packages/strapi-plugin-status-manager/](mdc:packages/strapi-plugin-status-manager/)
34- **Product Actions**: [packages/strapi-plugin-product-actions/](mdc:packages/strapi-plugin-product-actions/)
35 
36## Development Commands
37 
38### Root Level Commands
39 
40- `yarn dev` - Start all services
41- `yarn backend` - Start only backend
42- `yarn frontend` - Start only frontend
43- `yarn test` - Run all tests
44- `yarn lint` - Lint all packages
45- `yarn clean` - Clean all build artifacts
46 
47### Workspace-Specific Commands
48 
49Each workspace has its own scripts defined in their `package.json`.
50 
51## Dependency Management
52 
53### Scripts
54 
55- **Dependency Management**: [scripts/upgrade-deps.js](mdc:scripts/upgrade-deps.js)
56 
57### Version Management
58 
59- Use `template-version.json` for version tracking
60- Shared dependencies managed at root level
61- Workspace-specific dependencies in individual packages
62 
63## Build Artifacts
64 
65- **Backend**: `apps/backend/dist/` - Compiled Strapi code
66- **Frontend**: `apps/frontend/.next/` - Next.js build
67- **Plugins**: `packages/*/dist/` - Compiled plugin code
68- **Coverage**: `coverage/` - Test coverage reports
69 
70## Best Practices
71 
72- Keep shared dependencies at root level
73- Use workspace references for internal packages
74- Maintain consistent versioning across packages
75- Use Turborepo for efficient builds
76- Follow consistent naming conventions

Commands it names

  • yarn dev
  • yarn backend
  • yarn frontend
  • yarn test
  • yarn lint
  • yarn clean

Sections

  • Monorepo Management Guide
  • Workspace Structure
  • Build System
  • Package Management
  • Shared Dependencies
  • Plugin Packages
  • Development Commands
  • Root Level Commands
  • Workspace-Specific Commands
  • Dependency Management
  • Scripts
  • Version Management
  • Build Artifacts
  • Best Practices

What it covers

buildtestlint-formatcode-stylearchitecturetesting-strategydependenciesdeploymentmonorepo

Stack — with the evidence

node

(1.00)

nextjs

(1.00)

turborepo

(1.00)

monorepo

(1.00)

react

(0.70)

tailwind

(0.70)

jest

(0.70)

cypress

(0.70)

eslint

(0.70)

typescript

(0.60)

javascript

(0.60)

github-actions

(0.60)

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
magdazelena
Language
—
License
—
Archived
no

All configs in this repo

Also in magdazelena/primer

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
magdazelena/primer.cursor/rules/agents.mdc · 3Cursor rulesnodenextjs+10no sections48/1003 days ago
magdazelena/primer.cursor/rules/code-quality.mdc · 3Cursor rulesnodenextjs+10lint-formatstyletypesperformance+273/1003 days ago
magdazelena/primer.cursor/rules/memory.mdc · 3Cursor rulesnodenextjs+10styleperformancedo-notagent-behaviour61/1003 days ago
magdazelena/primer.cursor/rules/nextjs-frontend.mdc · 3Cursor rulesnodenextjs+10teststylearchapi+172/1003 days ago
magdazelena/primer.cursor/rules/project-structure.mdc · 3Cursor rulesnodenextjs+10testlint-formatarchmonorepo71/1003 days ago
magdazelena/primer.cursor/rules/strapi-backend.mdc · 3Cursor rulesnodenextjs+10stylearchtypesdatabase68/1003 days ago
magdazelena/primer.cursor/rules/strapi-plugin-development.mdc · 3Cursor rulesnodenextjs+10buildtestarchagent-behaviour85/1003 days ago
magdazelena/primer.cursor/rules/testing-conventions.mdc · 3Cursor rulesnodenextjs+10teststyletesting-strategyapi+173/1003 days ago
magdazelena/primer.cursor/rules/typescript-conventions.mdc · 3Cursor rulesnodenextjs+10lint-formatstyletypesdo-not65/1003 days ago
Diff against .cursor/rules/agents.mdc Diff against .cursor/rules/code-quality.mdc Diff against .cursor/rules/memory.mdc Diff against .cursor/rules/nextjs-frontend.mdc Diff against .cursor/rules/project-structure.mdc Diff against .cursor/rules/strapi-backend.mdc Diff against .cursor/rules/strapi-plugin-development.mdc Diff against .cursor/rules/testing-conventions.mdc Diff against .cursor/rules/typescript-conventions.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack