Skip to content

Commit 845f2c5

Browse files
committed
improve homepage and turn internal-nobuild package into a web-utils package...
... with actually no build step this time.
1 parent c4226af commit 845f2c5

37 files changed

Lines changed: 983 additions & 746 deletions

apps/webapp/app/routes/_index.tsx

Lines changed: 499 additions & 197 deletions
Large diffs are not rendered by default.

apps/webapp/components.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "../../packages/ui/src/tailwind.css",
9+
"baseColor": "zinc",
10+
"cssVariables": true
11+
},
12+
"iconLibrary": "lucide",
13+
"aliases": {
14+
"components": "~/components",
15+
"hooks": "~/hooks",
16+
"lib": "~/lib",
17+
"utils": "@react-router-gospel-stack/ui/lib/utils",
18+
"ui": "@react-router-gospel-stack/ui/components"
19+
},
20+
"registries": {
21+
"@svgl": "https://svgl.app/r/{name}.json"
22+
}
23+
}

apps/webapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@epic-web/remember": "^1.1.0",
3030
"@react-router-gospel-stack/business": "workspace:*",
3131
"@react-router-gospel-stack/infrastructure": "workspace:*",
32-
"@react-router-gospel-stack/internal-nobuild": "workspace:*",
32+
"@react-router-gospel-stack/web-utils": "workspace:*",
3333
"@react-router-gospel-stack/ui": "workspace:*",
3434
"@react-router/node": "catalog:react-router",
3535
"@sentry/profiling-node": "catalog:sentry",

apps/webapp/public/bluesky.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

apps/webapp/public/x.svg

Lines changed: 1 addition & 0 deletions
Loading

apps/webapp/tsconfig.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@
3939
"@react-router-gospel-stack/infrastructure": [
4040
"../../packages/infrastructure/src/index"
4141
],
42-
"@react-router-gospel-stack/internal-nobuild": [
43-
"../../packages/internal-nobuild/src/index"
42+
"@react-router-gospel-stack/web-utils": [
43+
"../../packages/web-utils/src/index"
4444
],
45-
"@react-router-gospel-stack/internal-nobuild/*": [
46-
"../../packages/internal-nobuild/src/*"
47-
],
48-
"@react-router-gospel-stack/tailwind-config": [
49-
"../../config/tailwind-config/src/index"
45+
"@react-router-gospel-stack/web-utils/*": [
46+
"../../packages/web-utils/src/*"
5047
]
5148
},
5249
"noEmit": true,

docs/architecture.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ react-router-gospel-stack/
2626
├── packages/ # Shared packages
2727
│ ├── business/ # Business logic layer
2828
│ ├── database/ # Prisma ORM wrapper
29-
│ ├── internal-nobuild/ # TypeScript-only package
29+
│ ├── web-utils/ # TypeScript-only package
3030
│ └── ui/ # shadcn/ui components
3131
├── config/ # Shared configurations
3232
│ ├── eslint/ # ESLint configurations
@@ -76,7 +76,7 @@ apps/webapp/
7676
- `@react-router-gospel-stack/infrastructure` - Database access
7777
- `@react-router-gospel-stack/business` - Business logic
7878
- `@react-router-gospel-stack/ui` - UI components
79-
- `@react-router-gospel-stack/internal-nobuild` - Internal utilities
79+
- `@react-router-gospel-stack/web-utils` - Internal utilities
8080

8181
## Packages (`packages/`)
8282

@@ -164,7 +164,7 @@ export class PrismaUserRepository implements UserRepository {
164164
- Bundled with tsup
165165
- Depends on the `database` package
166166

167-
### `internal-nobuild` - TypeScript-Only Package
167+
### `web-utils` - TypeScript-Only Package
168168

169169
Example of a **pure TypeScript package** with no build step.
170170

@@ -203,7 +203,7 @@ React Router's build process (using esbuild) compiles this package when building
203203
**Structure:**
204204

205205
```
206-
packages/internal-nobuild/
206+
packages/web-utils/
207207
├── src/
208208
│ ├── index.ts # Main entry
209209
│ ├── client/ # Client-side code
@@ -463,9 +463,9 @@ React Router's build step compiles these imports.
463463

464464
4. Add to `pnpm-workspace.yaml` if needed (usually automatic)
465465

466-
### No-Build Package (like internal-nobuild)
466+
### No-Build Package (like web-utils)
467467

468-
1. Copy the `internal-nobuild` structure
468+
1. Copy the `web-utils` structure
469469
2. Update `package.json`:
470470
```json
471471
{

docs/database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ The seed script adapts to your chosen ORM:
347347
pnpm --filter @react-router-gospel-stack/infrastructure db:seed
348348
```
349349

350-
Edit `packages/infrastructure/src/seed.ts` to customize seed data.
350+
Edit `packages/infrastructure/src/database/seed.ts` to customize seed data.
351351

352352
## Common Tasks
353353

docs/development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pnpm add -w <package-name>
215215
turbo gen workspace --name @react-router-gospel-stack/foobarbaz --type package --copy
216216
```
217217

218-
Then follow the prompts. See the `internal-nobuild` package as an example.
218+
Then follow the prompts. See the `web-utils` package as an example.
219219

220220
#### Built Package
221221

0 commit comments

Comments
 (0)