@gluhar/app 2.0.0 → 2.1.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.1.0](https://github.com/gluharry/gluhar/compare/@gluhar/app@2.0.1...@gluhar/app@2.1.0) (2025-01-24)
7
+
8
+
9
+ ### 🚀 Enhancements
10
+
11
+ - Default Nuxt Config ([adafe2e](https://github.com/gluharry/gluhar/commit/adafe2ec47b5e760953b89a47dfcc4bc98479f63))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.0.1](https://github.com/gluharry/gluhar/compare/@gluhar/app@2.0.0...@gluhar/app@2.0.1) (2025-01-23)
18
+
19
+ **📝 Note:** Version bump only for package @gluhar/app
20
+
21
+
22
+
23
+
24
+
6
25
  # 2.0.0 (2025-01-22)
7
26
 
8
27
  **📝 Note:** Version bump only for package @gluhar/app
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
3
  "configKey": "gluhar",
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.3",
7
7
  "unbuild": "2.0.0"
package/dist/module.mjs CHANGED
@@ -1,5 +1,61 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addImportsDir } from '@nuxt/kit';
2
2
 
3
+ function isPlainObject(value) {
4
+ if (value === null || typeof value !== "object") {
5
+ return false;
6
+ }
7
+ const prototype = Object.getPrototypeOf(value);
8
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
9
+ return false;
10
+ }
11
+ if (Symbol.iterator in value) {
12
+ return false;
13
+ }
14
+ if (Symbol.toStringTag in value) {
15
+ return Object.prototype.toString.call(value) === "[object Module]";
16
+ }
17
+ return true;
18
+ }
19
+
20
+ function _defu(baseObject, defaults, namespace = ".", merger) {
21
+ if (!isPlainObject(defaults)) {
22
+ return _defu(baseObject, {}, namespace, merger);
23
+ }
24
+ const object = Object.assign({}, defaults);
25
+ for (const key in baseObject) {
26
+ if (key === "__proto__" || key === "constructor") {
27
+ continue;
28
+ }
29
+ const value = baseObject[key];
30
+ if (value === null || value === void 0) {
31
+ continue;
32
+ }
33
+ if (merger && merger(object, key, value, namespace)) {
34
+ continue;
35
+ }
36
+ if (Array.isArray(value) && Array.isArray(object[key])) {
37
+ object[key] = [...value, ...object[key]];
38
+ } else if (isPlainObject(value) && isPlainObject(object[key])) {
39
+ object[key] = _defu(
40
+ value,
41
+ object[key],
42
+ (namespace ? `${namespace}.` : "") + key.toString(),
43
+ merger
44
+ );
45
+ } else {
46
+ object[key] = value;
47
+ }
48
+ }
49
+ return object;
50
+ }
51
+ function createDefu(merger) {
52
+ return (...arguments_) => (
53
+ // eslint-disable-next-line unicorn/no-array-reduce
54
+ arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
55
+ );
56
+ }
57
+ const defu = createDefu();
58
+
3
59
  const module = defineNuxtModule({
4
60
  meta: {
5
61
  name: "@gluhar/app",
@@ -24,6 +80,27 @@ const module = defineNuxtModule({
24
80
  addImportsDir(resolve("runtime/composables"));
25
81
  addImportsDir(resolve("runtime/utils"));
26
82
  addImportsDir(resolve("runtime/stores"));
83
+ nuxt.options = defu(nuxt.options, {
84
+ // Removes comments from the final build
85
+ vite: {
86
+ esbuild: {
87
+ legalComments: "none"
88
+ },
89
+ build: {
90
+ terserOptions: {
91
+ format: {
92
+ comments: false
93
+ }
94
+ }
95
+ }
96
+ },
97
+ // Without this I was getting a 'EMFILE: too many open files' error.
98
+ // Nuxt seem to know about this issue.
99
+ // Investigate if this is still needed after some time. (Jan '25)
100
+ experimental: {
101
+ watcher: "parcel"
102
+ }
103
+ });
27
104
  }
28
105
  });
29
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gluhar/app",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Gluhar main package. This combines and configures @gluhar/theme, @gluhar/i18n, @gluhar/sanity and @gluhar/core into one main package. Provides numerous components, composables, utils and types.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,8 +39,8 @@
39
39
  "dependencies": {
40
40
  "@gluhar/core": "^2.0.0",
41
41
  "@gluhar/i18n": "^2.0.0",
42
- "@gluhar/sanity": "^2.0.0",
43
- "@gluhar/theme": "^2.0.0",
42
+ "@gluhar/sanity": "^2.0.1",
43
+ "@gluhar/theme": "^2.0.2",
44
44
  "@nuxt/kit": "^3.13.1",
45
45
  "@pinia/nuxt": "^0.5.4",
46
46
  "pinia": "^2.2.2"
@@ -57,5 +57,5 @@
57
57
  "nuxt": "^3.13.1",
58
58
  "vitest": "^2.0.5"
59
59
  },
60
- "gitHead": "1404193f1104a108b07ec2128379d4ff592d34a0"
60
+ "gitHead": "42a3b9f7a5f9870cab60f48aa610cda73963936d"
61
61
  }