@pinegrow/astro-module 3.0.0-beta.139 → 3.0.0-beta.140

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 CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2021
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
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2021
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
+ SOFTWARE.
package/README.md CHANGED
@@ -1,73 +1,73 @@
1
- <!-- [![@pinegrow/astro-module](https://tailwindcss.nuxtjs.org/social-card.png)](https://tailwindcss.nuxtjs.org) -->
2
-
3
- # Pinegrow Astro Module
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
- [Astro](https://astro.build/) module for [Pinegrow](https://pinegrow.com) ⚡️
10
-
11
- Pinegrow Astro Module enables connection and interaction between your Vite Dev-Server and Pinegrow apps (currently only Vue Designer).
12
-
13
- - [📖 &nbsp;Documentation](https://pinegrow.com/vue-designer)
14
-
15
- ## Features
16
-
17
- - 🎨&nbsp; Visually live-design your Vite-powered Astro apps (currently only Vue components are supported)
18
- - ⚙️&nbsp; Smartly integrates into your Astro workflow in dev-mode only
19
- - ✨&nbsp; No lock-in, Pinegrow is an open-tool ❤️
20
-
21
- ## Quick Setup
22
-
23
- 1. Install: Add `@pinegrow/astro-module` to your project
24
-
25
- ```bash
26
- # Using npm
27
- npm install --save-dev @pinegrow/astro-module
28
-
29
- # Using pnpm
30
- pnpm add --save-dev @pinegrow/astro-module
31
- ```
32
-
33
- 2. Configure: Add `@pinegrow/astro-module` to your Astro Integrations array `astro.config.{mjs,ts}`
34
-
35
- ```js
36
- //astro.config.mjs (or) astro.config.ts
37
-
38
- import { defineConfig } from 'astro/config'
39
-
40
- import vue from '@astrojs/vue'
41
- import pinegrow from '@pinegrow/astro-module'
42
-
43
- export default defineConfig({
44
- integrations: [
45
- vue(),
46
- pinegrow({
47
- liveDesigner: {
48
- //...
49
- },
50
- }),
51
- //...
52
- ],
53
- //...
54
- })
55
- ```
56
-
57
- Now, open your project in your Pinegrow app (currently only Vue Designer). ✨
58
-
59
- ## License
60
-
61
- [MIT License](./LICENSE)
62
-
63
- Copyright (c) Pinegrow
64
-
65
- <!-- Badges -->
66
-
67
- [npm-version-src]: https://img.shields.io/npm/v/@pinegrow/astro-module/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
68
- [npm-version-href]: https://npmjs.com/package/@pinegrow/astro-module
69
- [npm-downloads-src]: https://img.shields.io/npm/dm/@pinegrow/astro-module.svg?style=flat&colorA=18181B&colorB=28CF8D
70
- [npm-downloads-href]: https://npmjs.com/package/@pinegrow/astro-module
71
- [license-src]: https://img.shields.io/npm/l/@pinegrow/astro-module.svg?style=flat&colorA=18181B&colorB=28CF8D
72
- [license-href]: https://npmjs.com/package/@pinegrow/astro-module
73
-
1
+ <!-- [![@pinegrow/astro-module](https://tailwindcss.nuxtjs.org/social-card.png)](https://tailwindcss.nuxtjs.org) -->
2
+
3
+ # Pinegrow Astro Module
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
+ [Astro](https://astro.build/) module for [Pinegrow](https://pinegrow.com) ⚡️
10
+
11
+ Pinegrow Astro Module enables connection and interaction between your Vite Dev-Server and Pinegrow apps (currently only Vue Designer).
12
+
13
+ - [📖 &nbsp;Documentation](https://pinegrow.com/vue-designer)
14
+
15
+ ## Features
16
+
17
+ - 🎨&nbsp; Visually live-design your Vite-powered Astro apps (currently only Vue components are supported)
18
+ - ⚙️&nbsp; Smartly integrates into your Astro workflow in dev-mode only
19
+ - ✨&nbsp; No lock-in, Pinegrow is an open-tool ❤️
20
+
21
+ ## Quick Setup
22
+
23
+ 1. Install: Add `@pinegrow/astro-module` to your project
24
+
25
+ ```bash
26
+ # Using npm
27
+ npm install --save-dev @pinegrow/astro-module
28
+
29
+ # Using pnpm
30
+ pnpm add --save-dev @pinegrow/astro-module
31
+ ```
32
+
33
+ 2. Configure: Add `@pinegrow/astro-module` to your Astro Integrations array `astro.config.{mjs,ts}`
34
+
35
+ ```js
36
+ //astro.config.mjs (or) astro.config.ts
37
+
38
+ import { defineConfig } from 'astro/config'
39
+
40
+ import vue from '@astrojs/vue'
41
+ import pinegrow from '@pinegrow/astro-module'
42
+
43
+ export default defineConfig({
44
+ integrations: [
45
+ vue(),
46
+ pinegrow({
47
+ liveDesigner: {
48
+ //...
49
+ },
50
+ }),
51
+ //...
52
+ ],
53
+ //...
54
+ })
55
+ ```
56
+
57
+ Now, open your project in your Pinegrow app (currently only Vue Designer). ✨
58
+
59
+ ## License
60
+
61
+ [MIT License](./LICENSE)
62
+
63
+ Copyright (c) Pinegrow
64
+
65
+ <!-- Badges -->
66
+
67
+ [npm-version-src]: https://img.shields.io/npm/v/@pinegrow/astro-module/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
68
+ [npm-version-href]: https://npmjs.com/package/@pinegrow/astro-module
69
+ [npm-downloads-src]: https://img.shields.io/npm/dm/@pinegrow/astro-module.svg?style=flat&colorA=18181B&colorB=28CF8D
70
+ [npm-downloads-href]: https://npmjs.com/package/@pinegrow/astro-module
71
+ [license-src]: https://img.shields.io/npm/l/@pinegrow/astro-module.svg?style=flat&colorA=18181B&colorB=28CF8D
72
+ [license-href]: https://npmjs.com/package/@pinegrow/astro-module
73
+
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { AstroIntegration } from 'astro';
2
2
  import { PinegrowVitePlugin } from '@pinegrow/vite-plugin';
3
3
 
4
- interface PinegrowAstroModuleOptions {
5
- pinegrow: PinegrowVitePlugin;
6
- }
4
+ interface PinegrowAstroModuleOptions {
5
+ pinegrow: PinegrowVitePlugin;
6
+ }
7
7
  declare function createIntegration(moduleOptions: PinegrowAstroModuleOptions): AstroIntegration;
8
8
 
9
9
  export { PinegrowAstroModuleOptions, createIntegration as default };
@@ -0,0 +1,6 @@
1
+ // src/live-designer.mjs
2
+ import pkg from "@pinegrow/vite-plugin";
3
+ var liveDesigner = pkg.liveDesigner;
4
+ export {
5
+ liveDesigner
6
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/live-designer.mjs
2
+ var _viteplugin = require('@pinegrow/vite-plugin'); var _viteplugin2 = _interopRequireDefault(_viteplugin);
3
+ var liveDesigner = _viteplugin2.default.liveDesigner;
4
+
5
+
6
+ exports.liveDesigner = liveDesigner;
package/package.json CHANGED
@@ -1,47 +1,47 @@
1
- {
2
- "name": "@pinegrow/astro-module",
3
- "version": "3.0.0-beta.139",
4
- "description": "Pinegrow Astro Module",
5
- "author": "Pinegrow (http://pinegrow.com/)",
6
- "license": "MIT",
7
- "type": "module",
8
- "files": [
9
- "dist"
10
- ],
11
- "types": "./dist/index.d.ts",
12
- "main": "./dist/index.cjs",
13
- "module": "./dist/index.cjs",
14
- "exports": {
15
- "./package.json": "./package.json",
16
- ".": {
17
- "import": "./dist/index.js",
18
- "require": "./dist/index.cjs"
19
- }
20
- },
21
- "keywords": [
22
- "pinegrow",
23
- "vue-designer",
24
- "astro-module",
25
- "@pinegrow/astro-module"
26
- ],
27
- "scripts": {
28
- "dev": "npm run build -- --watch",
29
- "build": "tsup src/index.ts",
30
- "prepublishOnly": "npm run build",
31
- "release": "npx bumpp --commit --tag --push && npm publish --access public",
32
- "publish-beta": "npm run increment-beta-version && npm publish",
33
- "increment-beta-version": "npm version prerelease --preid=beta"
34
- },
35
- "dependencies": {
36
- "@pinegrow/vite-plugin": "3.0.0-beta.139"
37
- },
38
- "devDependencies": {
39
- "astro": "^2.1.5",
40
- "tsup": "^5.5.0",
41
- "typescript": "^4.4.4"
42
- },
43
- "peerDependencies": {
44
- "@astrojs/vue": "^2.1.0",
45
- "astro": "^2.1.5"
46
- }
47
- }
1
+ {
2
+ "name": "@pinegrow/astro-module",
3
+ "version": "3.0.0-beta.140",
4
+ "description": "Pinegrow Astro Module",
5
+ "author": "Pinegrow (http://pinegrow.com/)",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "types": "./dist/index.d.ts",
12
+ "main": "./dist/index.cjs",
13
+ "module": "./dist/index.cjs",
14
+ "exports": {
15
+ "./package.json": "./package.json",
16
+ ".": {
17
+ "import": "./dist/index.js",
18
+ "require": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "keywords": [
22
+ "pinegrow",
23
+ "vue-designer",
24
+ "astro-module",
25
+ "@pinegrow/astro-module"
26
+ ],
27
+ "scripts": {
28
+ "dev": "npm run build -- --watch",
29
+ "build": "tsup src/index.ts",
30
+ "prepublishOnly": "npm run build",
31
+ "release": "npx bumpp --commit --tag --push && npm publish --access public",
32
+ "publish-beta": "npm run increment-beta-version && npm publish",
33
+ "increment-beta-version": "npm version prerelease --preid=beta"
34
+ },
35
+ "dependencies": {
36
+ "@pinegrow/vite-plugin": "3.0.0-beta.140"
37
+ },
38
+ "devDependencies": {
39
+ "astro": "^2.1.5",
40
+ "tsup": "^5.5.0",
41
+ "typescript": "^4.4.4"
42
+ },
43
+ "peerDependencies": {
44
+ "@astrojs/vue": "^2.1.0",
45
+ "astro": "^2.1.5"
46
+ }
47
+ }