Skip to content

Commit 8e877ab

Browse files
author
Rajat
committed
Merge branch 'main' of github.com:codelitdev/courselit into agents
2 parents d16feb1 + 9ad49bb commit 8e877ab

File tree

443 files changed

+23490
-14529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

443 files changed

+23490
-14529
lines changed

.changeset/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"updateInternalDependencies": "patch",
1010
"ignore": [
1111
"@courselit/web",
12-
"@courselit/state-management",
1312
"@courselit/utils",
1413
"@courselit/queue",
1514
"@courselit/icons",

.cursor/rules/basics.mdc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
alwaysApply: true
3+
---
4+
5+
- Use `pnpm` as package manager.
6+
- The project is structured as a monorepo i.e. a pnpm workspace. The apps are in `apps` folder and re-usable packages are in `packages`.
7+
- Command for running script in a workspace: `pnpm --filter <workspace> <command>`.
8+
- Command for running tests: `pnpm test`.
9+
- The project uses shadcn for building UI so stick to its conventions and design.
10+
- In `apps/web` workspace, create a string first in `apps/web/ui-config/strings.ts` and then import it in the `.tsx` files, instead of using inline strings.
11+
- When working with forms, always use refs to keep the current state of the form's data and use it to enable/disable the form submit button.

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ coverage
1414
# Text editors configurations
1515
.vscode
1616
.rgignore
17-
.cursor
1817

1918
# Env file
2019
.env*.local
@@ -39,4 +38,7 @@ report*.json
3938
# Dev tools files
4039
.eslintcache
4140

42-
.npmrc
41+
.npmrc
42+
43+
# Jest files
44+
globalConfig.json

AGENTS.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Development Tips
2+
3+
- Use `pnpm` as package manager.
4+
- The project is structured as a monorepo i.e. a pnpm workspace. The apps are in `apps` folder and re-usable packages are in `packages`.
5+
- Command for running script in a workspace: `pnpm --filter <workspace> <command>`.
6+
- Command for running tests: `pnpm test`.
7+
- The project uses shadcn for building UI so stick to its conventions and design.
8+
- In `apps/web` workspace, create a string first in `apps/web/config/strings.ts` and then import it in the `.tsx` files, instead of using inline strings.
9+
- When working with forms, always use refs to keep the current state of the form's data and use it to enable/disable the form submit button.
10+
- Check the name field inside each package's package.json to confirm the right name—skip the top-level one.
11+
12+
## Testing instructions
13+
14+
- Always add or update test when introducing changes to `apps/web/graphql` folder, even if nobody asked.
15+
- Run `pnpm test` to run the tests.
16+
- Fix any test or type errors until the whole suite is green.
17+
18+
## PR instructions
19+
20+
- Always run `pnpm lint` and `pnpm prettier` before committing.
89.8 KB
Loading
140 KB
Loading
93 KB
Loading
111 KB
Loading
82.6 KB
Loading

0 commit comments

Comments
 (0)