Skip to content

Commit f1c539e

Browse files
committed
feat(dx): add verbose logging config
1 parent 61ec728 commit f1c539e

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

playground/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export default defineNuxtConfig({
33
devtools: { enabled: true },
44
compatibilityDate: '2025-05-13',
55
nuxtifyCore: {
6+
verboseLogs: true,
67
brand: {
78
tagline: 'Catchy tagline',
89
},

src/module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export default defineNuxtModule<ModuleOptions>({
2323
},
2424
},
2525
defaults: {
26+
// Logs
27+
verboseLogs: false,
28+
2629
// Brand
2730
brand: {
2831
name: '@nuxtify/core',
@@ -70,6 +73,8 @@ export default defineNuxtModule<ModuleOptions>({
7073
async setup(_options, _nuxt) {
7174
const resolver = createResolver(import.meta.url)
7275

76+
if (_options.verboseLogs) console.log('[nuxtify-core] Verbose logging enabled.')
77+
7378
// Modules
7479
await installModule('vuetify-nuxt-module', {
7580
vuetifyOptions: {

src/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ interface PoliciesOptions {
5454
}
5555

5656
export interface ModuleOptions {
57+
/**
58+
* Verbose logging
59+
*/
60+
verboseLogs?: boolean
61+
5762
/**
5863
* Brand options
5964
*/

0 commit comments

Comments
 (0)