Skip to content

Commit

Permalink
test: configure fixture project structure to be Nuxt 4 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Jul 5, 2024
1 parent 6a24bf9 commit 0a158a0
Show file tree
Hide file tree
Showing 22 changed files with 134 additions and 1 deletion.
6 changes: 6 additions & 0 deletions specs/fixtures/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import CustomModule from './module'

// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: [CustomModule, '@nuxtjs/i18n'],

i18n: {
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/basic_usage/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
devtools: { enabled: true },
modules: ['./layer-module', './installer-module', '@nuxtjs/i18n'],
runtimeConfig: {
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/different_domains/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import CustomModule from './module'

// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: [CustomModule, '@nuxtjs/i18n'],

i18n: {
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/inline_options/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import i18nModule from '../external_module/i18n-module'

// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: [
i18nModule,
[
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/1888/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
locales: [
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/2151/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
ssr: true,
components: true,
imports: {
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/2220/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import locales from './locales'

export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
lazy: true,
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/2226/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
locales: ['en', 'de'],
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/2247/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
baseUrl: 'https://abwaab.com',
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/2288/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
baseUrl: 'https://abwaab.com',
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/2315/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
bundle: {
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/issues/2590/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
devtools: { enabled: false },
modules: ['./modules/i18n-module']
})
6 changes: 6 additions & 0 deletions specs/fixtures/layers/layer-domain/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
i18n: {
// lazy: false,
// differentDomains: true,
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/layers/layer-lazy/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
i18n: {
langDir: 'locales',
locales: [
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/layers/layer-locale-arabic/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
i18n: {
langDir: 'locales',
locales: [
Expand Down
9 changes: 8 additions & 1 deletion specs/fixtures/layers/layer-pages/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({})
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
}
})
6 changes: 6 additions & 0 deletions specs/fixtures/layers/layer-server/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
i18n: {
experimental: {
localeDetector: './localeDetector.ts'
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/layers/layer-simple/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
i18n: {
locales: ['fr', 'nl']
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
locales: ['fr', 'nl', 'en'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
modules: ['@nuxtjs/i18n'],
i18n: {
locales: ['fr', 'nl', 'en'],
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/lazy/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import i18nModule from './i18n-module'

// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
vite: {
// Prevent reload by optimizing dependency before discovery
optimizeDeps: {
Expand Down
6 changes: 6 additions & 0 deletions specs/fixtures/routing/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
export default defineNuxtConfig({
// This reverts the new srcDir default from `app` back to your root directory
srcDir: '.',
// This specifies the directory prefix for `app/router.options.ts` and `app/spa-loading-template.html`
dir: {
app: 'app'
},
// devtools: { enabled: true },
modules: ['@nuxtjs/i18n'],

Expand Down

0 comments on commit 0a158a0

Please sign in to comment.