@pinegrow/nuxt-module 1.0.0-alpha.8 → 3.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/chunks/live-designer.mjs +2 -4
- package/dist/module.d.ts +11 -12
- package/dist/module.json +2 -2
- package/dist/module.mjs +11 -19
- package/dist/runtime/live-designer.d.mts +0 -1
- package/dist/runtime/live-designer.mjs +2 -6
- package/package.json +2 -2
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import pkg from '@pinegrow/vite-plugin';
|
|
2
|
-
import pkgDev from '@pinegrow/vite-plugin/dev';
|
|
3
2
|
|
|
4
|
-
// import { liveDesigner } from '@pinegrow/vite-plugin'
|
|
3
|
+
// import { liveDesigner } from '@pinegrow/vite-plugin/dev'
|
|
5
4
|
const liveDesigner = pkg.liveDesigner;
|
|
6
|
-
const liveDesignerDev = pkgDev.liveDesigner;
|
|
7
5
|
|
|
8
|
-
export { liveDesigner
|
|
6
|
+
export { liveDesigner };
|
package/dist/module.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
2
|
|
|
3
3
|
interface ModuleOptions {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
devDependencies: {};
|
|
4
|
+
liveDesigner?: {
|
|
5
|
+
projectBase?: string;
|
|
6
|
+
plugins?: string[];
|
|
7
|
+
usingStandaloneVueDevtools?: boolean;
|
|
8
|
+
routerHistoryMode?: string;
|
|
9
|
+
iconsets?: string[];
|
|
10
|
+
customDependencies?: {
|
|
11
|
+
dependencies?: {};
|
|
12
|
+
devDependencies?: {};
|
|
14
13
|
};
|
|
15
|
-
customTypes
|
|
16
|
-
default
|
|
14
|
+
customTypes?: {
|
|
15
|
+
default?: {};
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
}
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -5,11 +5,10 @@ const module = defineNuxtModule({
|
|
|
5
5
|
name: "pinegrow",
|
|
6
6
|
configKey: "pinegrow",
|
|
7
7
|
compatibility: {
|
|
8
|
-
nuxt: "^3.0.0"
|
|
8
|
+
nuxt: "^3.0.0 || ~3.0.0-rc"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
defaults: {
|
|
12
|
-
dev: false,
|
|
13
12
|
liveDesigner: {
|
|
14
13
|
projectBase: "./",
|
|
15
14
|
plugins: [],
|
|
@@ -30,24 +29,17 @@ const module = defineNuxtModule({
|
|
|
30
29
|
if (moduleOptions.liveDesigner) {
|
|
31
30
|
nuxt.hook("listen", async (listenerServer) => {
|
|
32
31
|
try {
|
|
33
|
-
const { liveDesigner
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
liveDesigner
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
);
|
|
41
|
-
} else {
|
|
42
|
-
addVitePlugin(
|
|
43
|
-
liveDesignerDev({
|
|
44
|
-
...moduleOptions.liveDesigner,
|
|
45
|
-
listenerServer
|
|
46
|
-
})
|
|
47
|
-
);
|
|
48
|
-
}
|
|
32
|
+
const { liveDesigner } = await import('./chunks/live-designer.mjs');
|
|
33
|
+
addVitePlugin(
|
|
34
|
+
liveDesigner({
|
|
35
|
+
...moduleOptions.liveDesigner,
|
|
36
|
+
listenerServer
|
|
37
|
+
})
|
|
38
|
+
);
|
|
49
39
|
} catch (err) {
|
|
50
|
-
console.log(
|
|
40
|
+
console.log(
|
|
41
|
+
"@pinegrow/nuxt-module was unable to load @pinegrow/vite-plugin live-designer!"
|
|
42
|
+
);
|
|
51
43
|
}
|
|
52
44
|
});
|
|
53
45
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
// import { liveDesigner } from '@pinegrow/vite-plugin'
|
|
2
|
-
// import { liveDesignerDev } from '@pinegrow/vite-plugin/dev'
|
|
3
|
-
// export { liveDesigner /*, liveDesignerDev*/ }
|
|
1
|
+
// import { liveDesigner } from '@pinegrow/vite-plugin/dev'
|
|
4
2
|
|
|
5
3
|
import pkg from '@pinegrow/vite-plugin'
|
|
6
|
-
import pkgDev from '@pinegrow/vite-plugin/dev'
|
|
7
4
|
const liveDesigner = pkg.liveDesigner
|
|
8
|
-
|
|
9
|
-
export { liveDesigner, liveDesignerDev }
|
|
5
|
+
export { liveDesigner }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/nuxt-module",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Nuxt
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
|
+
"description": "Pinegrow Nuxt Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|