refactor: migrate to pnpm monorepo with Payload CMS backend and Astro frontend to support scalable website development and AI-assisted workflows

This commit is contained in:
2025-09-25 03:36:26 +08:00
parent 4efabd168c
commit 74677acf77
243 changed files with 28435 additions and 102 deletions

View File

@@ -0,0 +1,13 @@
{
"name": "@enchun/shared",
"version": "0.1.0",
"private": true,
"exports": {
"./tailwind-config": {
"default": "./tailwind.config.cjs"
}
},
"devDependencies": {
"tailwindcss": "^3.4.0"
}
}

View File

@@ -0,0 +1,10 @@
export const palette = {
primary: '#1F3A93',
secondary: '#F39C12',
accent: '#16A085',
background: '#FFFFFF',
surface: '#F7FAFC',
text: '#1A202C'
} as const;
export type PaletteKey = keyof typeof palette;

View File

@@ -0,0 +1,19 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'../../frontend/src/**/*.{astro,tsx,ts,jsx,js,mdx}'
],
theme: {
extend: {
colors: {
primary: '#1F3A93',
secondary: '#F39C12',
accent: '#16A085',
background: '#FFFFFF',
surface: '#F7FAFC',
text: '#1A202C'
}
}
},
plugins: []
};

View File

@@ -0,0 +1,14 @@
{
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationDir": "dist",
"emitDeclarationOnly": true,
"module": "ES2020",
"moduleResolution": "Node",
"target": "ES2020",
"rootDir": "src",
"outDir": "dist"
},
"include": ["src/**/*"]
}