@nuxt-ignis/core 0.0.2 → 0.0.3
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 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +15 -15
- package/dist/runtime/plugin.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.d.mts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -11,64 +11,63 @@ const module$1 = defineNuxtModule({
|
|
|
11
11
|
image: true,
|
|
12
12
|
scripts: true,
|
|
13
13
|
security: true,
|
|
14
|
-
auth:
|
|
14
|
+
auth: true,
|
|
15
15
|
vueuse: true,
|
|
16
16
|
pinia: true
|
|
17
17
|
},
|
|
18
18
|
moduleDependencies(nuxt) {
|
|
19
19
|
console.warn("@nuxt-ignis/core - module dependencies are being resolved");
|
|
20
20
|
const modules = {};
|
|
21
|
-
const
|
|
22
|
-
let
|
|
23
|
-
if (!
|
|
21
|
+
const nuxtoptions = nuxt.options;
|
|
22
|
+
let options = nuxtoptions.ignisCore || nuxtoptions.ignis?.core;
|
|
23
|
+
if (!options) {
|
|
24
24
|
console.warn("@nuxt-ignis/core - No options provided, setting defaults");
|
|
25
|
-
|
|
25
|
+
options = {
|
|
26
26
|
eslint: true,
|
|
27
27
|
fonts: true,
|
|
28
28
|
image: true,
|
|
29
29
|
scripts: true,
|
|
30
30
|
security: true,
|
|
31
|
-
auth:
|
|
31
|
+
auth: true,
|
|
32
32
|
vueuse: true,
|
|
33
33
|
pinia: true
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
if (
|
|
36
|
+
if (options?.eslint !== false) {
|
|
37
37
|
modules["@nuxt/eslint"] = {};
|
|
38
38
|
console.debug("@nuxt/eslint module installed");
|
|
39
39
|
}
|
|
40
|
-
if (
|
|
40
|
+
if (options?.fonts !== false) {
|
|
41
41
|
modules["@nuxt/fonts"] = {};
|
|
42
42
|
console.debug("@nuxt/fonts module installed");
|
|
43
43
|
}
|
|
44
|
-
if (
|
|
44
|
+
if (options?.image !== false) {
|
|
45
45
|
modules["@nuxt/image"] = {};
|
|
46
46
|
console.debug("@nuxt/image module installed");
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
48
|
+
if (options?.scripts !== false) {
|
|
49
49
|
modules["@nuxt/scripts"] = {};
|
|
50
50
|
console.debug("@nuxt/scripts module installed");
|
|
51
51
|
}
|
|
52
|
-
if (
|
|
52
|
+
if (options?.security !== false) {
|
|
53
53
|
modules["nuxt-security"] = {};
|
|
54
54
|
console.debug("nuxt-security module installed");
|
|
55
55
|
}
|
|
56
|
-
if (
|
|
56
|
+
if (options?.auth === true) {
|
|
57
57
|
modules["nuxt-auth-utils"] = {};
|
|
58
58
|
console.debug("nuxt-auth-utils module installed");
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (options?.vueuse !== false) {
|
|
61
61
|
modules["@vueuse/nuxt"] = {};
|
|
62
62
|
console.debug("@vueuse/nuxt module installed");
|
|
63
63
|
}
|
|
64
|
-
if (
|
|
64
|
+
if (options?.pinia !== false) {
|
|
65
65
|
modules["@pinia/nuxt"] = {};
|
|
66
66
|
console.debug("@pinia/nuxt module installed");
|
|
67
67
|
}
|
|
68
68
|
return modules;
|
|
69
69
|
},
|
|
70
70
|
setup(options, nuxt) {
|
|
71
|
-
const resolver = createResolver(import.meta.url);
|
|
72
71
|
nuxt.options.runtimeConfig.public.ignis ||= {
|
|
73
72
|
core: {
|
|
74
73
|
eslint: options?.eslint || true,
|
|
@@ -81,6 +80,7 @@ const module$1 = defineNuxtModule({
|
|
|
81
80
|
pinia: options?.pinia || true
|
|
82
81
|
}
|
|
83
82
|
};
|
|
83
|
+
const resolver = createResolver(import.meta.url);
|
|
84
84
|
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
85
85
|
}
|
|
86
86
|
});
|
package/dist/runtime/plugin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: any;
|
|
2
2
|
export default _default;
|