Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.{js,ts,mjs,mts}]
indent_style = space
indent_size = 2

[{package.json,*.yml,*.yaml,*.json}]
indent_style = space
indent_size = 2
18 changes: 0 additions & 18 deletions .env.example

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/autofix.yml

This file was deleted.

56 changes: 13 additions & 43 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,62 +12,32 @@ on:
push:
branches:
- main
paths-ignore:
- 'docs/**'

pull_request:
branches:
- main
paths-ignore:
- 'docs/**'

jobs:
build-test:
runs-on: ${{ matrix.os }}

permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write

strategy:
matrix:
os: [ubuntu-latest]

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/checkout@v5
- run: corepack enable
- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version: lts/*
node-version: latest
cache: pnpm

- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile

- name: 👀 Lint
run: pnpm lint

- name: 👀 Typecheck
run: pnpm type-check

- name: 🔍 Typecheck
run: pnpm typecheck
- name: 🧪 Test
run: pnpm test
- name: 🚀 Build
run: pnpm build

- name: 🐳 Setup MailCrab
run: |
docker pull marlonb/mailcrab
docker run -d --name unemail-mailcrab -p 1025:1025 -p 1080:1080 marlonb/mailcrab

- name: 🧪 Test with coverage
run: pnpm test:coverage
env:
MAILCRAB_HOST: localhost
MAILCRAB_SMTP_PORT: 1025
MAILCRAB_UI_PORT: 1080

- name: 📝 Upload coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2
- name: 📐 Bundle size budget
run: pnpm bundle-budget
- name: 🔍 Are The Types Wrong (ATTW)
run: pnpm attw
25 changes: 0 additions & 25 deletions .github/workflows/publish-commit.yml

This file was deleted.

51 changes: 46 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,65 @@ name: Release

permissions:
contents: write
id-token: write

on:
push:
tags:
- 'v*'
- "v*"

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- run: corepack enable

- uses: actions/setup-node@v6
with:
node-version: lts/*
registry-url: "https://registry.npmjs.org"
cache: pnpm

- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile

- name: 👀 Lint
run: pnpm lint

- name: 🔍 Typecheck
run: pnpm typecheck

- name: 🧪 Test
run: pnpm test

- name: 🚀 Build
run: pnpm build

- run: npx changelogithub
- name: 📐 Bundle size budget
run: pnpm bundle-budget

- name: 🔍 Are The Types Wrong (ATTW)
run: pnpm attw

- name: 📦 Publish to npm
run: pnpm publish --provenance --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 🦕 Publish to JSR (OIDC)
run: npx jsr publish

- name: 📝 Generate changelog
run: pnpm dlx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 📊 Summary
run: |
echo "## Release Complete 🚀" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Version:** ${{ github.ref_name }}" >> $GITHUB_STEP_SUMMARY
16 changes: 5 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
.vscode
node_modules
*.log
.DS_Store
coverage
dist
tmp
/drivers
/test.*
__*
.vercel
.netlify
test/fs-storage/**
*.tgz
.DS_Store
playground/dist
playground/.vite
.env
.wrangler
coverage
5 changes: 5 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "https://unpkg.com/oxfmt/configuration_schema.json",
"semi": false,
"ignorePatterns": ["CHANGELOG.md", "playground/**"]
}
6 changes: 6 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://unpkg.com/oxlint/configuration_schema.json",
"plugins": ["unicorn", "typescript", "oxc"],
"ignorePatterns": ["playground/**"],
"rules": {}
}
Loading