github工作流
Some checks failed
Publish Any Commit / publish (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / generate (macos-latest) (push) Has been cancelled
CI / generate (ubuntu-latest) (push) Has been cancelled
CI / generate (windows-latest) (push) Has been cancelled
Some checks failed
Publish Any Commit / publish (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build (macos-latest) (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
CI / build (windows-latest) (push) Has been cancelled
CI / generate (macos-latest) (push) Has been cancelled
CI / generate (ubuntu-latest) (push) Has been cancelled
CI / generate (windows-latest) (push) Has been cancelled
This commit is contained in:
104
.github/nuxt.config.ts
vendored
Normal file
104
.github/nuxt.config.ts
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
import { dirname, join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
const currentDir = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
export default defineNuxtConfig({
|
||||
devtools: { enabled: true },
|
||||
modules: [
|
||||
'shadcn-nuxt',
|
||||
'@vueuse/nuxt',
|
||||
'@ztl-uwu/nuxt-content',
|
||||
'@nuxt/image',
|
||||
'@nuxt/icon',
|
||||
'@nuxtjs/color-mode',
|
||||
'nuxt-og-image',
|
||||
'@nuxt/scripts',
|
||||
'@nuxtjs/i18n',
|
||||
'@nuxt/fonts',
|
||||
],
|
||||
shadcn: {
|
||||
prefix: 'Ui',
|
||||
componentDir: join(currentDir, './components/ui'),
|
||||
},
|
||||
components: {
|
||||
dirs: [
|
||||
{
|
||||
path: './components',
|
||||
ignore: ['**/*.ts'],
|
||||
},
|
||||
],
|
||||
},
|
||||
i18n: {
|
||||
bundle: {
|
||||
optimizeTranslationDirective: false,
|
||||
},
|
||||
strategy: 'prefix_except_default',
|
||||
},
|
||||
colorMode: {
|
||||
classSuffix: '',
|
||||
disableTransition: true,
|
||||
},
|
||||
css: [
|
||||
join(currentDir, './assets/css/themes.css'),
|
||||
'~/assets/css/tailwind.css',
|
||||
],
|
||||
content: {
|
||||
documentDriven: true,
|
||||
highlight: {
|
||||
theme: {
|
||||
default: 'github-light',
|
||||
dark: 'github-dark',
|
||||
},
|
||||
preload: ['json', 'js', 'ts', 'html', 'css', 'vue', 'diff', 'shell', 'markdown', 'mdc', 'yaml', 'bash', 'ini', 'dotenv'],
|
||||
},
|
||||
navigation: {
|
||||
fields: [
|
||||
'icon',
|
||||
'navBadges',
|
||||
'navTruncate',
|
||||
'badges',
|
||||
'toc',
|
||||
'sidebar',
|
||||
'collapse',
|
||||
'editLink',
|
||||
'prevNext',
|
||||
'breadcrumb',
|
||||
'fullpage',
|
||||
],
|
||||
},
|
||||
experimental: {
|
||||
search: {
|
||||
indexed: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
icon: {
|
||||
clientBundle: {
|
||||
scan: true,
|
||||
sizeLimitKb: 512,
|
||||
},
|
||||
},
|
||||
fonts: {
|
||||
defaults: {
|
||||
weights: ['300 800'],
|
||||
},
|
||||
},
|
||||
typescript: {
|
||||
tsConfig: {
|
||||
compilerOptions: {
|
||||
baseUrl: '.',
|
||||
},
|
||||
},
|
||||
},
|
||||
vite: {
|
||||
plugins: [
|
||||
tailwindcss(),
|
||||
],
|
||||
optimizeDeps: {
|
||||
include: ['debug'],
|
||||
},
|
||||
},
|
||||
compatibilityDate: '2025-05-13',
|
||||
});
|
Reference in New Issue
Block a user