mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
Compare commits
3 Commits
251b0b4038
...
af5c845e4b
Author | SHA1 | Date | |
---|---|---|---|
|
af5c845e4b | ||
3f66dfe46e | |||
d52a0c6f08 |
@ -32,7 +32,7 @@ The commit message guidelines adheres to [Conventional Commits](https://www.conv
|
||||
### Prerequisites
|
||||
|
||||
- [Node.js](https://nodejs.org/) >= 22.0.0
|
||||
- [pnpm](https://pnpm.io/) >= 9.12.3 [(`corepack enable`)](https://nodejs.org/docs/latest-v22.x/api/corepack.html)
|
||||
- [pnpm](https://pnpm.io/) >= 9.14.4 [(`corepack enable`)](https://nodejs.org/docs/latest-v22.x/api/corepack.html)
|
||||
- [Docker](https://www.docker.com/)
|
||||
|
||||
### Installation
|
||||
|
@ -13,7 +13,8 @@ const config: TestRunnerConfig = {
|
||||
async postVisit(page, context) {
|
||||
const storyContext = await getStoryContext(page, context)
|
||||
|
||||
if (storyContext.parameters?.a11y?.disable) {
|
||||
const isA11yDisabled = storyContext.parameters?.a11y?.disable as boolean
|
||||
if (isA11yDisabled) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/storybook",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM node:22.11.0-slim AS node-pnpm
|
||||
FROM node:22.12.0-slim AS node-pnpm
|
||||
ENV PNPM_HOME="/pnpm"
|
||||
ENV PATH="$PNPM_HOME:$PATH"
|
||||
RUN corepack enable
|
||||
@ -8,7 +8,7 @@ WORKDIR /usr/src/app
|
||||
|
||||
FROM node-pnpm AS builder
|
||||
COPY ./ ./
|
||||
RUN pnpm install --global turbo@2.2.3
|
||||
RUN pnpm install --global turbo@2.3.3
|
||||
RUN turbo prune @repo/website --docker
|
||||
|
||||
FROM node-pnpm AS installer
|
||||
|
@ -9,10 +9,6 @@ const nextConfig = {
|
||||
unoptimized: true,
|
||||
},
|
||||
compress: false,
|
||||
|
||||
// https://github.com/hashicorp/next-mdx-remote/issues/436#issuecomment-2066971842
|
||||
transpilePackages: ["next-mdx-remote", "shiki"],
|
||||
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/website",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"imports": {
|
||||
@ -19,6 +19,9 @@
|
||||
"@repo/utils": "workspace:*",
|
||||
"@repo/i18n": "workspace:*",
|
||||
"@repo/ui": "workspace:*",
|
||||
"@mdx-js/mdx": "catalog:",
|
||||
"next-mdx-remote": "catalog:",
|
||||
"shiki": "catalog:",
|
||||
"next": "catalog:",
|
||||
"next-intl": "catalog:",
|
||||
"react": "catalog:",
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "repo",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
|
||||
"packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab",
|
||||
"engines": {
|
||||
"node": ">=22.0.0",
|
||||
"pnpm": ">=9.12.3"
|
||||
"pnpm": ">=9.14.4"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "turbo run build",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/blog",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
@ -103,13 +103,14 @@ export const BlogPostContent: React.FC<BlogPostContentProps> = async (
|
||||
},
|
||||
a: (props) => {
|
||||
const { href = "", ...rest } = props
|
||||
if (href.startsWith("#")) {
|
||||
const hrefString = href as string
|
||||
if (hrefString.startsWith("#")) {
|
||||
return <a {...props} />
|
||||
}
|
||||
if (href.startsWith("../posts/")) {
|
||||
if (hrefString.startsWith("../posts/")) {
|
||||
return (
|
||||
<Link
|
||||
href={href
|
||||
href={hrefString
|
||||
.replace("../posts/", "/blog/")
|
||||
.replace(".md", "")}
|
||||
{...rest}
|
||||
|
@ -1,7 +1,6 @@
|
||||
import typescriptESLint from "typescript-eslint"
|
||||
import configConventions from "eslint-config-conventions"
|
||||
import importX from "eslint-plugin-import-x"
|
||||
import unicorn from "eslint-plugin-unicorn"
|
||||
|
||||
export default typescriptESLint.config(
|
||||
{
|
||||
@ -20,7 +19,6 @@ export default typescriptESLint.config(
|
||||
name: "config-eslint",
|
||||
plugins: {
|
||||
"import-x": importX,
|
||||
unicorn,
|
||||
},
|
||||
rules: {
|
||||
"import-x/extensions": [
|
||||
@ -33,8 +31,6 @@ export default typescriptESLint.config(
|
||||
jsx: "never",
|
||||
},
|
||||
],
|
||||
"unicorn/explicit-length-check": "error",
|
||||
"unicorn/consistent-destructuring": "off",
|
||||
},
|
||||
},
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/eslint-config",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/config-tailwind",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "./tailwind.config.js",
|
||||
|
@ -155,10 +155,6 @@ code .line::before {
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
code .line:last-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.katex .base {
|
||||
display: inline !important;
|
||||
white-space: normal !important;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/config-typescript",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"files": [
|
||||
"tsconfig.json"
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/i18n",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/react-hooks",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/ui",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@repo/utils",
|
||||
"version": "4.1.0",
|
||||
"version": "4.1.1",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
|
@ -11,7 +11,7 @@ export const LOCALE_PREFIX = "never"
|
||||
|
||||
export const THEMES = ["light", "dark"] as const
|
||||
export type Theme = (typeof THEMES)[number]
|
||||
export const THEME_DEFAULT = "light" as Theme
|
||||
export const THEME_DEFAULT = "light" satisfies Theme
|
||||
|
||||
export const TIMEZONE = process.env["TZ"] ?? "UTC"
|
||||
|
||||
|
4371
pnpm-lock.yaml
generated
4371
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@ packages:
|
||||
|
||||
catalog:
|
||||
# Turborepo and Releases
|
||||
"turbo": "2.2.3"
|
||||
"turbo": "2.3.3"
|
||||
"@saithodev/semantic-release-backmerge": "4.0.1"
|
||||
"@semantic-release/exec": "6.0.3"
|
||||
"@semantic-release/git": "10.0.1"
|
||||
@ -15,90 +15,90 @@ catalog:
|
||||
"deepmerge": "4.3.1"
|
||||
|
||||
# React.js/Next.js
|
||||
"next": "15.0.3"
|
||||
"next-intl": "3.25.0"
|
||||
"next-themes": "0.4.3"
|
||||
"react": "18.3.1"
|
||||
"react-dom": "18.3.1"
|
||||
"react-icons": "5.3.0"
|
||||
"@types/react": "18.3.12"
|
||||
"@types/react-dom": "18.3.1"
|
||||
"next": "15.0.4"
|
||||
"next-intl": "3.26.0"
|
||||
"next-themes": "0.4.4"
|
||||
"react": "19.0.0"
|
||||
"react-dom": "19.0.0"
|
||||
"react-icons": "5.4.0"
|
||||
"@types/react": "19.0.0"
|
||||
"@types/react-dom": "19.0.0"
|
||||
|
||||
# Blog
|
||||
"@giscus/react": "3.0.0"
|
||||
"gray-matter": "4.0.3"
|
||||
"katex": "0.16.11"
|
||||
"next-mdx-remote": "5.0.0"
|
||||
"@mdx-js/mdx": "3.0.1"
|
||||
"@mdx-js/mdx": "3.1.0"
|
||||
"rehype-katex": "7.0.1"
|
||||
"rehype-raw": "7.0.0"
|
||||
"rehype-slug": "6.0.0"
|
||||
"remark-gfm": "4.0.0"
|
||||
"remark-math": "6.0.0"
|
||||
"shiki": "1.12.0"
|
||||
"@shikijs/rehype": "1.12.0"
|
||||
"shiki": "1.24.0"
|
||||
"@shikijs/rehype": "1.24.0"
|
||||
|
||||
# Markdown Lint
|
||||
"markdownlint-cli2": "0.14.0"
|
||||
"markdownlint": "0.35.0"
|
||||
"markdownlint-cli2": "0.15.0"
|
||||
"markdownlint": "0.36.1"
|
||||
"markdownlint-rule-relative-links": "3.0.0"
|
||||
|
||||
# TypeScript
|
||||
"typescript": "5.6.3"
|
||||
"typescript": "5.7.2"
|
||||
"@total-typescript/ts-reset": "0.6.1"
|
||||
"@types/node": "22.9.0"
|
||||
"@types/node": "22.10.1"
|
||||
|
||||
# ESLint
|
||||
"globals": "15.12.0"
|
||||
"typescript-eslint": "8.13.0"
|
||||
"@eslint/eslintrc": "3.1.0"
|
||||
"eslint": "9.14.0"
|
||||
"eslint-config-conventions": "17.0.0"
|
||||
"eslint-plugin-promise": "7.1.0"
|
||||
"eslint-plugin-unicorn": "56.0.0"
|
||||
"eslint-config-next": "15.0.3"
|
||||
"eslint-plugin-storybook": "0.11.0"
|
||||
"globals": "15.13.0"
|
||||
"typescript-eslint": "8.17.0"
|
||||
"@eslint/eslintrc": "3.2.0"
|
||||
"eslint": "9.16.0"
|
||||
"eslint-config-conventions": "17.0.1"
|
||||
"eslint-plugin-promise": "7.2.1"
|
||||
"eslint-plugin-unicorn": "56.0.1"
|
||||
"eslint-config-next": "15.0.4"
|
||||
"eslint-plugin-storybook": "0.11.1"
|
||||
"eslint-plugin-tailwindcss": "3.17.5"
|
||||
"eslint-plugin-import-x": "4.4.0"
|
||||
"eslint-plugin-import-x": "4.5.0"
|
||||
|
||||
# Prettier
|
||||
"prettier": "3.3.3"
|
||||
"prettier-plugin-tailwindcss": "0.6.8"
|
||||
"prettier": "3.4.2"
|
||||
"prettier-plugin-tailwindcss": "0.6.9"
|
||||
"editorconfig-checker": "6.0.0"
|
||||
|
||||
# Storybook
|
||||
"@chromatic-com/storybook": "3.2.2"
|
||||
"@storybook/addon-a11y": "8.4.2"
|
||||
"@storybook/addon-essentials": "8.4.2"
|
||||
"@storybook/addon-interactions": "8.4.2"
|
||||
"@storybook/addon-storysource": "8.4.2"
|
||||
"@storybook/addon-themes": "8.4.2"
|
||||
"@storybook/blocks": "8.4.2"
|
||||
"@storybook/nextjs": "8.4.2"
|
||||
"@storybook/react": "8.4.2"
|
||||
"@storybook/test": "8.4.2"
|
||||
"@storybook/test-runner": "0.19.1"
|
||||
"chromatic": "11.18.0"
|
||||
"@storybook/addon-a11y": "8.4.7"
|
||||
"@storybook/addon-essentials": "8.4.7"
|
||||
"@storybook/addon-interactions": "8.4.7"
|
||||
"@storybook/addon-storysource": "8.4.7"
|
||||
"@storybook/addon-themes": "8.4.7"
|
||||
"@storybook/blocks": "8.4.7"
|
||||
"@storybook/nextjs": "8.4.7"
|
||||
"@storybook/react": "8.4.7"
|
||||
"@storybook/test": "8.4.7"
|
||||
"@storybook/test-runner": "0.20.1"
|
||||
"chromatic": "11.20.0"
|
||||
"http-server": "14.1.1"
|
||||
"storybook": "8.4.2"
|
||||
"storybook": "8.4.7"
|
||||
"storybook-dark-mode": "4.0.2"
|
||||
|
||||
# Testing
|
||||
"playwright": "1.48.2"
|
||||
"@playwright/test": "1.48.2"
|
||||
"playwright": "1.49.0"
|
||||
"@playwright/test": "1.49.0"
|
||||
"axe-playwright": "2.0.3"
|
||||
"start-server-and-test": "2.0.8"
|
||||
"@vitest/browser": "2.1.4"
|
||||
"@vitest/coverage-v8": "2.1.4"
|
||||
"@vitest/ui": "2.1.4"
|
||||
"vitest": "2.1.4"
|
||||
"@testing-library/react": "16.0.1"
|
||||
"@vitest/browser": "2.1.8"
|
||||
"@vitest/coverage-v8": "2.1.8"
|
||||
"@vitest/ui": "2.1.8"
|
||||
"vitest": "2.1.8"
|
||||
"@testing-library/react": "16.1.0"
|
||||
|
||||
# CSS
|
||||
"postcss": "8.4.47"
|
||||
"tailwindcss": "3.4.14"
|
||||
"postcss": "8.4.49"
|
||||
"tailwindcss": "3.4.16"
|
||||
"@tailwindcss/typography": "0.5.15"
|
||||
"tailwind-merge": "2.5.4"
|
||||
"clsx": "2.0.0"
|
||||
"cva": "1.0.0-beta.1"
|
||||
"tailwind-merge": "2.5.5"
|
||||
"clsx": "2.1.1"
|
||||
"cva": "1.0.0-beta.2"
|
||||
"@fontsource/montserrat": "5.1.0"
|
||||
|
Loading…
Reference in New Issue
Block a user