From 8a25204a3eccb15f3dfd4dd6a0c1acfd7214d437 Mon Sep 17 00:00:00 2001 From: Cohan Carpentier Date: Sun, 26 May 2024 20:02:02 -0400 Subject: [PATCH] feat: change base configs --- README.md | 2 +- biome.jsonc | 2 +- biome.base.jsonc => config/biome.base.jsonc | 0 config/next.config.base.js | 20 +++++++++++++++++++ ...css.config.cjs => postcss.config.base.cjs} | 0 ...wind.config.ts => tailwind.config.base.ts} | 0 .../tsconfig.base.json | 0 package.json | 4 ++-- tsconfig.json | 2 +- 9 files changed, 25 insertions(+), 5 deletions(-) rename biome.base.jsonc => config/biome.base.jsonc (100%) create mode 100644 config/next.config.base.js rename config/{postcss.config.cjs => postcss.config.base.cjs} (100%) rename config/{tailwind.config.ts => tailwind.config.base.ts} (100%) rename tsconfig.base.json => config/tsconfig.base.json (100%) diff --git a/README.md b/README.md index 68f1c72..a670ffb 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,4 @@ https://www.npmjs.com/package/@risc0/ui | Statements | Branches | Functions | Lines | | --------------------------- | ----------------------- | ------------------------- | ----------------- | -| ![Statements](https://img.shields.io/badge/statements-48.16%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-75.4%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-54.16%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-48.16%25-red.svg?style=flat) | +| ![Statements](https://img.shields.io/badge/statements-47.38%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-74.19%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-52%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-47.38%25-red.svg?style=flat) | diff --git a/biome.jsonc b/biome.jsonc index 06a2bd4..3a90a9f 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,3 +1,3 @@ { - "extends": ["./biome.base.jsonc"] + "extends": ["./config/biome.base.jsonc"] } diff --git a/biome.base.jsonc b/config/biome.base.jsonc similarity index 100% rename from biome.base.jsonc rename to config/biome.base.jsonc diff --git a/config/next.config.base.js b/config/next.config.base.js new file mode 100644 index 0000000..579ef3d --- /dev/null +++ b/config/next.config.base.js @@ -0,0 +1,20 @@ +import packageJson from "../package.json" assert { type: "json" }; + +/** @type {import("next").NextConfig} */ +export const nextConfigBase = { + eslint: { + ignoreDuringBuilds: true, + }, + swcMinify: true, + reactStrictMode: true, + transpilePackages: ["@risc0/ui"], + publicRuntimeConfig: { + version: packageJson.version, + }, + experimental: { + caseSensitiveRoutes: true, + staleTimes: { + dynamic: 30, + }, + }, +}; diff --git a/config/postcss.config.cjs b/config/postcss.config.base.cjs similarity index 100% rename from config/postcss.config.cjs rename to config/postcss.config.base.cjs diff --git a/config/tailwind.config.ts b/config/tailwind.config.base.ts similarity index 100% rename from config/tailwind.config.ts rename to config/tailwind.config.base.ts diff --git a/tsconfig.base.json b/config/tsconfig.base.json similarity index 100% rename from tsconfig.base.json rename to config/tsconfig.base.json diff --git a/package.json b/package.json index 397abcd..821e494 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@risc0/ui", - "version": "0.0.84", + "version": "0.0.85", "sideEffects": false, "type": "module", "scripts": { @@ -41,7 +41,7 @@ "tailwind-merge": "2.3.0", "tailwindcss": "3.4.3", "tailwindcss-animate": "1.0.7", - "typescript": "5.5.0-dev.20240524" + "typescript": "5.5.0-dev.20240526" }, "devDependencies": { "@biomejs/biome": "1.7.4-nightly.125f34b", diff --git a/tsconfig.json b/tsconfig.json index 240106b..2110929 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "./tsconfig.base.json", + "extends": "./config/tsconfig.base.json", "compilerOptions": { /* Path Aliases */ "baseUrl": ".",