@pinegrow/vite-plugin 3.0.0-beta.110 → 3.0.0-beta.112
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 +67 -3
- package/package.json +3 -3
- package/types.d.ts +43 -62
package/README.md
CHANGED
|
@@ -1,6 +1,70 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- [](https://tailwindcss.nuxtjs.org) -->
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Pinegrow Vite Plugin
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
6
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
7
|
+
[![License][license-src]][license-href]
|
|
8
|
+
|
|
9
|
+
[Vite](https://vitejs.dev) plugin for [Pinegrow](https://pinegrow.com) ⚡️
|
|
10
|
+
|
|
11
|
+
Pinegrow Vite Plugin enables connection and interaction between your Vite Dev-Server and Pinegrow apps (currently only Vue Designer)."
|
|
12
|
+
|
|
13
|
+
- [📖 Documentation](https://pinegrow.com/vue-designer)
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- 🎨 Visually live-design your Vite-powered apps (Vue, Nuxt, Iles, Astro, etc)
|
|
18
|
+
- ⚙️ Smartly integrates into your Vite workflow in dev-mode only
|
|
19
|
+
- ✨ No lock-in, Pinegrow is an open-tool ❤️
|
|
20
|
+
|
|
21
|
+
## Quick Setup
|
|
22
|
+
|
|
23
|
+
1. Install: Add `@pinegrow/vite-plugin` to your project
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Using npm
|
|
27
|
+
npm install --save-dev @pinegrow/vite-plugin
|
|
28
|
+
|
|
29
|
+
# Using pnpm
|
|
30
|
+
pnpm add --save-dev @pinegrow/vite-plugin
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
2. Configure: Add `liveDesigner()` to your Vite Plugins array `vite.config.{ts,js}`
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
//vite.config.js (or) vite.config.ts
|
|
37
|
+
|
|
38
|
+
import { defineConfig } from 'vite'
|
|
39
|
+
import vue from '@vitejs/plugin-vue'
|
|
40
|
+
import { liveDesigner } from '@pinegrow/vite-plugin'
|
|
41
|
+
|
|
42
|
+
export default defineConfig({
|
|
43
|
+
plugins: [
|
|
44
|
+
liveDesigner({
|
|
45
|
+
//...
|
|
46
|
+
}),
|
|
47
|
+
vue(),
|
|
48
|
+
//...
|
|
49
|
+
],
|
|
50
|
+
//...
|
|
51
|
+
})
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Now, open your project in your Pinegrow app (currently only Vue Designer). ✨
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
[MIT License](./LICENSE)
|
|
59
|
+
|
|
60
|
+
Copyright (c) Pinegrow
|
|
61
|
+
|
|
62
|
+
<!-- Badges -->
|
|
63
|
+
|
|
64
|
+
[npm-version-src]: https://img.shields.io/npm/v/@pinegrow/vite-plugin/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
65
|
+
[npm-version-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
66
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@pinegrow/vite-plugin.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
67
|
+
[npm-downloads-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
68
|
+
[license-src]: https://img.shields.io/npm/l/@pinegrow/vite-plugin.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
69
|
+
[license-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
6
70
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/vite-plugin",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.112",
|
|
4
4
|
"description": "Pinegrow Vite Plugin",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"pinegrow",
|
|
31
|
-
"
|
|
32
|
-
"vite
|
|
31
|
+
"vue-designer",
|
|
32
|
+
"vite-plugin",
|
|
33
33
|
"@pinegrow/vite-plugin"
|
|
34
34
|
],
|
|
35
35
|
"author": "Pinegrow (http://pinegrow.com/)",
|
package/types.d.ts
CHANGED
|
@@ -3,82 +3,63 @@ import type { Options as AutoImportComponentsOptions } from 'unplugin-vue-compon
|
|
|
3
3
|
import type { Options as AutoImportAPIsOptions } from 'unplugin-auto-import/types'
|
|
4
4
|
|
|
5
5
|
interface Options {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Absolute path to the root of a monorepo.
|
|
8
|
+
* Relative path from the project root to the root of a monorepo.
|
|
9
|
+
*/
|
|
10
|
+
repoRoot?: string
|
|
7
11
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// User can override the themePath in the plugin's options
|
|
14
|
-
// {
|
|
15
|
-
// key: 'vuetify',
|
|
16
|
-
// pluginPath: '...',
|
|
17
|
-
// options: {
|
|
18
|
-
// themePath: './src/themes' // directory or file, for eg, './src/themes/my-pg-theme.cjs'
|
|
19
|
-
// }
|
|
20
|
-
// }
|
|
12
|
+
/**
|
|
13
|
+
* Absolute path to a custom config file (for eg, vite-dev.config.js).
|
|
14
|
+
* Relative path from the project root to a custom config file (for eg, vite-dev.config.js).
|
|
15
|
+
*/
|
|
16
|
+
configPath?: string
|
|
21
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Key of the devtools exposed on the window object.
|
|
20
|
+
* For instructions, check Config Panel in Vue Designer
|
|
21
|
+
*/
|
|
22
22
|
devtoolsKey?: string
|
|
23
|
-
// vscodeTunnelUrl?: string
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Router history modes - 'html5', 'hash'
|
|
26
|
+
* @default 'html5'
|
|
27
|
+
*/
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
// mergeWithPackageJson?: {
|
|
29
|
-
// dependencies?: {}
|
|
30
|
-
// devDependencies?: {
|
|
31
|
-
// // vite: string;
|
|
32
|
-
// }
|
|
33
|
-
// }
|
|
29
|
+
routerHistoryMode?: string //
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// customType: "boolean";
|
|
41
|
-
// };
|
|
42
|
-
// };
|
|
43
|
-
// VSelect: {
|
|
44
|
-
// variant: {
|
|
45
|
-
// customType: 'select',
|
|
46
|
-
// options: ['plain', 'outlined', 'underlined', 'solo'],
|
|
47
|
-
// default: ''
|
|
48
|
-
// },
|
|
49
|
-
// density: {
|
|
50
|
-
// customType: 'select',
|
|
51
|
-
// options: ['default', 'compact', 'comfortable']
|
|
52
|
-
// },
|
|
53
|
-
// disabled: {
|
|
54
|
-
// customType: 'boolean'
|
|
55
|
-
// },
|
|
56
|
-
// appendIcon: {
|
|
57
|
-
// customType: 'icon'
|
|
58
|
-
// },
|
|
59
|
-
// }
|
|
60
|
-
// To apply type overrides to all components,
|
|
61
|
-
// all: { prop: { customType: 'icon' } },
|
|
62
|
-
defaultTypes?: {
|
|
63
|
-
// density: {
|
|
64
|
-
// customType: "select";
|
|
65
|
-
// // add options when customType is 'select'
|
|
66
|
-
// options: ["default", "compact", "comfortable"];
|
|
67
|
-
// };
|
|
68
|
-
}
|
|
69
|
-
}
|
|
31
|
+
/**
|
|
32
|
+
* Array of Pinegrow plugins (npm package names)
|
|
33
|
+
* To use file-based Pinegrow Plugins, provide the absolute path of the plugin file, for eg, [path.resolve(__dirname, './pg-plugin/index.js')]
|
|
34
|
+
*/
|
|
35
|
+
plugins?: string[]
|
|
70
36
|
|
|
37
|
+
/**
|
|
38
|
+
* Pinegrow TailwindCSS plugin options
|
|
39
|
+
*/
|
|
71
40
|
tailwindcss?: PinegrowTailwindCSSPluginOptions
|
|
72
|
-
|
|
73
|
-
autoImportComponents?: AutoImportComponentsOptions
|
|
74
|
-
|
|
75
|
-
autoImportAPIs?: AutoImportAPIsOptions
|
|
76
41
|
}
|
|
77
42
|
|
|
78
43
|
interface PinegrowVitePlugin {
|
|
44
|
+
/**
|
|
45
|
+
* Pinegrow Live Designer options
|
|
46
|
+
* For details, check https://pinegrow.com/vue-designer
|
|
47
|
+
*/
|
|
79
48
|
liveDesigner?: {
|
|
80
49
|
[key in string]?: any
|
|
81
50
|
} & Options
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* unplugin-vue-components options for auto-importing local components and via resolvers
|
|
54
|
+
* For details, check https://github.com/antfu/unplugin-vue-components#configuration
|
|
55
|
+
*/
|
|
56
|
+
autoImportComponents?: AutoImportComponentsOptions
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* unplugin-auto-import options for auto-importing APIs using presets
|
|
60
|
+
* For details, check https://github.com/antfu/unplugin-auto-import#configuration
|
|
61
|
+
*/
|
|
62
|
+
autoImportAPIs?: AutoImportAPIsOptions
|
|
82
63
|
}
|
|
83
64
|
|
|
84
65
|
declare function export_default(liveDesigner: Options): PinegrowVitePlugin
|