Yutaro Koizumi
2025-09-30
A Frontend Night to Know the Respective Merits of Next.js vs Nuxt
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| bold() { printf "\033[1m%s\033[0m\n" "$*"; } | |
| info() { printf "• %s\n" "$*"; } | |
| warn() { printf "\033[33m! %s\033[0m\n" "$*"; } | |
| err() { printf "\033[31m✗ %s\033[0m\n" "$*" >&2; } | |
| ok() { printf "\033[32m✓ %s\033[0m\n" "$*"; } | |
| require_macos() { |
| import { inspect } from 'util' | |
| export type Success<T> = { | |
| readonly type: 'success' | |
| readonly data: T | |
| readonly error?: never | |
| } | |
| export type Failure<E> = { | |
| readonly type: 'failure' |