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:
13
packages/shared/package.json
Normal file
13
packages/shared/package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
10
packages/shared/src/index.ts
Normal file
10
packages/shared/src/index.ts
Normal 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;
|
||||
19
packages/shared/tailwind.config.cjs
Normal file
19
packages/shared/tailwind.config.cjs
Normal 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: []
|
||||
};
|
||||
14
packages/shared/tsconfig.json
Normal file
14
packages/shared/tsconfig.json
Normal 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/**/*"]
|
||||
}
|
||||
Reference in New Issue
Block a user