@pinegrow/nuxt-module 3.0.0-beta.64 → 3.0.0-beta.66
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 +2 -2
- package/dist/module.mjs +11 -7
- package/package.json +11 -6
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -9,7 +9,7 @@ const module = defineNuxtModule({
|
|
|
9
9
|
// Compatibility constraints
|
|
10
10
|
compatibility: {
|
|
11
11
|
// Semver version of supported nuxt versions
|
|
12
|
-
nuxt: "^3.0.0
|
|
12
|
+
nuxt: "^3.0.0"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
// Default configuration options for your module
|
|
@@ -60,21 +60,25 @@ const module = defineNuxtModule({
|
|
|
60
60
|
// options: ["default", "compact", "comfortable"],
|
|
61
61
|
// },
|
|
62
62
|
}
|
|
63
|
+
},
|
|
64
|
+
tailwindcss: {
|
|
65
|
+
cssPath: "./assets/css/tailwind.css"
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
},
|
|
66
69
|
hooks: {},
|
|
67
70
|
async setup(moduleOptions, nuxt) {
|
|
68
71
|
if (moduleOptions.liveDesigner) {
|
|
72
|
+
const nuxtInstance = nuxt;
|
|
69
73
|
nuxt.hook("listen", async (listenerServer) => {
|
|
70
74
|
try {
|
|
71
75
|
const { liveDesigner } = await import('./chunks/live-designer.mjs');
|
|
72
|
-
|
|
73
|
-
liveDesigner
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
);
|
|
76
|
+
const pluginInstance = liveDesigner({
|
|
77
|
+
...moduleOptions.liveDesigner,
|
|
78
|
+
listenerServer,
|
|
79
|
+
nuxtInstance
|
|
80
|
+
});
|
|
81
|
+
addVitePlugin(pluginInstance);
|
|
78
82
|
} catch (err) {
|
|
79
83
|
console.log(err);
|
|
80
84
|
console.log(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/nuxt-module",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.66",
|
|
4
4
|
"description": "Pinegrow Nuxt Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,16 +28,21 @@
|
|
|
28
28
|
"dev:build": "nuxi build playground",
|
|
29
29
|
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
|
|
30
30
|
"publish-beta": "npm run increment-beta-version && npm publish",
|
|
31
|
-
"increment-beta-version": "npm version prerelease --preid=beta"
|
|
31
|
+
"increment-beta-version": "npm version prerelease --preid=beta",
|
|
32
|
+
"lint": "npm run lint:fix && npm run format",
|
|
33
|
+
"lint:fix": "eslint --ext .js,.cjs,.ts,.vue --ignore-path .gitignore --fix ./src",
|
|
34
|
+
"format": "prettier --write ."
|
|
32
35
|
},
|
|
33
36
|
"dependencies": {
|
|
34
37
|
"@nuxt/kit": "latest",
|
|
35
|
-
"@pinegrow/vite-plugin": "3.0.0-beta.
|
|
38
|
+
"@pinegrow/vite-plugin": "3.0.0-beta.66"
|
|
36
39
|
},
|
|
37
40
|
"devDependencies": {
|
|
38
41
|
"@nuxt/module-builder": "latest",
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
+
"@nuxt/eslint-config": "^0.1.1",
|
|
43
|
+
"nuxt": "^3.1.0",
|
|
44
|
+
"eslint": "^8.35.0",
|
|
45
|
+
"eslint-config-prettier": "^8.7.0",
|
|
46
|
+
"prettier": "^2.8.4"
|
|
42
47
|
}
|
|
43
48
|
}
|