Skip to content

Commit 33ec0ad

Browse files
authored
Merge pull request #1 from focusedbrain/feat/monorepo-start
Feat/monorepo start
2 parents 14ccfe7 + cdb0037 commit 33ec0ad

8 files changed

Lines changed: 902 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
working-directory: code
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v3
14+
with:
15+
version: 9
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: 'pnpm'
20+
cache-dependency-path: 'code/pnpm-lock.yaml'
21+
- run: pnpm install
22+
- run: pnpm test

code/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@repo/root",
3+
"private": true,
4+
"devDependencies": {
5+
"typescript": "^5.5.0",
6+
"vitest": "^2.0.0"
7+
},
8+
"scripts": {
9+
"test": "vitest --passWithNoTests"
10+
}
11+
}

code/packages/hello/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "@repo/hello",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"test": "vitest --run"
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { describe, it, expect } from 'vitest';
2+
3+
describe('dummy', () => {
4+
it('works', () => {
5+
expect(1 + 1).toBe(2);
6+
});
7+
});

code/packages/hello/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": "../../tsconfig.base.json", "include": ["src"] }

0 commit comments

Comments
 (0)