@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
 
3
3
  interface IgnisCoreOptions {
4
- enabled?: boolean;
4
+ active?: boolean;
5
5
  eslint?: boolean;
6
6
  fonts?: boolean;
7
7
  image?: boolean;
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt-ignis/core",
3
3
  "configKey": "ignisCore",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
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: false,
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 nuxtOpts = nuxt.options;
22
- let opts = nuxtOpts.ignisCore || nuxtOpts.ignis?.core;
23
- if (!opts) {
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
- opts = {
25
+ options = {
26
26
  eslint: true,
27
27
  fonts: true,
28
28
  image: true,
29
29
  scripts: true,
30
30
  security: true,
31
- auth: false,
31
+ auth: true,
32
32
  vueuse: true,
33
33
  pinia: true
34
34
  };
35
35
  }
36
- if (opts?.eslint !== false) {
36
+ if (options?.eslint !== false) {
37
37
  modules["@nuxt/eslint"] = {};
38
38
  console.debug("@nuxt/eslint module installed");
39
39
  }
40
- if (opts?.fonts !== false) {
40
+ if (options?.fonts !== false) {
41
41
  modules["@nuxt/fonts"] = {};
42
42
  console.debug("@nuxt/fonts module installed");
43
43
  }
44
- if (opts?.image !== false) {
44
+ if (options?.image !== false) {
45
45
  modules["@nuxt/image"] = {};
46
46
  console.debug("@nuxt/image module installed");
47
47
  }
48
- if (opts?.scripts !== false) {
48
+ if (options?.scripts !== false) {
49
49
  modules["@nuxt/scripts"] = {};
50
50
  console.debug("@nuxt/scripts module installed");
51
51
  }
52
- if (opts?.security !== false) {
52
+ if (options?.security !== false) {
53
53
  modules["nuxt-security"] = {};
54
54
  console.debug("nuxt-security module installed");
55
55
  }
56
- if (opts?.auth === true) {
56
+ if (options?.auth === true) {
57
57
  modules["nuxt-auth-utils"] = {};
58
58
  console.debug("nuxt-auth-utils module installed");
59
59
  }
60
- if (opts?.vueuse !== false) {
60
+ if (options?.vueuse !== false) {
61
61
  modules["@vueuse/nuxt"] = {};
62
62
  console.debug("@vueuse/nuxt module installed");
63
63
  }
64
- if (opts?.pinia !== false) {
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
  });
@@ -1,2 +1,2 @@
1
- declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
1
+ declare const _default: any;
2
2
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt-ignis/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Nuxt Ignis module - Core features",
5
5
  "publishConfig": {
6
6
  "access": "public"