Skip to content

Commit 42d4c50

Browse files
authored
Project cleanup (#150)
* Project cleanup * Removed external libs /cut 200kb off of bundle size * Restructured styling, fixed mobile responsiveness, removed unused deps, exports, styles and code * Added lefthook, validation workflows on CI, swapper eslint for biome * test fix * test fix * test fix * test fix * test fix * Updated rdt version, added server timings feature, fixed cache headers logging, updated docs page, removed tech debt * removed remix forge integration * Revert "removed remix forge integration" This reverts commit 32fe7de. * fix * Bug fixes for route boundaries, doc updates, various improvements to architecture for css * Final fixes before reelase
1 parent e08787b commit 42d4c50

File tree

763 files changed

+48873
-38445
lines changed

Some content is hidden

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

763 files changed

+48873
-38445
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 🚀 pkg-pr-new
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
12+
- run: corepack enable
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 20
16+
cache: "npm"
17+
18+
- name: Install dependencies
19+
run: npm install
20+
21+
- name: Build
22+
run: npm run build
23+
24+
- run: npx pkg-pr-new publish

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Publish Package to npmjs
22
on:
33
release:
44
types: [published]
5+
workflow_dispatch:
56
jobs:
67
npm-publish:
78
runs-on: ubuntu-latest

.github/workflows/validate.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: 🚀 Validation Pipeline
2+
concurrency:
3+
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
permissions:
11+
actions: write
12+
contents: read
13+
# Required to put a comment into the pull-request
14+
pull-requests: write
15+
jobs:
16+
lint:
17+
name: ⬣ Biome lint
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: ⬇️ Checkout repo
21+
uses: actions/checkout@v4
22+
- name: Setup Biome
23+
uses: biomejs/setup-biome@v2
24+
- name: Run Biome
25+
run: biome ci .
26+
27+
typecheck:
28+
name: 🔎 Type check
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: 🛑 Cancel Previous Runs
32+
uses: styfle/cancel-workflow-action@0.12.1
33+
- name: ⬇️ Checkout repo
34+
uses: actions/checkout@v4
35+
- name: ⎔ Setup node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
- name: 📥 Download deps
40+
uses: bahmutov/npm-install@v1
41+
with:
42+
useLockFile: false
43+
- name: 🔎 Type check
44+
run: npm run typecheck
45+
46+
vitest:
47+
name: ⚡ Unit Tests
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: 🛑 Cancel Previous Runs
51+
uses: styfle/cancel-workflow-action@0.12.1
52+
- name: ⬇️ Checkout repo
53+
uses: actions/checkout@v4
54+
- name: ⎔ Setup node
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: 20
58+
- name: 📥 Download deps
59+
uses: bahmutov/npm-install@v1
60+
with:
61+
useLockFile: false
62+
- name: Install dotenv cli
63+
run: npm install -g dotenv-cli
64+
- name: ⚡ Run vitest
65+
run: npm run test:cov
66+
- name: "Report Coverage"
67+
# Only works if you set `reportOnFailure: true` in your vite config as specified above
68+
if: always()
69+
uses: davelosert/vitest-coverage-report-action@v2

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,5 @@ dist
134134
.history
135135

136136
# IDE
137-
.idea
137+
.idea
138+
.tsup

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-push

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"biome.enabled": true,
3+
"editor.defaultFormatter": "biomejs.biome",
4+
"editor.formatOnSave": true,
5+
"//editor.formatOnType": true,
6+
"javascript.format.enable": false,
7+
"javascript.suggest.autoImports": true,
8+
"javascript.suggest.paths": true,
9+
"typescript.format.enable": false,
10+
"typescript.suggest.paths": true,
11+
"typescript.suggest.autoImports": true,
12+
"editor.renderWhitespace": "all",
13+
"editor.rulers": [120, 160],
14+
"editor.codeActionsOnSave": {
15+
"source.fixAll": "always",
16+
"source.organizeImports": "never",
17+
"source.organizeImports.biome": "always",
18+
"quickfix.biome": "always"
19+
},
20+
"editor.insertSpaces": false,
21+
"editor.detectIndentation": true,
22+
"editor.trimAutoWhitespace": true,
23+
"//files.autoSave": "afterDelay",
24+
"//files.autoSaveDelay": 250,
25+
"files.trimTrailingWhitespace": true,
26+
"files.trimTrailingWhitespaceInRegexAndStrings": true,
27+
"files.trimFinalNewlines": true,
28+
"[yaml]": {
29+
"editor.defaultFormatter": "redhat.vscode-yaml"
30+
},
31+
"[toml]": {
32+
"editor.defaultFormatter": "tamasfe.even-better-toml"
33+
},
34+
"explorer.fileNesting.patterns": {
35+
"*.ts": "${basename}.*.${extname}",
36+
".env": ".env.*",
37+
"*.tsx": "${basename}.*.${extname},${basename}.*.ts",
38+
"package.json": "*.json, *.yml, *.config.js, *.config.ts, *.yaml"
39+
},
40+
"eslint.enable": false,
41+
"eslint.format.enable": false,
42+
"prettier.enable": false,
43+
"turbo.useLocalTurbo": true,
44+
"evenBetterToml.formatter.alignComments": false,
45+
"evenBetterToml.formatter.alignEntries": true,
46+
"evenBetterToml.formatter.allowedBlankLines": 1,
47+
"evenBetterToml.formatter.columnWidth": 120,
48+
"evenBetterToml.formatter.indentEntries": true,
49+
"evenBetterToml.formatter.indentTables": true,
50+
"evenBetterToml.formatter.trailingNewline": true,
51+
"[typescriptreact]": {
52+
"editor.defaultFormatter": "biomejs.biome"
53+
},
54+
"[typescript]": {
55+
"editor.defaultFormatter": "biomejs.biome"
56+
}
57+
}

0 commit comments

Comments
 (0)