Skip to content

Commit 62b9e6a

Browse files
committedSep 4, 2024
Add main configuration files
0 parents  commit 62b9e6a

7 files changed

+84
-0
lines changed
 

‎.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

‎.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
/node_modules
3+
.DS_Store
4+
.env
5+
.env.*
6+
.next
7+
dist/*
8+
/dist
9+
public/meta/*
10+
!public/meta/og.jpg

‎.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

‎astro.config.mjs

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { defineConfig } from "astro/config";
2+
import react from "@astrojs/react";
3+
import customTheme from "./theme.json";
4+
import tailwind from "@astrojs/tailwind";
5+
import mdx from "@astrojs/mdx";
6+
import sitemap from "@astrojs/sitemap";
7+
8+
export default defineConfig({
9+
site: "https://javascripted.vercel.app",
10+
trailingSlash: "never",
11+
integrations: [react(), tailwind(), mdx(), sitemap()],
12+
output: "static",
13+
markdown: {
14+
shikiConfig: {
15+
theme: customTheme,
16+
langs: [],
17+
wrap: false
18+
}
19+
}
20+
});

‎tailwind.config.cjs

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
4+
theme: {
5+
extend: {
6+
boxShadow: {
7+
sm: "var(--focus-object)",
8+
},
9+
colors: {
10+
brand: {
11+
coal: "#0f0d0e",
12+
gray: "#262522",
13+
charcoal: "#231F20",
14+
charcoalMuted: "#1B1918",
15+
orange: "#FC7428",
16+
yellow: "#FCBA28",
17+
pink: "#F38BA3",
18+
green: "#0BA95B",
19+
purple: "#7B5EA7",
20+
beige: "#F9F4DA",
21+
blue: "#12B5E5",
22+
red: "#ED203D",
23+
white: "#FFFFFF",
24+
},
25+
},
26+
},
27+
},
28+
plugins: [],
29+
};

‎tsconfig.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "astro/tsconfigs/base",
3+
"compilerOptions": {
4+
"jsx": "react-jsx",
5+
"jsxImportSource": "react",
6+
"plugins": [
7+
{
8+
"name": "@astrojs/ts-plugin"
9+
},
10+
]
11+
},
12+
}

‎vercel.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"trailingSlash": false,
3+
"rewrites": [
4+
{
5+
"source": "/stats/js/script.js",
6+
"destination": "https://plausible.io/js/script.js"
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)
Please sign in to comment.