chore(astro): add support for MDX, Svelte, and Tailwind CSS

This commit is contained in:
Stefan Imhoff
2023-02-12 12:19:01 +01:00
parent 3a1d463208
commit 99a3bdab56
6 changed files with 1645 additions and 100 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
16.14.2

View File

@@ -1,4 +1,9 @@
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({});
import mdx from '@astrojs/mdx';
import svelte from '@astrojs/svelte';
import tailwind from '@astrojs/tailwind';
export default defineConfig({
integrations: [mdx(), svelte(), tailwind()],
});

View File

@@ -10,6 +10,11 @@
"astro": "astro"
},
"dependencies": {
"astro": "^2.0.10"
"@astrojs/mdx": "^0.16.0",
"@astrojs/svelte": "^2.0.1",
"@astrojs/tailwind": "^3.0.1",
"astro": "^2.0.10",
"svelte": "^3.54.0",
"tailwindcss": "^3.0.24"
}
}

1715
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

5
svelte.config.js Normal file
View File

@@ -0,0 +1,5 @@
import { vitePreprocess } from '@astrojs/svelte';
export default {
preprocess: vitePreprocess(),
};

8
tailwind.config.cjs Normal file
View File

@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [],
}