add configs

This commit is contained in:
Felix Schulze 2024-09-03 20:43:41 +02:00
parent 1cb94b567c
commit 39e77c7c70
5 changed files with 3147 additions and 14 deletions

3114
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,13 @@
"dependencies": {
"react": "^18",
"react-dom": "^18",
"next": "14.2.7"
"next": "14.2.7",
"autoprefixer": "^10.4.19",
"cssnano": "^7.0.1",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-preset-env": "^10.0.0",
"next-plausible": "^3.12.0",
"sharp": "^0.33.4"
},
"devDependencies": {
"typescript": "^5",
@ -21,6 +27,7 @@
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.7"
"eslint-config-next": "14.2.7",
"turbo": "2.1.1"
}
}

View File

@ -2,6 +2,29 @@
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
"postcss-flexbugs-fixes": {
"postcss-preset-env": {
autoprefixer: {
flexbox: "no-2009",
},
stage: 3,
features: {
"custom-properties": false,
},
},
"@fullhuman/postcss-purgecss": {
content: [
"./pages/**/*.{js,jsx,ts,tsx}",
"./components/**/*.{js,jsx,ts,tsx}",
],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
safelist: ["html", "body"],
},
},
cssnano: {},
},
};

View File

@ -2,6 +2,7 @@ import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./lib/**/*.{ts,tsx,js,jsx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],

12
turbo.json Normal file
View File

@ -0,0 +1,12 @@
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"outputs": [
".next/**",
"!.next/cache/**"
]
},
"type-check": {}
}
}