-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- configure content collections for blog route - configure biome for lint/format - configure tailwind typography
- Loading branch information
Showing
24 changed files
with
977 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
.astro | ||
dist | ||
node_modules | ||
**/dist | ||
**/node_modules | ||
.github | ||
pnpm-lock.yaml | ||
.vscode | ||
.vscode | ||
|
||
*.js | ||
*.ts | ||
*.mjs | ||
*.cjs | ||
*.json | ||
*.jsonc | ||
*.mdx | ||
*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/** @type {import("prettier").Config} */ | ||
export default { | ||
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"], | ||
overrides: [ | ||
{ | ||
files: "*.astro", | ||
options: { | ||
parser: "astro", | ||
}, | ||
}, | ||
], | ||
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"], | ||
overrides: [ | ||
{ | ||
files: "*.astro", | ||
options: { | ||
parser: "astro", | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"astro-build.astro-vscode", | ||
"esbenp.prettier-vscode", | ||
"bradlc.vscode-tailwindcss" | ||
], | ||
"unwantedRecommendations": [] | ||
"recommendations": [ | ||
"astro-build.astro-vscode", | ||
"esbenp.prettier-vscode", | ||
"bradlc.vscode-tailwindcss" | ||
], | ||
"unwantedRecommendations": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"command": "./node_modules/.bin/astro dev", | ||
"name": "Development server", | ||
"request": "launch", | ||
"type": "node-terminal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import { defineConfig } from "astro/config"; | ||
import sitemap from "@astrojs/sitemap"; | ||
import tailwind from "@astrojs/tailwind"; | ||
import icon from "astro-icon"; | ||
import { defineConfig } from "astro/config"; | ||
|
||
import sitemap from "@astrojs/sitemap"; | ||
import mdx from "@astrojs/mdx"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: | ||
process.env.VERCEL_ENV === "production" | ||
? "https://atharvatypes.vercel.app" | ||
: process.env.VERCEL_URL | ||
? `https://${process.env.VERCEL_URL}/` | ||
: "http://localhost:4321/", | ||
integrations: [tailwind(), icon(), sitemap({})], | ||
site: | ||
process.env.VERCEL_ENV === "production" | ||
? "https://atharvatypes.vercel.app" | ||
: process.env.VERCEL_URL | ||
? `https://${process.env.VERCEL_URL}/` | ||
: "https://localhost:4321/", | ||
integrations: [tailwind(), icon(), sitemap({}), mdx()], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"files": { | ||
"ignore": [".astro/types.d.ts"] | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["*.svelte", "*.astro", "*.vue"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"useConst": "off", | ||
"useImportType": "off" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
{ | ||
"name": "website", | ||
"type": "module", | ||
"version": "0.5.2", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro check && astro build", | ||
"preview": "astro preview", | ||
"astro": "astro", | ||
"format": "prettier . -w --cache", | ||
"format:ci": "prettier ./src/ -w" | ||
}, | ||
"dependencies": { | ||
"@astrojs/check": "^0.8.3", | ||
"@astrojs/sitemap": "^3.1.6", | ||
"@astrojs/tailwind": "^5.1.0", | ||
"astro": "^4.12.3", | ||
"astro-icon": "^1.1.0", | ||
"tailwindcss": "^3.4.7", | ||
"typescript": "^5.5.4" | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-astro": "^0.14.1", | ||
"prettier-plugin-tailwindcss": "^0.6.5" | ||
} | ||
"name": "website", | ||
"type": "module", | ||
"version": "0.5.2", | ||
"scripts": { | ||
"dev": "astro dev", | ||
"start": "astro dev", | ||
"build": "astro check && astro build", | ||
"preview": "astro preview", | ||
"astro": "astro", | ||
"format": "biome check --write ./ && prettier -w \"**/*\" --ignore-unknown --cache", | ||
"lint": "biome check .", | ||
"lint:fix": "biome check --write .", | ||
"format:ci": "biome check --write ./ && prettier ./ -w" | ||
}, | ||
"dependencies": { | ||
"@astrojs/check": "^0.8.3", | ||
"@astrojs/mdx": "^3.1.4", | ||
"@astrojs/sitemap": "^3.1.6", | ||
"@astrojs/tailwind": "^5.1.0", | ||
"astro": "^4.12.3", | ||
"astro-icon": "^1.1.0", | ||
"tailwindcss": "^3.4.7", | ||
"typescript": "^5.5.4" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.8.3", | ||
"@tailwindcss/typography": "^0.5.14", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-astro": "^0.14.1", | ||
"prettier-plugin-tailwindcss": "^0.6.5" | ||
} | ||
} |
Oops, something went wrong.