@pinegrow/vite-plugin 3.0.35-beta.0 → 3.0.35-beta.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/LICENSE +20 -20
- package/README.md +204 -204
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +4 -4
- package/dist/vue/index.js +319 -319
- package/package.json +50 -50
- package/types.d.ts +140 -140
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022-present, Pinegrow
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-present, Pinegrow
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,204 +1,204 @@
|
|
|
1
|
-
<!-- [](https://tailwindcss.nuxtjs.org) -->
|
|
2
|
-
|
|
3
|
-
# Pinegrow Vite Plugin
|
|
4
|
-
|
|
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 Pinegrow Web Editor & Vue Designer).
|
|
12
|
-
|
|
13
|
-
- [ Learn more about Vue Designer](https://vuedesigner.com)
|
|
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
|
-
- ✨ Clean code 😃, No lock-in - You are in control of your projects and development workflow ❤️
|
|
20
|
-
|
|
21
|
-
## Quick Setup
|
|
22
|
-
|
|
23
|
-
1. Install: Add `@pinegrow/vite-plugin` to your project
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
# Using npm
|
|
27
|
-
npm install -D @pinegrow/vite-plugin
|
|
28
|
-
|
|
29
|
-
# Using pnpm
|
|
30
|
-
pnpm add -D @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
|
-
/* LiveDesignerOptions (for more details, refer to Options section below) */
|
|
46
|
-
}),
|
|
47
|
-
vue(),
|
|
48
|
-
//...
|
|
49
|
-
],
|
|
50
|
-
//...
|
|
51
|
-
})
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Now, open your project in your Pinegrow app (currently only Vue Designer). ✨
|
|
55
|
-
|
|
56
|
-
## Options
|
|
57
|
-
|
|
58
|
-
```ts
|
|
59
|
-
interface PinegrowExternalPlugin {
|
|
60
|
-
/**
|
|
61
|
-
* Display name in Props Panel and Library Panels
|
|
62
|
-
* Eg, "My Awesome Lib 3.3.1", defaults to key if not provided
|
|
63
|
-
*/
|
|
64
|
-
name?: string
|
|
65
|
-
/**
|
|
66
|
-
* Unique key that doesn't conflict with other pinegrow frameworks
|
|
67
|
-
* Run `Object.values(pinegrow.getFrameworks()).map(fx => fx.key)` in Vue Designer's devtools console for existing keys
|
|
68
|
-
*
|
|
69
|
-
* Allowed characters - alphanumeric with hyphens or period, no spaces
|
|
70
|
-
* Eg, 'my-awesome-lib'
|
|
71
|
-
*/
|
|
72
|
-
key: string
|
|
73
|
-
/**
|
|
74
|
-
* Web-types of component library (or) pinegrow commonjs plugin
|
|
75
|
-
* Must return an absolute path
|
|
76
|
-
*
|
|
77
|
-
* Use path functions according to the project module type (commonjs/module)
|
|
78
|
-
* For eg, path.resolve(__dirname, '../my-awesome-lib/web-types.json')
|
|
79
|
-
* (or)
|
|
80
|
-
* import { fileURLToPath, URL } from 'node:url'
|
|
81
|
-
* fileURLToPath(new URL('./relative-path/web-types.json', import.meta.url)) // web-types of component library
|
|
82
|
-
* fileURLToPath(new URL('./my-awesome-lib/web-types.json', import.meta.url)) // pinegrow commonjs plugin
|
|
83
|
-
*/
|
|
84
|
-
pluginPath: string
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface LiveDesignerOptions {
|
|
88
|
-
/**
|
|
89
|
-
* When your project is part of a mono-repo
|
|
90
|
-
* Absolute path to the root of a monorepo (or)
|
|
91
|
-
* Relative path from the project root to the root of a monorepo.
|
|
92
|
-
*/
|
|
93
|
-
repoRoot?: string
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* When using a custom config file (for eg, vite-dev.config.js)
|
|
97
|
-
* Absolute path to a custom config file (for eg, vite-dev.config.js) (or)
|
|
98
|
-
* Relative path from the project root to a custom config file (for eg, vite-dev.config.js).
|
|
99
|
-
*/
|
|
100
|
-
configPath?: string
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Key of the devtools exposed on the window object.
|
|
104
|
-
* For instructions, check Config Panel > Devtools tab in Vue Designer
|
|
105
|
-
*/
|
|
106
|
-
devtoolsKey?: string
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Mapping of custom folder setup that deviates from the standard project setup of the framework/meta-framework
|
|
110
|
-
* For eg, in Vitepress, the standard folders could be re-mapped outside the .vitepress folder.
|
|
111
|
-
* Vue Designer utilizes this information when a user intends to create a new component from the page tree or the Vue menu.
|
|
112
|
-
*/
|
|
113
|
-
dirs?: {
|
|
114
|
-
src?: string
|
|
115
|
-
components?: string
|
|
116
|
-
pages?: string
|
|
117
|
-
layouts?: string
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* By default, one among the pages and components following these naming conventions is opened automatically as the startup page - ['Hero*', 'app', 'App', 'home', 'Home', 'index', 'Index', 'welcome', 'Welcome'].
|
|
122
|
-
|
|
123
|
-
To open a specific page or component as the default startup page, configure the startupPage key in your liveDesigner config.
|
|
124
|
-
* For eg '@/Pages/Welcome.vue',
|
|
125
|
-
* For eg './resources/js/Pages/Welcome.vue',
|
|
126
|
-
*/
|
|
127
|
-
startupPage?: string
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Dev-server URLs.
|
|
131
|
-
* The local URL is set to the application URL, when Vite is used as a middleware in certain setups, such as Laravel applications.
|
|
132
|
-
* The network URL is set when when the dev-server is running on a remote server/machine.
|
|
133
|
-
* Make sure the URLs are fixed via the CLI configurations, so that the next available port is not auto-picked if the fixed URL's port was already used by some other process. For Vite, use the `server.host` & `server.port` options for Vite - https://vitejs.dev/config/server-options.html#server-options).
|
|
134
|
-
*/
|
|
135
|
-
devServerUrls?: {
|
|
136
|
-
local?: string
|
|
137
|
-
network?: string
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Preferred format for icons in icon-picker - https://github.com/antfu/icones/blob/main/src/utils/case.ts
|
|
142
|
-
* * @default 'unocss' // For eg, i-material-symbols-home
|
|
143
|
-
* * When using Nuxt-Icon, you need to change this to 'iconify'
|
|
144
|
-
*
|
|
145
|
-
*/
|
|
146
|
-
iconPreferredCase?:
|
|
147
|
-
| 'unocss'
|
|
148
|
-
| 'iconify'
|
|
149
|
-
| 'bare'
|
|
150
|
-
| 'barePascal'
|
|
151
|
-
| 'dash'
|
|
152
|
-
| 'slash'
|
|
153
|
-
| 'doubleHyphen'
|
|
154
|
-
| 'camel'
|
|
155
|
-
| 'pascal'
|
|
156
|
-
| 'component'
|
|
157
|
-
| 'componentKebab'
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Router history modes - 'html5', 'hash'
|
|
161
|
-
* @default 'html5'
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
routerHistoryMode?: string
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Array of Pinegrow plugins (npm package names)
|
|
168
|
-
* To use file-based Pinegrow Plugins, provide the absolute path of the plugin file, for eg, [path.resolve(__dirname, './pg-plugin/index.js')] as pluginPath, along with a unique key
|
|
169
|
-
*/
|
|
170
|
-
plugins?: PinegrowExternalPlugin[] | string | string[]
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Pinegrow TailwindCSS plugin options
|
|
174
|
-
* For options, refer to https://www.npmjs.com/package/@pinegrow/tailwindcss-plugin
|
|
175
|
-
*/
|
|
176
|
-
tailwindcss?: PinegrowTailwindCSSModuleOptions
|
|
177
|
-
vuetify?: PinegrowVuetifyModuleOptions
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
interface PinegrowVitePlugin<VitePluginOption> {
|
|
181
|
-
/**
|
|
182
|
-
* Pinegrow Live Designer options
|
|
183
|
-
*/
|
|
184
|
-
liveDesigner?: {
|
|
185
|
-
[key in string]?: any
|
|
186
|
-
} & LiveDesignerOptions
|
|
187
|
-
}
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
## License
|
|
191
|
-
|
|
192
|
-
[MIT License](./LICENSE)
|
|
193
|
-
|
|
194
|
-
Copyright (c) Pinegrow
|
|
195
|
-
|
|
196
|
-
<!-- Badges -->
|
|
197
|
-
|
|
198
|
-
[npm-version-src]: https://img.shields.io/npm/v/@pinegrow/vite-plugin/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
199
|
-
[npm-version-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
200
|
-
[npm-downloads-src]: https://img.shields.io/npm/dm/@pinegrow/vite-plugin.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
201
|
-
[npm-downloads-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
202
|
-
[license-src]: https://img.shields.io/npm/l/@pinegrow/vite-plugin.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
203
|
-
[license-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
204
|
-
|
|
1
|
+
<!-- [](https://tailwindcss.nuxtjs.org) -->
|
|
2
|
+
|
|
3
|
+
# Pinegrow Vite Plugin
|
|
4
|
+
|
|
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 Pinegrow Web Editor & Vue Designer).
|
|
12
|
+
|
|
13
|
+
- [ Learn more about Vue Designer](https://vuedesigner.com)
|
|
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
|
+
- ✨ Clean code 😃, No lock-in - You are in control of your projects and development workflow ❤️
|
|
20
|
+
|
|
21
|
+
## Quick Setup
|
|
22
|
+
|
|
23
|
+
1. Install: Add `@pinegrow/vite-plugin` to your project
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Using npm
|
|
27
|
+
npm install -D @pinegrow/vite-plugin
|
|
28
|
+
|
|
29
|
+
# Using pnpm
|
|
30
|
+
pnpm add -D @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
|
+
/* LiveDesignerOptions (for more details, refer to Options section below) */
|
|
46
|
+
}),
|
|
47
|
+
vue(),
|
|
48
|
+
//...
|
|
49
|
+
],
|
|
50
|
+
//...
|
|
51
|
+
})
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Now, open your project in your Pinegrow app (currently only Vue Designer). ✨
|
|
55
|
+
|
|
56
|
+
## Options
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
interface PinegrowExternalPlugin {
|
|
60
|
+
/**
|
|
61
|
+
* Display name in Props Panel and Library Panels
|
|
62
|
+
* Eg, "My Awesome Lib 3.3.1", defaults to key if not provided
|
|
63
|
+
*/
|
|
64
|
+
name?: string
|
|
65
|
+
/**
|
|
66
|
+
* Unique key that doesn't conflict with other pinegrow frameworks
|
|
67
|
+
* Run `Object.values(pinegrow.getFrameworks()).map(fx => fx.key)` in Vue Designer's devtools console for existing keys
|
|
68
|
+
*
|
|
69
|
+
* Allowed characters - alphanumeric with hyphens or period, no spaces
|
|
70
|
+
* Eg, 'my-awesome-lib'
|
|
71
|
+
*/
|
|
72
|
+
key: string
|
|
73
|
+
/**
|
|
74
|
+
* Web-types of component library (or) pinegrow commonjs plugin
|
|
75
|
+
* Must return an absolute path
|
|
76
|
+
*
|
|
77
|
+
* Use path functions according to the project module type (commonjs/module)
|
|
78
|
+
* For eg, path.resolve(__dirname, '../my-awesome-lib/web-types.json')
|
|
79
|
+
* (or)
|
|
80
|
+
* import { fileURLToPath, URL } from 'node:url'
|
|
81
|
+
* fileURLToPath(new URL('./relative-path/web-types.json', import.meta.url)) // web-types of component library
|
|
82
|
+
* fileURLToPath(new URL('./my-awesome-lib/web-types.json', import.meta.url)) // pinegrow commonjs plugin
|
|
83
|
+
*/
|
|
84
|
+
pluginPath: string
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface LiveDesignerOptions {
|
|
88
|
+
/**
|
|
89
|
+
* When your project is part of a mono-repo
|
|
90
|
+
* Absolute path to the root of a monorepo (or)
|
|
91
|
+
* Relative path from the project root to the root of a monorepo.
|
|
92
|
+
*/
|
|
93
|
+
repoRoot?: string
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* When using a custom config file (for eg, vite-dev.config.js)
|
|
97
|
+
* Absolute path to a custom config file (for eg, vite-dev.config.js) (or)
|
|
98
|
+
* Relative path from the project root to a custom config file (for eg, vite-dev.config.js).
|
|
99
|
+
*/
|
|
100
|
+
configPath?: string
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Key of the devtools exposed on the window object.
|
|
104
|
+
* For instructions, check Config Panel > Devtools tab in Vue Designer
|
|
105
|
+
*/
|
|
106
|
+
devtoolsKey?: string
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Mapping of custom folder setup that deviates from the standard project setup of the framework/meta-framework
|
|
110
|
+
* For eg, in Vitepress, the standard folders could be re-mapped outside the .vitepress folder.
|
|
111
|
+
* Vue Designer utilizes this information when a user intends to create a new component from the page tree or the Vue menu.
|
|
112
|
+
*/
|
|
113
|
+
dirs?: {
|
|
114
|
+
src?: string
|
|
115
|
+
components?: string
|
|
116
|
+
pages?: string
|
|
117
|
+
layouts?: string
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* By default, one among the pages and components following these naming conventions is opened automatically as the startup page - ['Hero*', 'app', 'App', 'home', 'Home', 'index', 'Index', 'welcome', 'Welcome'].
|
|
122
|
+
|
|
123
|
+
To open a specific page or component as the default startup page, configure the startupPage key in your liveDesigner config.
|
|
124
|
+
* For eg '@/Pages/Welcome.vue',
|
|
125
|
+
* For eg './resources/js/Pages/Welcome.vue',
|
|
126
|
+
*/
|
|
127
|
+
startupPage?: string
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Dev-server URLs.
|
|
131
|
+
* The local URL is set to the application URL, when Vite is used as a middleware in certain setups, such as Laravel applications.
|
|
132
|
+
* The network URL is set when when the dev-server is running on a remote server/machine.
|
|
133
|
+
* Make sure the URLs are fixed via the CLI configurations, so that the next available port is not auto-picked if the fixed URL's port was already used by some other process. For Vite, use the `server.host` & `server.port` options for Vite - https://vitejs.dev/config/server-options.html#server-options).
|
|
134
|
+
*/
|
|
135
|
+
devServerUrls?: {
|
|
136
|
+
local?: string
|
|
137
|
+
network?: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Preferred format for icons in icon-picker - https://github.com/antfu/icones/blob/main/src/utils/case.ts
|
|
142
|
+
* * @default 'unocss' // For eg, i-material-symbols-home
|
|
143
|
+
* * When using Nuxt-Icon, you need to change this to 'iconify'
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
iconPreferredCase?:
|
|
147
|
+
| 'unocss'
|
|
148
|
+
| 'iconify'
|
|
149
|
+
| 'bare'
|
|
150
|
+
| 'barePascal'
|
|
151
|
+
| 'dash'
|
|
152
|
+
| 'slash'
|
|
153
|
+
| 'doubleHyphen'
|
|
154
|
+
| 'camel'
|
|
155
|
+
| 'pascal'
|
|
156
|
+
| 'component'
|
|
157
|
+
| 'componentKebab'
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Router history modes - 'html5', 'hash'
|
|
161
|
+
* @default 'html5'
|
|
162
|
+
*/
|
|
163
|
+
|
|
164
|
+
routerHistoryMode?: string
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Array of Pinegrow plugins (npm package names)
|
|
168
|
+
* To use file-based Pinegrow Plugins, provide the absolute path of the plugin file, for eg, [path.resolve(__dirname, './pg-plugin/index.js')] as pluginPath, along with a unique key
|
|
169
|
+
*/
|
|
170
|
+
plugins?: PinegrowExternalPlugin[] | string | string[]
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Pinegrow TailwindCSS plugin options
|
|
174
|
+
* For options, refer to https://www.npmjs.com/package/@pinegrow/tailwindcss-plugin
|
|
175
|
+
*/
|
|
176
|
+
tailwindcss?: PinegrowTailwindCSSModuleOptions
|
|
177
|
+
vuetify?: PinegrowVuetifyModuleOptions
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
interface PinegrowVitePlugin<VitePluginOption> {
|
|
181
|
+
/**
|
|
182
|
+
* Pinegrow Live Designer options
|
|
183
|
+
*/
|
|
184
|
+
liveDesigner?: {
|
|
185
|
+
[key in string]?: any
|
|
186
|
+
} & LiveDesignerOptions
|
|
187
|
+
}
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
## License
|
|
191
|
+
|
|
192
|
+
[MIT License](./LICENSE)
|
|
193
|
+
|
|
194
|
+
Copyright (c) Pinegrow
|
|
195
|
+
|
|
196
|
+
<!-- Badges -->
|
|
197
|
+
|
|
198
|
+
[npm-version-src]: https://img.shields.io/npm/v/@pinegrow/vite-plugin/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
199
|
+
[npm-version-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
200
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@pinegrow/vite-plugin.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
201
|
+
[npm-downloads-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
202
|
+
[license-src]: https://img.shields.io/npm/l/@pinegrow/vite-plugin.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
203
|
+
[license-href]: https://npmjs.com/package/@pinegrow/vite-plugin
|
|
204
|
+
|