Skip to content

Commit f1687e2

Browse files
author
Rajat
committed
Merge branch 'main' of github.com:codelitdev/courselit into feature-email-templates-2
2 parents f5022a8 + 3ebbf57 commit f1687e2

1,002 files changed

Lines changed: 66897 additions & 23883 deletions

File tree

Some content is hidden

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

.changeset/config.json

Lines changed: 4 additions & 2 deletions
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",
@@ -21,6 +20,9 @@
2120
"@courselit/common-logic",
2221
"@courselit/page-primitives",
2322
"@courselit/common-models",
24-
"@courselit/docs"
23+
"@courselit/docs",
24+
"@courselit/orm-models",
25+
"@courselit/page-models",
26+
"@courselit/scripts"
2527
]
2628
}

.codex

Whitespace-only changes.

.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.

.dockerignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Git
2+
.git
3+
.gitignore
4+
5+
# Dependencies
6+
node_modules
7+
**/node_modules
8+
9+
# Build outputs
10+
.next
11+
**/dist
12+
build
13+
out
14+
15+
# Local env files
16+
.env
17+
.env.local
18+
.env.*.local
19+
20+
# IDEs and editors
21+
.vscode
22+
.idea
23+
.cursor
24+
*.swp
25+
*.swo
26+
27+
# Project specific
28+
.eslintcache
29+
.npmrc
30+
AGENTS.md
31+
docs
32+
deployment
33+
services/app/Dockerfile
34+
35+
# OS files
36+
.DS_Store
37+
Thumbs.db

.eslintignore

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

.github/workflows/code-quality.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Code Quality
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
tags-ignore:
7+
- '*'
38

49
jobs:
510
lint:
@@ -8,7 +13,7 @@ jobs:
813
- uses: actions/checkout@v2
914
- uses: actions/setup-node@v1
1015
with:
11-
node-version: '18.x'
16+
node-version: '24.x'
1217
- uses: pnpm/action-setup@v2
1318
with:
1419
version: 8

.github/workflows/publish-docker-images.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish NPM Packages
1+
name: Publish Docker images
22

33
on:
44
push:

.github/workflows/publish-packages.yaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,21 @@ env:
1515
jobs:
1616
publish-packages:
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
id-token: write
21+
pull-requests: write
1822
steps:
1923
- name: checkout
20-
uses: actions/checkout@v1
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
2127

2228
- name: Configure CI Git User
2329
run: |
24-
git config --global user.name 'Rajat Saxena'
25-
git config --global user.email 'hi@sub.rajatsaxena.dev'
26-
git remote set-url origin https://$GITHUB_ACTOR:$GITHUB_PAT@github.com/codelitdev/courselit
30+
git config --global user.name 'CodeLit'
31+
git config --global user.email 'hi@codelit.dev'
32+
git remote set-url origin https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}
2733
env:
2834
GITHUB_PAT: ${{ secrets.PAT }}
2935

@@ -33,20 +39,18 @@ jobs:
3339
git pull origin ${{ github.ref_name }}
3440
3541
- name: Setup pnpm
36-
uses: pnpm/action-setup@v2
42+
uses: pnpm/action-setup@v4
43+
44+
- name: Setup Node
45+
uses: actions/setup-node@v4
3746
with:
38-
version: 8
47+
node-version: 24
48+
cache: pnpm
49+
registry-url: https://registry.npmjs.org
3950

4051
- name: Install Packages
4152
run: pnpm install
4253

43-
- name: Authenticate with Registry
44-
run: |
45-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
46-
pnpm whoami
47-
env:
48-
NPM_TOKEN: ${{ secrets.NPM }}
49-
5054
- name: Create and publish versions
5155
id: changesets
5256
uses: changesets/action@v1
@@ -56,7 +60,6 @@ jobs:
5660
publish: pnpm ci:publish
5761
env:
5862
GITHUB_TOKEN: ${{ secrets.PAT }}
59-
NPM_TOKEN: ${{ secrets.NPM }}
6063

6164
- name: Echo changeset output
62-
run: echo "${{ steps.changesets.outputs.hasChangesets }}"
65+
run: echo "${{ steps.changesets.outputs.hasChangesets }}"

.github/workflows/test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Testing
2-
on: [push]
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
tags-ignore:
7+
- '*'
38

49
jobs:
510
test:

.gitignore

Lines changed: 7 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,10 @@ report*.json
3938
# Dev tools files
4039
.eslintcache
4140

42-
.npmrc
41+
.npmrc
42+
43+
# Jest files
44+
globalConfig.json
45+
46+
# CourseLit files
47+
domains_to_delete.txt

0 commit comments

Comments
 (0)