Skip to content

Commit dfbff40

Browse files
committed
Merge remote-tracking branch 'rtw/migration-src' into migration-dest
2 parents 1be738d + c22f56a commit dfbff40

File tree

226 files changed

+19623
-0
lines changed

Some content is hidden

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

226 files changed

+19623
-0
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This is needed to publish GitHub Releases
2+
GITHUB_TOKEN=your_github_token

.github/workflows/build.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on:
2+
push:
3+
branches:
4+
- '*'
5+
pull_request:
6+
branches:
7+
- '*'
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v4
18+
name: Install pnpm
19+
with:
20+
run_install: false
21+
22+
- name: Install Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 24
26+
cache: pnpm
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Build packages
32+
run: pnpm build
33+
34+
- name: Run tests
35+
run: pnpm test

.github/workflows/publish.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on:
2+
push:
3+
tags:
4+
- '[a-z]+@[0-9]+.[0-9]+.[0-9]+'
5+
- '[a-z]+-[a-z]+@[0-9]+.[0-9]+.[0-9]+'
6+
- '[a-z]+-[a-z]+-[a-z]+@[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write # Required for publishing the GitHub release
14+
id-token: write # The OIDC ID token is used for authentication with JSR
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- uses: pnpm/action-setup@v4
21+
name: Install pnpm
22+
with:
23+
run_install: false
24+
25+
- name: Install Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 24
29+
registry-url: https://registry.npmjs.org
30+
cache: pnpm
31+
32+
- name: Install dependencies
33+
run: pnpm install
34+
35+
- name: Build packages
36+
run: pnpm build
37+
38+
- name: Publish
39+
run: pnpm publish-release-ci ${{ github.ref_name }}
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/dist/
2+
**/node_modules/
3+
4+
.claude/
5+
.env

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
printWidth: 100
2+
semi: true
3+
singleQuote: true
4+
useTabs: false

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"deno.enablePaths": ["./packages/multipart-parser/examples/deno"],
3+
"nodejs-testing.extensions": [
4+
{
5+
"extensions": ["ts"],
6+
"parameters": ["--disable-warning=ExperimentalWarning"]
7+
}
8+
],
9+
"typescript.tsdk": "./node_modules/typescript/lib"
10+
}

.vscode/task.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "0.1.0",
3+
"command": "./node_modules/.bin/tsc",
4+
"args": ["-v"],
5+
"echoCommand": true
6+
}

CLAUDE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Intro
2+
3+
Remix is a web framework.
4+
5+
## Development
6+
7+
Development uses Node.js 24. All tests should run without requiring a build first.
8+
9+
```sh
10+
# Run the build
11+
$ pnpm run build
12+
# Build a specific package
13+
$ cd packages/headers && pnpm run build
14+
15+
# Run the tests
16+
$ pnpm test
17+
# Run the tests for a specific package
18+
$ cd packages/headers && pnpm test
19+
```

CONTRIBUTING.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Welcome to `remix-the-web`! We're excited to have you contribute.
2+
3+
This guide will help you get started.
4+
5+
## Setting Up Your Environment
6+
7+
To get started, you'll need `pnpm`. If you don't have it yet, you can [install `pnpm` here](https://pnpm.io/installation).
8+
9+
If you're using [VS Code](https://code.visualstudio.com/), we recommend installing the [`node:test runner` extension](https://marketplace.visualstudio.com/items?itemName=connor4312.nodejs-testing) for a smooth testing experience.
10+
11+
Once that's set up, run `pnpm install` to get all the project dependencies. You can then run `pnpm build` to build the project and `pnpm test` to run all tests.
12+
13+
## Making Changes
14+
15+
All our packages live in the [`packages` directory](https://github.com/mjackson/remix-the-web/tree/main/packages). At a minimum, each package typically includes:
16+
17+
- `CHANGELOG.md`: A log of what's changed.
18+
- `package.json`: Package metadata and dependencies.
19+
- `README.md`: Information about the package.
20+
21+
When you make changes to a package, please make sure you add a few relevant tests and run the whole test suite to make sure everything still works. Then, add a human-friendly description of your change in the changelog and [make a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). We will take a look at it as soon as we can.
22+
23+
## Releases
24+
25+
Cutting releases is a 2-step process:
26+
27+
- Update versions in package.json, jsr.json (if applicable), and the changelog and create a git tag
28+
- Publish new packages to npm/JSR and create a GitHub Release
29+
30+
This repo includes a script for each step.
31+
32+
To update versions and create a tag, use `pnpm run tag-release <packageName> <releaseType>`. For example, to create a `minor` release of the `headers` package, run:
33+
34+
```sh
35+
pnpm run tag-release headers minor
36+
```
37+
38+
To publish the release you just tagged, use `pnpm run publish-release <tag>`. For example, if the tag that was created in the previous step was `[email protected]`, you'd run `pnpm run publish-release [email protected]`.
39+
40+
The publish step runs in GitHub Actions if you just push the tag to GitHub:
41+
42+
```sh
43+
git push origin main --tags
44+
```

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Michael Jackson
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)