@mevbg/nuxt-kit 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.mts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -1
- package/dist/runtime/plugins/wm.plugin.js +2 -2
- package/package.json +3 -2
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -9,12 +9,14 @@ const module = defineNuxtModule({
|
|
|
9
9
|
},
|
|
10
10
|
// Default configuration options of the Nuxt module
|
|
11
11
|
defaults: {
|
|
12
|
+
wm: true,
|
|
12
13
|
colorScheme: {
|
|
13
14
|
default: DEFAULT_COLOR_SCHEME,
|
|
14
15
|
systemScheme: true
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
|
-
async setup(options) {
|
|
18
|
+
async setup(options, nuxt) {
|
|
19
|
+
nuxt.options.runtimeConfig.public.wm = options.wm;
|
|
18
20
|
const resolver = createResolver(import.meta.url);
|
|
19
21
|
addPlugin(resolver.resolve("./runtime/plugins/wm.plugin"));
|
|
20
22
|
await installModule("@mevbg/nuxt-color-scheme", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineNuxtPlugin } from "#app";
|
|
1
|
+
import { defineNuxtPlugin, useRuntimeConfig } from "#app";
|
|
2
2
|
import wm from "@mevbg/wm";
|
|
3
3
|
export default defineNuxtPlugin(() => {
|
|
4
|
-
if (import.meta.client) {
|
|
4
|
+
if (import.meta.client && useRuntimeConfig().public.wm) {
|
|
5
5
|
wm();
|
|
6
6
|
}
|
|
7
7
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mevbg/nuxt-kit",
|
|
3
3
|
"title": "Mev’s Nuxt Kit",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4",
|
|
5
5
|
"description": "Mev’s personal Nuxt kit module.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"nuxt kit",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dev": "npm run dev:prepare && nuxi dev playground",
|
|
50
50
|
"dev:build": "nuxi build playground",
|
|
51
51
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
52
|
+
"playground:generate": "nuxi generate playground",
|
|
52
53
|
"release": "npm run lint && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
53
54
|
"lint": "eslint .",
|
|
54
55
|
"lint:fix": "eslint . --fix",
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@mevbg/design-essentials-vendor": "^2.0.4",
|
|
64
|
-
"@mevbg/nuxt-color-scheme": "^1.0.
|
|
65
|
+
"@mevbg/nuxt-color-scheme": "^1.0.4",
|
|
65
66
|
"@nuxt/kit": "^4.0.3"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|