Skip to content

Commit

Permalink
feat: Move to bun, add release-please (#8)
Browse files Browse the repository at this point in the history
* feat: Move to bun

* feat: Move to viewport export

* feat: Add release-please and pr action

* chore: run correct command

* chore: Update sharp

* chore: Remove Dockerfile
  • Loading branch information
hauketoenjes authored Nov 1, 2023
1 parent de9576a commit e0fd394
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 3,134 deletions.
6 changes: 0 additions & 6 deletions .dockerignore

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/main.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check build

on:
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
name: Setup bun
- run: bun install
name: Install dependencies
- run: bun run build
name: Build
19 changes: 19 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: personal-website
41 changes: 0 additions & 41 deletions Dockerfile

This file was deleted.

11 changes: 8 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import { config } from "@fortawesome/fontawesome-svg-core";
import "@fortawesome/fontawesome-svg-core/styles.css";
import { Metadata, Viewport } from "next";
import Footer from "../components/footer";
import Header from "../components/header";
import "../styles/globals.css";

config.autoAddCss = false;

export const metadata = {
export const viewport: Viewport = {
themeColor: "#171717",
colorScheme: "dark",
};

export const metadata: Metadata = {
title: {
default: "Hauke Tönjes",
template: "%s | Hauke Tönjes",
Expand All @@ -19,8 +25,7 @@ export const metadata = {
"Next.js",
"Flutter",
],
themeColor: "#171717",
colorScheme: "dark",

creator: "Hauke Tönjes",
publisher: "Hauke Tönjes",
description:
Expand Down
Binary file added bun.lockb
Binary file not shown.
9 changes: 0 additions & 9 deletions docker-compose.yml

This file was deleted.

3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
const nextConfig = {
output: "standalone",
swcMinify: true,
experimental: {
appDir: true,
},
};

module.exports = nextConfig;
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "personal-website",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"dev": "next dev",
"build": "next build",
"prod": "next build && next start",
Expand All @@ -14,19 +14,19 @@
"@fortawesome/free-brands-svg-icons": "^6.4.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@next/env": "^13.4.3",
"next": "^13.4.3",
"next": "^14.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-wrap-balancer": "^0.5.0",
"sharp": "^0.32.1"
"sharp": "^0.32.6"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"@types/node": "^20.2.3",
"@types/react": "^18.2.6",
"autoprefixer": "^10.4.14",
"eslint": "8.41.0",
"eslint-config-next": "13.4.3",
"eslint-config-next": "14.0.1",
"next-sitemap": "^4.1.3",
"postcss": "^8.4.23",
"tailwindcss": "^3.3.2",
Expand Down
Loading

1 comment on commit e0fd394

@vercel
Copy link

@vercel vercel bot commented on e0fd394 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.