@lupinum/nuxt-board 0.1.0 → 1.0.0-beta.1
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.json +1 -1
- package/dist/module.mjs +26 -22
- package/package.json +5 -5
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { defineNuxtModule, addComponent, addImports } from '@nuxt/kit';
|
|
2
2
|
|
|
3
|
+
const name = "@lupinum/nuxt-board";
|
|
4
|
+
const version = "1.0.0-beta.1";
|
|
5
|
+
|
|
3
6
|
const BOARD_COMPONENTS = [
|
|
4
7
|
"BoardRoot",
|
|
5
8
|
"BoardViewport",
|
|
@@ -35,18 +38,19 @@ function normalizePrefix(prefix) {
|
|
|
35
38
|
}
|
|
36
39
|
return normalized;
|
|
37
40
|
}
|
|
38
|
-
function getComponentAlias(
|
|
39
|
-
return prefix ? `${prefix}${
|
|
41
|
+
function getComponentAlias(name2, prefix) {
|
|
42
|
+
return prefix ? `${prefix}${name2}` : name2;
|
|
40
43
|
}
|
|
41
|
-
function getComposableAlias(
|
|
42
|
-
return prefix ? `use${prefix}${
|
|
44
|
+
function getComposableAlias(name2, prefix) {
|
|
45
|
+
return prefix ? `use${prefix}${name2.slice(3)}` : name2;
|
|
43
46
|
}
|
|
44
|
-
function getHelperAlias(
|
|
45
|
-
return prefix ? `create${prefix}${
|
|
47
|
+
function getHelperAlias(name2, prefix) {
|
|
48
|
+
return prefix ? `create${prefix}${name2.slice(6)}` : name2;
|
|
46
49
|
}
|
|
47
50
|
const module$1 = defineNuxtModule({
|
|
48
51
|
meta: {
|
|
49
|
-
name
|
|
52
|
+
name,
|
|
53
|
+
version,
|
|
50
54
|
configKey: "board",
|
|
51
55
|
compatibility: {
|
|
52
56
|
nuxt: "^3.19.0 || ^4.0.0"
|
|
@@ -63,40 +67,40 @@ const module$1 = defineNuxtModule({
|
|
|
63
67
|
nuxt.options.css.push("@lupinum/vue-board/style.css");
|
|
64
68
|
}
|
|
65
69
|
if (options.autoImportComponents !== false) {
|
|
66
|
-
for (const
|
|
70
|
+
for (const name2 of BOARD_COMPONENTS) {
|
|
67
71
|
addComponent({
|
|
68
|
-
name: getComponentAlias(
|
|
69
|
-
export:
|
|
72
|
+
name: getComponentAlias(name2, prefix),
|
|
73
|
+
export: name2,
|
|
70
74
|
filePath: "@lupinum/vue-board"
|
|
71
75
|
});
|
|
72
76
|
}
|
|
73
|
-
for (const
|
|
77
|
+
for (const name2 of MINIMAP_COMPONENTS) {
|
|
74
78
|
addComponent({
|
|
75
|
-
name: getComponentAlias(
|
|
76
|
-
export:
|
|
79
|
+
name: getComponentAlias(name2, prefix),
|
|
80
|
+
export: name2,
|
|
77
81
|
filePath: "@lupinum/vue-board/minimap"
|
|
78
82
|
});
|
|
79
83
|
}
|
|
80
84
|
}
|
|
81
85
|
if (options.autoImportComposables !== false) {
|
|
82
86
|
addImports(
|
|
83
|
-
BOARD_COMPOSABLES.map((
|
|
84
|
-
name,
|
|
85
|
-
as: getComposableAlias(
|
|
87
|
+
BOARD_COMPOSABLES.map((name2) => ({
|
|
88
|
+
name: name2,
|
|
89
|
+
as: getComposableAlias(name2, prefix),
|
|
86
90
|
from: "@lupinum/vue-board"
|
|
87
91
|
}))
|
|
88
92
|
);
|
|
89
93
|
addImports(
|
|
90
|
-
MINIMAP_COMPOSABLES.map((
|
|
91
|
-
name,
|
|
92
|
-
as: getComposableAlias(
|
|
94
|
+
MINIMAP_COMPOSABLES.map((name2) => ({
|
|
95
|
+
name: name2,
|
|
96
|
+
as: getComposableAlias(name2, prefix),
|
|
93
97
|
from: "@lupinum/vue-board/minimap"
|
|
94
98
|
}))
|
|
95
99
|
);
|
|
96
100
|
addImports(
|
|
97
|
-
BOARD_HELPERS.map((
|
|
98
|
-
name,
|
|
99
|
-
as: getHelperAlias(
|
|
101
|
+
BOARD_HELPERS.map((name2) => ({
|
|
102
|
+
name: name2,
|
|
103
|
+
as: getHelperAlias(name2, prefix),
|
|
100
104
|
from: "@lupinum/board-core"
|
|
101
105
|
}))
|
|
102
106
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lupinum/nuxt-board",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Nuxt module for @lupinum/vue-board with board component and composable auto-imports.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"nuxt": "^3.19.0 || ^4.0.0",
|
|
51
|
-
"@lupinum/board
|
|
52
|
-
"@lupinum/
|
|
51
|
+
"@lupinum/vue-board": "1.0.0-beta.1",
|
|
52
|
+
"@lupinum/board-core": "1.0.0-beta.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@nuxt/devtools": "3.3.1",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"vite": "7.3.5",
|
|
66
66
|
"vitest": "^4.1.10",
|
|
67
67
|
"vue-tsc": "^3.3.7",
|
|
68
|
-
"@lupinum/board-core": "0.1
|
|
69
|
-
"@lupinum/vue-board": "0.1
|
|
68
|
+
"@lupinum/board-core": "1.0.0-beta.1",
|
|
69
|
+
"@lupinum/vue-board": "1.0.0-beta.1"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "nuxt-module-build prepare && nuxt-module-build build",
|