@pinegrow/nuxt-module 1.0.0-alpha.10
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/README.md +5 -0
- package/dist/chunks/live-designer.mjs +5 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.ts +21 -0
- package/dist/module.json +8 -0
- package/dist/module.mjs +46 -0
- package/dist/runtime/live-designer.d.mts +1 -0
- package/dist/runtime/live-designer.mjs +3 -0
- package/dist/runtime/vite-plugin.d.ts +7 -0
- package/dist/runtime/vite-plugin.mjs +6 -0
- package/dist/types.d.ts +10 -0
- package/package.json +44 -0
package/README.md
ADDED
package/dist/module.cjs
ADDED
package/dist/module.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
|
|
3
|
+
interface ModuleOptions {
|
|
4
|
+
liveDesigner?: {
|
|
5
|
+
projectBase: string;
|
|
6
|
+
plugins: string[];
|
|
7
|
+
usingStandaloneVueDevtools: boolean;
|
|
8
|
+
routerHistoryMode: string;
|
|
9
|
+
iconsets: string[];
|
|
10
|
+
customDependencies: {
|
|
11
|
+
dependencies: {};
|
|
12
|
+
devDependencies: {};
|
|
13
|
+
};
|
|
14
|
+
customTypes: {
|
|
15
|
+
default: {};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
20
|
+
|
|
21
|
+
export { ModuleOptions, _default as default };
|
package/dist/module.json
ADDED
package/dist/module.mjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineNuxtModule, addVitePlugin } from '@nuxt/kit';
|
|
2
|
+
|
|
3
|
+
const module = defineNuxtModule({
|
|
4
|
+
meta: {
|
|
5
|
+
name: "pinegrow",
|
|
6
|
+
configKey: "pinegrow",
|
|
7
|
+
compatibility: {
|
|
8
|
+
nuxt: "^3.0.0"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
defaults: {
|
|
12
|
+
liveDesigner: {
|
|
13
|
+
projectBase: "./",
|
|
14
|
+
plugins: [],
|
|
15
|
+
usingStandaloneVueDevtools: false,
|
|
16
|
+
routerHistoryMode: "html5",
|
|
17
|
+
iconsets: [],
|
|
18
|
+
customDependencies: {
|
|
19
|
+
dependencies: {},
|
|
20
|
+
devDependencies: {}
|
|
21
|
+
},
|
|
22
|
+
customTypes: {
|
|
23
|
+
default: {}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
hooks: {},
|
|
28
|
+
async setup(moduleOptions, nuxt) {
|
|
29
|
+
if (moduleOptions.liveDesigner) {
|
|
30
|
+
nuxt.hook("listen", async (listenerServer) => {
|
|
31
|
+
try {
|
|
32
|
+
const { liveDesigner } = await import('./chunks/live-designer.mjs');
|
|
33
|
+
addVitePlugin(
|
|
34
|
+
liveDesigner({
|
|
35
|
+
...moduleOptions.liveDesigner,
|
|
36
|
+
listenerServer
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
} catch (err) {
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export { module as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const liveDesigner: any;
|
package/dist/types.d.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pinegrow/nuxt-module",
|
|
3
|
+
"version": "1.0.0-alpha.10",
|
|
4
|
+
"description": "Nuxt module for Pinegrow",
|
|
5
|
+
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"main": "./dist/module.cjs",
|
|
12
|
+
"module": "./dist/module.cjs",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/module.mjs",
|
|
16
|
+
"require": "./dist/module.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"types": "./dist/types.d.ts",
|
|
20
|
+
"keywords": [
|
|
21
|
+
"pinegrow",
|
|
22
|
+
"nuxt module"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "nuxt-module-build",
|
|
26
|
+
"dev": "nuxi dev playground",
|
|
27
|
+
"dev:build": "nuxi build playground",
|
|
28
|
+
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
|
|
29
|
+
"publish-alpha": "npm run increment-alpha-version && npm publish",
|
|
30
|
+
"increment-alpha-version": "npm version prerelease --preid=alpha",
|
|
31
|
+
"publish-beta": "npm run increment-beta-version && npm publish",
|
|
32
|
+
"increment-beta-version": "npm version prerelease --preid=beta"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@nuxt/kit": "latest",
|
|
36
|
+
"@pinegrow/vite-plugin": "latest"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@nuxt/module-builder": "latest",
|
|
40
|
+
"@nuxtjs/eslint-config-typescript": "latest",
|
|
41
|
+
"eslint": "latest",
|
|
42
|
+
"nuxt": "rc"
|
|
43
|
+
}
|
|
44
|
+
}
|