Skip to content

Commit 62b9e6a

Browse files
Add main configuration files
0 parents  commit 62b9e6a

File tree

7 files changed

+84
-0
lines changed

7 files changed

+84
-0
lines changed

.eslintrc.json

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

.gitignore

Lines changed: 10 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

astro.config.mjs

Lines changed: 20 additions & 0 deletions
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

Lines changed: 29 additions & 0 deletions
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

Lines changed: 12 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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)