Skip to content

Commit a41cbd1

Browse files
committed
feat: Set up t-req monorepo with @t-req/core and publishing infrastructure
- Remove Turborepo starter template (app-a, app-b, pkg-a, pkg-b, tooling-config) - Establish t-req project structure with @t-req/core package - Add HTTP request parsing, execution, and testing library - Full TypeScript support with multiple entry points - Cookie management, variable interpolation, config loading - Set up Astro/Starlight documentation site (apps/webdocs) - Add project documentation (README, CONTRIBUTING.md, CODE_OF_CONDUCT.md) - Configure CI/CD pipeline - GitHub Actions for continuous integration - CodeQL for security scanning - Changesets for automated versioning and npm releases - Dependabot for dependency updates - Set up development tooling - Biome for linting and formatting - Husky for git hooks - Configure publishing infrastructure - Enable npm provenance for supply chain security - Configure public access for @t-req scope
1 parent 381453c commit a41cbd1

File tree

118 files changed

+9456
-133
lines changed

Some content is hidden

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

118 files changed

+9456
-133
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Environment (please complete the following information):**
27+
- OS: [e.g. macOS, Windows]
28+
- Bun Version [e.g. 1.0.0]
29+
- Library Version [e.g. 0.1.0]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Summary
2+
<!-- Provide a brief summary of the changes and the motivation behind them. -->
3+
4+
## Type of Change
5+
<!-- Please check the options that are relevant. -->
6+
- [ ] Bug fix (non-breaking change which fixes an issue)
7+
- [ ] New feature (non-breaking change which adds functionality)
8+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
9+
- [ ] Documentation update
10+
- [ ] Refactoring
11+
- [ ] Chore (dependency update, build script changes, etc.)
12+
13+
## How Has This Been Tested?
14+
<!-- Please describe the tests that you ran to verify your changes. -->
15+
- [ ] Unit tests
16+
- [ ] E2E tests
17+
- [ ] Manual testing (please describe)
18+
19+
## Checklist
20+
- [ ] I have followed the [contributing guidelines](CONTRIBUTING.md)
21+
- [ ] I have performed a self-review of my own code
22+
- [ ] I have added tests that prove my fix is effective or that my feature works
23+
- [ ] I have updated the documentation accordingly
24+
- [ ] My changes generate no new warnings

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
groups:
8+
development-dependencies:
9+
dependency-type: "development"
10+
update-types:
11+
- "minor"
12+
- "patch"
13+
production-dependencies:
14+
dependency-type: "production"
15+
update-types:
16+
- "minor"
17+
- "patch"
18+
19+
- package-ecosystem: "github-actions"
20+
directory: "/"
21+
schedule:
22+
interval: "weekly"
23+
groups:
24+
actions:
25+
patterns:
26+
- "*"

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: oven-sh/setup-bun@v1
15+
with:
16+
bun-version: latest
17+
18+
- name: Install dependencies
19+
run: bun install --frozen-lockfile
20+
21+
- name: Lint
22+
run: bun run lint
23+
24+
- name: Type check
25+
run: bun run check-types
26+
27+
- name: Build
28+
run: bun run build
29+
30+
- name: Run unit tests
31+
run: bun run test:unit
32+
33+
# E2E tests depend on external network/services and can be flaky.
34+
# Keep signal without blocking contributors.
35+
- name: Run E2E tests
36+
continue-on-error: true
37+
run: bun run test:e2e

.github/workflows/codeql.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
- cron: "0 6 * * 1" # Weekly on Monday at 6am UTC
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
language: [javascript-typescript]
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Initialize CodeQL
30+
uses: github/codeql-action/init@v3
31+
with:
32+
languages: ${{ matrix.language }}
33+
34+
- name: Autobuild
35+
uses: github/codeql-action/autobuild@v3
36+
37+
- name: Perform CodeQL Analysis
38+
uses: github/codeql-action/analyze@v3
39+
with:
40+
category: "/language:${{ matrix.language }}"

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
id-token: write
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Bun
23+
uses: oven-sh/setup-bun@v1
24+
with:
25+
bun-version: latest
26+
27+
- name: Install dependencies
28+
run: bun install --frozen-lockfile
29+
30+
- name: Create Release Pull Request or Publish
31+
id: changesets
32+
uses: changesets/action@v1
33+
with:
34+
version: bun run version
35+
publish: bun run release
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
31
# Dependencies
42
node_modules
53
.pnp
@@ -8,16 +6,54 @@ node_modules
86
# Turbo
97
.turbo
108

11-
129
# Build Outputs
13-
output-file.txt
14-
a-different-file.txt
1510
dist
11+
out
12+
*.tgz
13+
14+
# Code coverage
15+
coverage
16+
*.lcov
1617

17-
# Debug
18+
# Logs
19+
logs
20+
*.log
1821
npm-debug.log*
1922
yarn-debug.log*
2023
yarn-error.log*
24+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
25+
26+
# dotenv environment variable files
27+
.env
28+
.env.development.local
29+
.env.test.local
30+
.env.production.local
31+
.env.local
32+
33+
# Caches
34+
.eslintcache
35+
.cache
36+
*.tsbuildinfo
37+
38+
# IntelliJ based IDEs
39+
.idea
2140

22-
# Misc
41+
# Finder (MacOS) folder config
2342
.DS_Store
43+
44+
# Bun specific
45+
*.bun-build
46+
47+
# Temporary directories
48+
temp
49+
tmp
50+
51+
# Git worktrees
52+
.worktrees
53+
54+
# VS Code (keep extensions.json, exclude personal settings)
55+
.vscode/settings.json
56+
.vscode/mcp.json
57+
58+
# Editor backup files
59+
*~

0 commit comments

Comments
 (0)