-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93f112e
commit 3b2968f
Showing
6 changed files
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
export * from '/Users/jonathan/Git/nuxt-fullpage/src/module'; | ||
export { default } from '/Users/jonathan/Git/nuxt-fullpage/src/module'; | ||
import * as _nuxt_schema from '@nuxt/schema'; | ||
|
||
declare const _default: _nuxt_schema.NuxtModule<_nuxt_schema.ModuleOptions>; | ||
|
||
export { _default as default }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
import jiti from 'jiti'; | ||
export default jiti(null, { interopDefault: true })('/Users/jonathan/Git/nuxt-fullpage/src/module'); | ||
import { resolve } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import { defineNuxtModule, addPlugin } from '@nuxt/kit'; | ||
|
||
const module = defineNuxtModule({ | ||
meta: { | ||
name: "@fullpage/nuxt-fullpage", | ||
configKey: "@fullpage/nuxt-fullpage", | ||
compatibility: { | ||
nuxt: "^3.0.0" | ||
} | ||
}, | ||
setup(options, nuxt) { | ||
const runtimeDir = fileURLToPath(new URL("./runtime", import.meta.url)); | ||
nuxt.options.build.transpile.push(runtimeDir); | ||
addPlugin(resolve(runtimeDir, "plugin.client")); | ||
} | ||
}); | ||
|
||
export { module as default }; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import 'vue-fullpage.js/dist/style.css'; | ||
declare const _default: any; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { defineNuxtPlugin } from "#app"; | ||
import "vue-fullpage.js/dist/style.css"; | ||
import VueFullPage from "vue-fullpage.js"; | ||
export default defineNuxtPlugin((nuxtApp) => { | ||
nuxtApp.vueApp.use(VueFullPage); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
|
||
import { ModuleOptions, ModuleHooks } from './module' | ||
import { } from './module' | ||
|
||
declare module '@nuxt/schema' { | ||
interface NuxtConfig { ['@fullpage/nuxt-fullpage']?: Partial<ModuleOptions> } | ||
interface NuxtOptions { ['@fullpage/nuxt-fullpage']?: ModuleOptions } | ||
interface NuxtHooks extends ModuleHooks {} | ||
} | ||
|
||
|
||
export { default } from './module' |