Skip to content

Commit

Permalink
format nuxt.config
Browse files Browse the repository at this point in the history
  • Loading branch information
4dr1en committed Oct 31, 2024
1 parent 0478aaa commit c332fc5
Showing 1 changed file with 45 additions and 49 deletions.
94 changes: 45 additions & 49 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,69 @@ import { cnamLightTheme } from '@cnamts/synapse/designTokens/tokens/cnam/cnamLig
import Components from 'unplugin-vue-components/vite'

export default defineNuxtConfig({
ssr: false,
ssr: false,

runtimeConfig: {
public: {
title: process.env.TITLE,
message: process.env.MESSAGE,
theme: process.env.THEME,
},
runtimeConfig: {
public: {
title: process.env.TITLE,
message: process.env.MESSAGE,
theme: process.env.THEME,
},
},

devtools: { enabled: true },
devtools: { enabled: true },

modules: [
'vuetify-nuxt-module',
'dayjs-nuxt',
'@pinia/nuxt',
'@nuxt/eslint',
modules: [
'vuetify-nuxt-module',
'dayjs-nuxt',
'@pinia/nuxt',
'@nuxt/eslint',
],

vuetify: {
vuetifyOptions: {
icons: {
defaultSet: 'mdi-svg',
},
theme: {
defaultTheme: 'light',
themes: {
light: {
colors: {
...cnamLightTheme,
// ...bootstrapLightTheme,
},
},
},
},
vuetify: {
vuetifyOptions: {
icons: {
defaultSet: 'mdi-svg',
},
theme: {
defaultTheme: 'light',
themes: {
light: {
colors: {
...cnamLightTheme,
// ...bootstrapLightTheme,
},
},
},
},
},
},

build: {
transpile: [
'vuetify',
'@cnamts/synapse',
'@cnamts/design-tokens',
],
build: {
transpile: ['vuetify', '@cnamts/synapse', '@cnamts/design-tokens'],
},

vite: {
// change the component dirs to match our project layout
plugins: [Components({ dts: true, dirs: ['./components'] })],
vite: {
// change the component dirs to match our project layout
plugins: [Components({ dts: true, dirs: ['./components'] })],
},

css: ['@cnamts/synapse/style.css', '~/assets/settings.scss'],
css: ['@cnamts/synapse/style.css', '~/assets/settings.scss'],

imports: {
dirs: ['./stores'],
imports: {
dirs: ['./stores'],
},

dayjs: {
locales: ['en', 'fr'],
plugins: ['relativeTime', 'utc', 'timezone'],
defaultLocale: 'fr',
defaultTimezone: 'Europe/Paris',
dayjs: {
locales: ['en', 'fr'],
plugins: ['relativeTime', 'utc', 'timezone'],
defaultLocale: 'fr',
defaultTimezone: 'Europe/Paris',
},

pinia: {
autoImports: ['defineStore', 'acceptHMRUpdate'],
pinia: {
autoImports: ['defineStore', 'acceptHMRUpdate'],
},

compatibilityDate: '2024-10-09',
compatibilityDate: '2024-10-09',
})

0 comments on commit c332fc5

Please sign in to comment.