Skip to content

Commit 19ab636

Browse files
committed
initial setup
1 parent 4436ea1 commit 19ab636

File tree

13 files changed

+1609
-0
lines changed

13 files changed

+1609
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @itsjavi
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: 'Check code quality'
2+
description: 'Checks code quality: prettier, linters, build and test'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- shell: bash
7+
name: Lint
8+
run: pnpm lint
9+
10+
- shell: bash
11+
name: Tests
12+
run: pnpm test
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Setup project'
2+
description: 'Sets up project and its dependencies'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- uses: pnpm/action-setup@v4
7+
with:
8+
version: ${{ env.PNPM_VERSION }}
9+
run_install: false
10+
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: ${{ env.NODE_VERSION }}
14+
registry-url: https://npm.pkg.github.com
15+
cache: 'pnpm'
16+
cache-dependency-path: './pnpm-lock.yaml'
17+
18+
- shell: bash
19+
run: |
20+
pnpm env use --global 22
21+
pnpm install -g bun@latest
22+
pnpm install --frozen-lockfile
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Check code quality
2+
3+
env:
4+
APP_CI: true
5+
APP_ENV: development
6+
NODE_VERSION: 22.14.0
7+
PNPM_VERSION: 10.7.0
8+
9+
on:
10+
workflow_dispatch:
11+
push:
12+
branches:
13+
- main
14+
15+
concurrency:
16+
group: qualityCheck-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
qualityCheck:
21+
name: Check code quality
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: 'Setup project'
27+
uses: ./.github/actions/setup-project
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: 'Check code quality'
32+
uses: ./.github/actions/quality-check
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: 'Build project'
37+
run: pnpm build

.gitignore

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# frameworks and tools
7+
coverage/
8+
.turbo/
9+
.next/
10+
.vercel/
11+
.react-router/
12+
out/
13+
cdk.out/
14+
.wrangler/
15+
16+
# production
17+
build/
18+
dist/
19+
20+
# misc
21+
.DS_Store
22+
*.pem
23+
24+
# debug
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
29+
# env files (can opt-in for commiting if needed)
30+
.dev.vars
31+
.env
32+
.env*
33+
!.env.example
34+
35+
# typescript
36+
*.tsbuildinfo
37+
next-env.d.ts
38+
39+
# artifacts
40+
*~lock~
41+
*.zip
42+
*.tar.gz
43+
*.gz
44+
45+
# development
46+
.ignore/
47+
.local/
48+
.dev/
49+
*.local.md
50+
*.dev.md

.prettierignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Ignore:
2+
build/
3+
dist/
4+
.next/
5+
.turbo/
6+
node_modules/
7+
coverage/
8+
.vercel/
9+
.react-router/
10+
11+
package.json
12+
pnpm-*.yaml
13+
*.min.json
14+
15+
.ignore/
16+
.local/
17+
.dev/
18+
19+
public/
20+
drizzle/

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"semi": false,
3+
"printWidth": 120,
4+
"trailingComma": "all",
5+
"tabWidth": 2,
6+
"proseWrap": "always",
7+
"singleQuote": true,
8+
"arrowParens": "always",
9+
"jsxSingleQuote": false,
10+
"quoteProps": "as-needed"
11+
}

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Template Monorepo Library
2+
3+
This is a template for a monorepo library.
4+
5+
## Requirements
6+
7+
- Node.js (runtime)
8+
- Bun (tests, scripts)
9+
- pnpm (package manager)
10+
11+
## Features
12+
13+
- TODO
14+
15+
## Installation
16+
17+
TODO
18+
19+
```bash
20+
pnpm add -D TODO
21+
```
22+
23+
## Usage
24+
25+
TODO
26+
27+
## Contributing
28+
29+
TODO
30+
31+
## License
32+
33+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "0.1.0",
3+
"private": true,
4+
"type": "module",
5+
"scripts": {
6+
"build": "echo 'TODO'",
7+
"dev": "echo 'TODO'",
8+
"format": "bun run --bun prettier --write README.md .github/ ./packages && bun run format:pkg",
9+
"format:lint": "bun run --bun prettier --check README.md .github/ ./packages",
10+
"format:pkg": "sort-package-json package.json packages/*/package.json",
11+
"lint": "bun run --run typecheck && bun run --run format:lint && bun run lint:circular-deps",
12+
"lint:circular-deps": "bun run --bun madge --circular --extensions ts,tsx packages/",
13+
"prepare": "bun run format:pkg",
14+
"test": "echo 'TODO: bun test packages/'",
15+
"typecheck": "echo 'TODO: bun run --bun tsc'",
16+
"update-deps": "pnpm -r up --latest --save",
17+
"postupdate-deps": "pnpm install && echo 'Installed dependencies again to apply overrides.'"
18+
},
19+
"devDependencies": {
20+
"madge": "^8.0.0",
21+
"prettier": "^3.5.3",
22+
"sort-package-json": "^3.0.0",
23+
"typescript": "^5.8.2"
24+
},
25+
"packageManager": "pnpm@10.7.0",
26+
"engines": {
27+
"node": ">=22.11.0"
28+
}
29+
}

packages/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)